From a12204687f18e8fc45ce76d3ff283e4dbdbdf8de Mon Sep 17 00:00:00 2001 From: hanjian <272005125@qq.com> Date: Tue, 10 Sep 2024 01:10:31 +0800 Subject: [PATCH] update --- src/views/document/detail.vue | 53 +++++++++++++------ src/views/document/editDocument.vue | 7 ++- src/views/document/index.vue | 36 ++++++++----- src/views/filestatistic/index.vue | 1 + src/views/message/index.vue | 1 + src/views/statistic/index.vue | 1 + src/views/tool/index.vue | 50 +++++++++++++++-- src/views/tool/toolDetail.vue | 6 +-- .../workflowList/addWorkflow/tool_release.vue | 2 +- .../workflowList/addWorkflow/use_apply.vue | 2 +- src/views/workstuff/apply/index.vue | 8 ++- src/views/workstuff/dispose/index.vue | 10 ++-- 12 files changed, 132 insertions(+), 45 deletions(-) diff --git a/src/views/document/detail.vue b/src/views/document/detail.vue index 840918f..be9257c 100644 --- a/src/views/document/detail.vue +++ b/src/views/document/detail.vue @@ -50,7 +50,7 @@
-
评论
+
评论({{ reviewTotal }})
@@ -59,7 +59,7 @@
- + @@ -414,7 +417,7 @@ export default { docName: '', docCode: '', docType: '', - docPrincipals: '', + docPrincipalsName: '', docSource: '', docStatus: '', createById: this.$store.getters.userId, @@ -629,11 +632,16 @@ export default { } //只能删除已上传数据 let delFlag = false; - for(let item of self.selection){ - if(!(item.docStatus == 'ysc')){ - delFlag = true; + if(self.selection){ + for(let item of self.selection){ + if(!(item.docStatus == 'ysc')){ + delFlag = true; + } } } + if(row.docStatus && row.docStatus != 'ysc'){ + delFlag = true; + } if(delFlag){ this.$modal.msgError(`只能删除文档状态为[已上传]数据,请重新选择`); return @@ -808,7 +816,7 @@ export default { if (this.checkList.length<1) { this.checkList = JSON.parse(JSON.stringify(this.columnList)) } - this.exportTitle = '导出' + this.exportTitle = '全量导出' this.exportDrawerOpen = true this.batchExportFlag = false }, diff --git a/src/views/filestatistic/index.vue b/src/views/filestatistic/index.vue index bb83f53..d9770e3 100644 --- a/src/views/filestatistic/index.vue +++ b/src/views/filestatistic/index.vue @@ -66,6 +66,7 @@ v-model="queryParams.docName" placeholder="请输入文档名称" clearable + @clear="handleQuery" @keyup.enter.native="handleQuery" /> diff --git a/src/views/message/index.vue b/src/views/message/index.vue index 4c66aef..593ee3d 100644 --- a/src/views/message/index.vue +++ b/src/views/message/index.vue @@ -10,6 +10,7 @@ placeholder="请输入消息内容" clearable style="width: 240px" + @clear="handleQuery" @keyup.enter.native="handleQuery" /> diff --git a/src/views/statistic/index.vue b/src/views/statistic/index.vue index d9a5c82..27e1945 100644 --- a/src/views/statistic/index.vue +++ b/src/views/statistic/index.vue @@ -81,6 +81,7 @@ v-model="queryParams.toolName" placeholder="请输入工具名称" clearable + @clear="handleQuery" @keyup.enter.native="handleQuery" /> diff --git a/src/views/tool/index.vue b/src/views/tool/index.vue index e7b5965..72f198c 100644 --- a/src/views/tool/index.vue +++ b/src/views/tool/index.vue @@ -10,6 +10,7 @@ v-model="queryParams.toolCode" placeholder="请输入工具编号" clearable + @clear="handleQuery" @keyup.enter.native="handleQuery" /> @@ -18,9 +19,34 @@ v-model="queryParams.toolName" placeholder="请输入工具名称" clearable + @clear="handleQuery" @keyup.enter.native="handleQuery" /> + + + + + + + + - + + + + + + @@ -105,7 +146,7 @@ - + @@ -376,6 +417,7 @@ export default { pageSize: 10, toolCode: undefined, toolName: undefined, + toolPrincipalsName: undefined, status: undefined, createBy: this.$store.getters.userId, permissionCheck: true, @@ -610,7 +652,7 @@ export default { if (this.checkList.length<1) { this.checkList = JSON.parse(JSON.stringify(this.columnList)) } - this.exportTitle = '导出' + this.exportTitle = '全量导出' this.batchExportFlag = false this.exoportDrawerOpen = true }, diff --git a/src/views/tool/toolDetail.vue b/src/views/tool/toolDetail.vue index 04a4e25..668ef7a 100644 --- a/src/views/tool/toolDetail.vue +++ b/src/views/tool/toolDetail.vue @@ -11,7 +11,7 @@ {{detailData.toolPrincipalsName}} {{detailData.toolRespDeptName}} - + {{detailData.toolUse}} {{detailData.testSituation}} {{detailData.functionDesc}} @@ -354,12 +354,12 @@ getDiscussionsList() { let _this = this _this.reviewTotal = 0 - listDiscussions({businessId:this.toolDetail.toolId}).then(res => { + listDiscussions({businessId: _this.toolDetail.toolId}).then(res => { _this.discussionsList = res.rows let reviewTotal = 0 _this.discussionsList.forEach(item => { - reviewTotal += item.repliesList.length if(item.repliesList && item.repliesList.length > 0){ + reviewTotal += item.repliesList.length _this.$set(item, 'showReplyFormSon', new Array(item.repliesList.length).fill(false)) _this.$set(item, 'replyContentSon', new Array(item.repliesList.length).fill('')) }else{ diff --git a/src/views/workflowList/addWorkflow/tool_release.vue b/src/views/workflowList/addWorkflow/tool_release.vue index 644bfc2..3281813 100644 --- a/src/views/workflowList/addWorkflow/tool_release.vue +++ b/src/views/workflowList/addWorkflow/tool_release.vue @@ -127,7 +127,7 @@ - + - + diff --git a/src/views/workstuff/apply/index.vue b/src/views/workstuff/apply/index.vue index 1d73a63..9282b6c 100644 --- a/src/views/workstuff/apply/index.vue +++ b/src/views/workstuff/apply/index.vue @@ -6,7 +6,13 @@