This commit is contained in:
Teo
2025-09-10 01:11:46 +08:00
parent f006ca5a2b
commit 311623e208
54 changed files with 3724 additions and 1523 deletions

View File

@ -5,34 +5,52 @@
<div class="box_info">
<div class="tree_left1" id="tree_left1">
<div class="file_upload check_select">
<div class="box_btn" v-auth="'/zm/api/v1/system/documentData/add'"
v-hasPermi="['quality:knowledgeDocument:file']">
<file-upload v-model="state.paramsQuery.file" :limit="100" :uploadUrl="uploadUrl" :params="uploadParams"
:on-upload-success="uploadFile">
<div class="box_btn" v-auth="'/zm/api/v1/system/documentData/add'" v-hasPermi="['quality:knowledgeDocument:file']">
<file-upload
v-model="state.paramsQuery.file"
:limit="100"
:uploadUrl="uploadUrl"
:params="uploadParams"
:on-upload-success="uploadFile"
>
<el-button type="primary" style="float: left" :disabled="!state.parentPid">
<el-icon size="small">
<Plus />
</el-icon>上传文件
<Plus /> </el-icon
>上传文件
</el-button>
</file-upload>
</div>
<el-button type="primary" v-auth="'/zm/api/v1/system/documentProject/dataCompressedDownload'"
v-hasPermi="['quality:knowledgeDocument:fileList']" :disabled="!state.parentPid"
@click="onExport"><el-icon>
<Download />
</el-icon>下载</el-button>
<el-button type="primary" @click="onBook"
v-auth="'/zm/api/v1/system/documentData/dataFileQuery'"><el-icon>
<View />
</el-icon>查看全项目文件</el-button>
<el-button
type="primary"
v-auth="'/zm/api/v1/system/documentProject/dataCompressedDownload'"
v-hasPermi="['quality:knowledgeDocument:fileList']"
:disabled="!state.parentPid"
@click="onExport"
><el-icon>
<Download /> </el-icon
>下载</el-button
>
<el-button type="primary" @click="onBook" v-auth="'/zm/api/v1/system/documentData/dataFileQuery'"
><el-icon>
<View /> </el-icon
>查看全项目文件</el-button
>
</div>
<div class="file_upload check_select">
<el-input class="input_left" v-model="filterText" size="small" placeholder="请输入文件名称" />
</div>
<el-tree ref="treeRef" highlight-current :default-expand-all="state.checked"
:filter-node-method="filterFolder" :data="state.treeList" node-key="id" accordion
:expand-on-click-node="false" @node-click="handleNodeClick" :current-node-key="state.selectedNodeId">
<el-tree
ref="treeRef"
highlight-current
:default-expand-all="state.checked"
:filter-node-method="filterFolder"
:data="state.treeList"
node-key="id"
accordion
:expand-on-click-node="false"
@node-click="handleNodeClick"
:current-node-key="state.selectedNodeId"
>
<template #default="{ node, data }">
<span class="custom-tree-node">
<el-icon color="#f1a81a">
@ -50,18 +68,26 @@
<el-row>
<el-col :span="7" class="colBlock">
<el-form-item label="文件名称" prop="fileName">
<el-input v-model="state.paramsQuery.fileName" placeholder="请输入文件名称" clearable
@keyup.enter.native="getdocumentDataList" />
<el-input
v-model="state.paramsQuery.fileName"
placeholder="请输入文件名称"
clearable
@keyup.enter.native="getdocumentDataList"
/>
</el-form-item>
</el-col>
<el-col :span="6" class="m-l10">
<el-form-item>
<el-button type="primary" @click="searchInfo"><el-icon>
<Search />
</el-icon>搜索</el-button>
<el-button @click="resetQuery"><el-icon>
<Refresh />
</el-icon>重置</el-button>
<el-button type="primary" @click="searchInfo"
><el-icon>
<Search /> </el-icon
>搜索</el-button
>
<el-button @click="resetQuery"
><el-icon>
<Refresh /> </el-icon
>重置</el-button
>
</el-form-item>
</el-col>
<!-- <el-col :span="4">
@ -84,38 +110,65 @@
<el-table-column label="上传时间" align="center" prop="createTime"> </el-table-column>
<el-table-column label="操作" align="center" width="300">
<template #default="scope">
<el-button type="primary" v-auth="'/zm/api/v1/system/documentData/get'"
v-if="acceptType.includes(scope.row.fileSuffix)" link @click="handleView(scope.row)"><el-icon>
<View />
</el-icon>查看</el-button>
<el-button type="primary" v-auth="'/zm/api/v1/system/documentData/complaintBoxAdd'"
v-hasPermi="['quality:knowledgeDocument:file']" v-if="state.wordType.includes(scope.row.fileSuffix)"
link @click="updataView(scope.row)"><el-icon>
<EditPen />
</el-icon>修改文件</el-button>
<el-button type="primary" v-auth="'/zm/api/v1/system/documentData/uniFolderDownload'" link
v-hasPermi="['quality:knowledgeDocument:file']" @click="onExportView(scope.row)"><el-icon>
<Download />
</el-icon>下载</el-button>
<el-button type="success" v-auth="'/zm/api/v1/system/documentData/edit'" link
@click="updateName(scope.row)" v-hasPermi="['quality:knowledgeDocument:file']"><el-icon>
<EditPen />
</el-icon>修改名称</el-button>
<el-button type="danger" v-auth="'/zm/api/v1/system/documentData/delete'" link
@click="handleDelete(scope.row)"><el-icon>
<DeleteFilled />
</el-icon>删除</el-button>
<el-button
type="primary"
v-auth="'/zm/api/v1/system/documentData/get'"
v-if="acceptType.includes(scope.row.fileSuffix)"
link
@click="handleView(scope.row)"
><el-icon>
<View /> </el-icon
>查看</el-button
>
<el-button
type="primary"
v-auth="'/zm/api/v1/system/documentData/complaintBoxAdd'"
v-hasPermi="['quality:knowledgeDocument:file']"
v-if="state.wordType.includes(scope.row.fileSuffix)"
link
@click="updataView(scope.row)"
><el-icon>
<EditPen /> </el-icon
>修改文件</el-button
>
<el-button
type="primary"
v-auth="'/zm/api/v1/system/documentData/uniFolderDownload'"
link
v-hasPermi="['quality:knowledgeDocument:file']"
@click="onExportView(scope.row)"
><el-icon>
<Download /> </el-icon
>下载</el-button
>
<el-button
type="success"
v-auth="'/zm/api/v1/system/documentData/edit'"
link
@click="updateName(scope.row)"
v-hasPermi="['quality:knowledgeDocument:file']"
><el-icon>
<EditPen /> </el-icon
>修改名称</el-button
>
<el-button type="danger" v-auth="'/zm/api/v1/system/documentData/delete'" link @click="handleDelete(scope.row)"
><el-icon>
<DeleteFilled /> </el-icon
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination :total="state.total" v-model:page="state.paramsQuery.pageNum"
v-model:limit="state.paramsQuery.pageSize" @pagination="getdocumentDataList" />
<pagination
:total="state.total"
v-model:page="state.paramsQuery.pageNum"
v-model:limit="state.paramsQuery.pageSize"
@pagination="getdocumentDataList"
/>
</div>
</div>
<documentsDeailsVue ref="documentDetailRef" v-if="state.showDocumentDetail" @onClose="onClose">
</documentsDeailsVue>
<documentsEdit ref="documentDataEditRef" v-if="state.showdocumentDataEdit" @onClose="onCloseEdit">
</documentsEdit>
<documentsDeailsVue ref="documentDetailRef" v-if="state.showDocumentDetail" @onClose="onClose"> </documentsDeailsVue>
<documentsEdit ref="documentDataEditRef" v-if="state.showdocumentDataEdit" @onClose="onCloseEdit"> </documentsEdit>
<!-- <uploadFileder
ref="uploadFilederRef"
v-if="state.showUploadFileder"
@ -135,8 +188,15 @@
</template>
</el-dialog>
</div>
<el-image-viewer ref="imageRef" style="width: 100%; height: 100%" :url-list="[imgUrl]" v-if="imgUrl" show-progress
fit="cover" @close="imgUrl = ''" />
<el-image-viewer
ref="imageRef"
style="width: 100%; height: 100%"
:url-list="['http://58.17.134.85:8920' + imgUrl]"
v-if="imgUrl"
show-progress
fit="cover"
@close="imgUrl = ''"
/>
</el-tab-pane>
<el-tab-pane label="回收站" name="second">
<RecyclingStation ref="recylingRef"></RecyclingStation>
@ -446,7 +506,7 @@ const delFile = (msg, data, cb) => {
}
});
})
.catch(() => { });
.catch(() => {});
};
const editName = (data, title, type) => {
ElMessageBox.prompt(title, '温馨提示', {
@ -476,7 +536,7 @@ const editName = (data, title, type) => {
}
});
})
.catch(() => { });
.catch(() => {});
};
const onExport = () => {
getUniFolderDownloadList(state.paramsQuery.folderId).then((res: any) => {
@ -521,7 +581,7 @@ onMounted(() => {
}
}
.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
background-color: #354e67 !important;
color: #fff;
}
@ -535,7 +595,7 @@ onMounted(() => {
padding: 10px 0 !important;
}
>div {
> div {
height: 100%;
width: 100%;
}
@ -573,7 +633,7 @@ onMounted(() => {
margin: 0 10px 0 20px;
position: relative;
>span {
> span {
padding: 4px 10px;
background: #67c23a;
color: #fff;