diff --git a/public/document.docx b/public/document.docx index fbb77ff..2a0622e 100644 --- a/public/document.docx +++ b/public/document.docx @@ -12,9 +12,7 @@ {docRespDeptName} 文档来源 {docSourceName} - 关联工具 -{toolName} - 上传状态 + 文档状态 {statusName} 创建时间 {createTime} diff --git a/public/tool.docx b/public/tool.docx index 3ced47f..c03eb78 100644 --- a/public/tool.docx +++ b/public/tool.docx @@ -12,16 +12,8 @@ {toolRespDeptName} 状态 {statusName} - 工具用途 -{toolUse} - 测评情况 -{testSituation} - 功能描述 -{functionDesc} - 适用条件 -{applyCondition} - 操作说明 -{operateExplain} - 备注 -{remark} + 流程状态 +{recordStatusName} + 创建时间 +{createTime} {/list} diff --git a/src/api/document/document.js b/src/api/document/document.js index 5974d65..cec496c 100644 --- a/src/api/document/document.js +++ b/src/api/document/document.js @@ -68,7 +68,7 @@ export function getStatistics(query) { export function getExportWordList(query) { return request({ url: '/document/export/word/list', - method: 'get', - params: query + method: 'post', + data: query }) } diff --git a/src/components/FileUpload/optimizeToolUpload.vue b/src/components/FileUpload/optimizeToolUpload.vue index 9c33613..b9cdac6 100644 --- a/src/components/FileUpload/optimizeToolUpload.vue +++ b/src/components/FileUpload/optimizeToolUpload.vue @@ -491,9 +491,11 @@ export default { failCount++; } } - this.$message.success('上传完成!成功:' + this.uploadedCount+',失败:' + failCount); - this.progressFlag = false; - this.progressPercent = 0; + setTimeout(function () { + self.$message.success('上传完成!成功:' + this.uploadedCount+',失败:' + failCount); + self.progressFlag = false; + self.progressPercent = 0; + }, 500); }, updateProgress() { if (this.uploadedCount === this.totalFiles) { diff --git a/src/utils/auth.js b/src/utils/auth.js index 08a43d6..df9f40a 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -1,6 +1,6 @@ import Cookies from 'js-cookie' -const TokenKey = 'Admin-Token' +const TokenKey = 'Admin-Token-Tool' export function getToken() { return Cookies.get(TokenKey) diff --git a/src/views/document/detail.vue b/src/views/document/detail.vue index cbf8fa8..153aaa8 100644 --- a/src/views/document/detail.vue +++ b/src/views/document/detail.vue @@ -83,7 +83,7 @@
{{repItem.nickName}}{{ parseTime(repItem.createTime, '{y}-{m}-{d} {h}:{i}') }}
{{repItem.content}}
- +
@@ -414,15 +414,14 @@ }); self.cancelReplySon(parentIndex, repIndex) self.getDiscussionsList() + // 清空回复内容并隐藏表单 + this.$set(parentItem.replyContentSon, repIndex, ''); + this.$set(parentItem.showReplyFormSon, repIndex, false); }).catch(err =>{ console.error("submitReplySon==err==", err) self.$modal.msgError("发布失败"); }); }) - - // 清空回复内容并隐藏表单 - this.$set(parentItem.replyContentSon, repIndex, ''); - this.$set(parentItem.showReplyFormSon, repIndex, false); }, /** 回复 **/ submitReply(index, item) { diff --git a/src/views/document/index.vue b/src/views/document/index.vue index 5d1e9d9..8d738f9 100644 --- a/src/views/document/index.vue +++ b/src/views/document/index.vue @@ -86,17 +86,33 @@
- + +
- + {{ node.label }} 添加 - 编辑 - 删除 + 编辑 + 删除 @@ -120,7 +136,7 @@
- + @@ -209,8 +225,11 @@ - - + + @@ -269,6 +288,7 @@
@@ -292,7 +312,7 @@ 文档编号 文档名称 文档类别 - 负责人 + 负责人 归属单位 文档来源 文档状态 @@ -397,11 +417,17 @@ export default { docPrincipals: '', docSource: '', docStatus: '', - docCategoryId: '', createById: this.$store.getters.userId, permissionCheck: true, downloadCheck:true }, + // 文件夹查询 + queryCategoryParams: { + pageNum: 1, + pageSize: 10, + docCategoryId: '', + categoryName: '', + }, // 表单参数 form: { docName: '', @@ -444,7 +470,7 @@ export default { loadingDownload: false, acceptType: "zip,rar,7z", //导出属性 - columnList: ['docCode', 'docName', 'docType', 'docPrincipals', 'docRespDeptName', 'docSource', 'docStatus', 'createTime'], + columnList: ['docCode', 'docName', 'docType', 'docPrincipalsName', 'docRespDeptName', 'docSource', 'docStatus', 'createTime'], checkList: [], exportDrawerOpen: false, docTitle: '', @@ -475,8 +501,16 @@ export default { docDetail: {}, detailDocOpen: false, detailOpen: false, + categoryNameParam: undefined, + wordLoading: false, }; }, + watch: { + // 根据名称筛选部门树 + categoryNameParam(val) { + this.$refs.tree.filter(val); + } + }, created() { this.getList(); this.getDeptTree(); @@ -529,6 +563,7 @@ export default { this.dateRange = []; this.queryParams.docCategoryId = ''; this.resetForm("queryForm"); + this.$refs.tree.setCurrentKey(null); this.handleQuery(); }, /** 新增按钮操作 */ @@ -634,17 +669,20 @@ export default { }, /** 修改按钮操作 */ handleDocCategoryUpdate(row) { - this.resetDocCategoryForm(); + let self = this + self.docCategoryOpen = true; + self.$nextTick(() => { + self.resetDocCategoryForm(); + }) const id = row.id; getCategory(id).then(response => { - this.docCategoryForm = response.data; - this.docCategoryOpen = true; - this.docCategoryTitle = "修改文档资源分类"; + self.docCategoryForm = response.data; + self.docCategoryTitle = "修改文档资源分类"; }); }, /** 提交按钮 */ docCategorySubmitForm() { - this.$refs["docCategoryForm"].validate(valid => { + this.$refs["docCategoryFormRefs"].validate(valid => { if (valid) { if (this.docCategoryForm.id != null) { updateCategory(this.docCategoryForm).then(response => { @@ -670,7 +708,12 @@ export default { }, /** 重置 **/ resetDocCategoryForm(){ - this.$refs.docCategoryForm.resetFields(); + this.docCategoryForm = { + categoryName: null, + categoryDescription: null, + parentId: null + }, + this.$refs.docCategoryFormRefs.resetFields(); }, /** * 处理下载 @@ -772,6 +815,11 @@ export default { /** 导出按钮操作 */ handleExport() { let self = this + console.info("this.checkList.======", this.checkList) + if(this.checkList.length == 0){ + this.$modal.msgWarning(`最少选择一个字段`); + return + } if (this.statevalue == 1) { let excludeFields = this.columnList.filter(item=>!this.checkList.includes(item)) @@ -787,7 +835,7 @@ export default { excludeFields:excludeFields, } } - this.download('/document/export', params , `文档资源信息数据_${new Date().getTime()}.xlsx`) + this.download('/document/export', params , `document_${new Date().getTime()}.xlsx`) } if (this.statevalue == 2) { let params = { @@ -798,16 +846,30 @@ export default { docIdList: self.selection.map(item=>item.docId) } } + self.wordLoading = true getExportWordList(params).then(r => { if (r.data.length != 0) { const data = { form: null, list: r.data } - exportDocx('document.docx', data, `document.docx`) + exportDocx('document.docx', data, `document_${new Date().getTime()}.docx`) + setTimeout(() => { + if(self.batchExportFlag){ + self.clearSelected() + } + self.wordLoading = false + self.exoportDrawerOpen = false; + }, 1000); } else { + self.wordLoading = false + self.exportDrawerOpen = false this.$message.error('没有数据'); } + }).catch((err) => { + console.error("err=============", err) + self.wordLoading = false + self.exportDrawerOpen = false }) } @@ -834,6 +896,10 @@ export default { break; } }, + clearSelected() { + // 清空选中的tab + this.$refs.tableRef.clearSelection(); + }, /** 关闭详情 **/ handleFileCloseDetail(){ this.fileDetailDrawerOpen = false; diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index e0cc845..8061e9e 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -100,7 +100,10 @@ - + @@ -112,7 +115,7 @@ - + @@ -124,19 +127,19 @@ - + - + - + diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index d4d7b78..fcba135 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -154,10 +154,13 @@ - + - + @@ -166,7 +169,7 @@ 权限字符 - + @@ -206,7 +209,10 @@ - + diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index a294b3d..bbd6910 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -188,7 +188,10 @@ - + @@ -294,7 +297,10 @@ - + - + + -