From 082e7024ac0cccc9a8ce07837ba30b5664c09466 Mon Sep 17 00:00:00 2001 From: danshihao Date: Thu, 11 Jul 2024 17:53:41 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E6=A0=87=E5=87=86=E8=A7=A3=E8=AF=BB?= =?UTF-8?q?=E6=B5=81=E7=A8=8B]=20=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StandardInterpretationProcess.vue | 5 ++++- .../modules/InterpretationClauseTable.vue | 3 +++ .../modules/InterpretationInitiate.vue | 2 ++ .../modules/InterpretationInterpreterFillInfo.vue | 2 ++ .../modules/InterpretationLiaisonDistribute.vue | 2 ++ .../modules/InterpretationMainInterpreterDistribute.vue | 2 ++ 6 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue index 0c1ab13..83442f7 100644 --- a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue +++ b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue @@ -369,7 +369,10 @@ export default { projectId: this.projectId }) - params.data = {} + params.data = { + // 所有删除的id + processAllDelIds: compData.processAllDelIds + } // 发起节点 if (this.isInitiate) { // 选择的标准数据 diff --git a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable.vue b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable.vue index dd39bbf..af215ef 100644 --- a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable.vue +++ b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable.vue @@ -393,6 +393,7 @@ export default { }, selectedRowKeys: [], selectionRows: [], + processAllDelIds: [], // 记录所有删除过的id,后端需要 url: { // 导入 importExcelUrl: '/process/standardInterpretFlow/importExcelByUnDistribute', @@ -733,6 +734,7 @@ export default { title: this.$t('confirmDeletion'), content: this.$t('areYouSure'), onOk: () => { + this.processAllDelIds.push(id) that.dataSource = that.dataSource.filter(item => item[this.rowKey] !== id) // 判断当前删除的数据是否是最后一页的最后一条数据,如果是的话页码减一 if (that.ipagination.current > 1 && ((that.ipagination.current - 1) * that.ipagination.pageSize) + 1 === that.ipagination.total) { @@ -756,6 +758,7 @@ export default { title: this.$t('confirmBatchDeletion'), content: this.$t('deleteAData'), onOk: () => { + this.processAllDelIds.push(...this.selectedRowKeys) this.dataSource = this.dataSource.filter(item => !this.selectedRowKeys.includes(item[this.rowKey])) // 重新计算分页问题 that.reCalculatePage(that.selectedRowKeys.length) diff --git a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate.vue b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate.vue index 90339d3..a5214a0 100644 --- a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate.vue +++ b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate.vue @@ -155,6 +155,8 @@ export default { if (this.showClauseTable) { obj.clauseData = this.$refs.interpretationClauseTable.getData() } + // 获取所有删除的id + obj.processAllDelIds = this.$refs.interpretationClauseTable && this.$refs.interpretationClauseTable.processAllDelIds return obj }, // 更新组件内的数据 diff --git a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInterpreterFillInfo.vue b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInterpreterFillInfo.vue index 0c8503f..78003e5 100644 --- a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInterpreterFillInfo.vue +++ b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInterpreterFillInfo.vue @@ -137,6 +137,8 @@ export default { obj.formData = this.form.getFieldsValue() } obj.clauseInterpretData = this.$refs.interpretationClauseTable.getData() + // 获取所有删除的id + obj.processAllDelIds = this.$refs.interpretationClauseTable && this.$refs.interpretationClauseTable.processAllDelIds return obj }, // 更新组件内的数据 diff --git a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationLiaisonDistribute.vue b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationLiaisonDistribute.vue index 70408b2..2a7e3a5 100644 --- a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationLiaisonDistribute.vue +++ b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationLiaisonDistribute.vue @@ -85,6 +85,8 @@ export default { } // 条款列表 obj.clauseData = this.$refs.interpretationClauseTable.getData() + // 获取所有删除的id + obj.processAllDelIds = this.$refs.interpretationClauseTable && this.$refs.interpretationClauseTable.processAllDelIds return obj }, // 更新组件内的数据 diff --git a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationMainInterpreterDistribute.vue b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationMainInterpreterDistribute.vue index f5ea297..c37ca32 100644 --- a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationMainInterpreterDistribute.vue +++ b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationMainInterpreterDistribute.vue @@ -262,6 +262,8 @@ export default { } } } + // 获取所有删除的id + obj.processAllDelIds = this.$refs.interpretationClauseTable && this.$refs.interpretationClauseTable.processAllDelIds return obj }, setData (data) {