From a4ba486d83b3b954d72852157c25819d8a1ade12 Mon Sep 17 00:00:00 2001 From: danshihao Date: Tue, 16 Jul 2024 17:45:28 +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=8F=91=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StandardInterpretationProcess.vue | 2 +- .../modules/InterpretationClauseTable.vue | 15 ++++++++-- .../modules/InterpretationInitiate.vue | 30 +++++++++++-------- 3 files changed, 31 insertions(+), 16 deletions(-) diff --git a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue index ad0eac8..57cdb90 100644 --- a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue +++ b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue @@ -467,7 +467,7 @@ export default { }) // 所有删除的id - params.processAllDelIds = compData.processAllDelIds + params.processAllDelIds = compData.processAllDelIds.filter(id => id) // 保存草稿信息 params.infoJsonStr = JSON.stringify({ // 人员信息(要重新获取,流程里的信息不能直接用,后端需要多选人员处理成数组了) diff --git a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable.vue b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable.vue index 2ed89c6..81733e3 100644 --- a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable.vue +++ b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable.vue @@ -529,7 +529,14 @@ export default { methods: { // 设置组件内数据 setData (data = []) { - this.dataSource = data + this.dataSource = data.map(item => { + // 没有id就添加uuid,和标记,最后返回的时候去掉 + if (!item.id) { + item.id = randomUUID() + item[uuidFlag] = true + } + return item + }) }, // 获取组件内数据 getData () { @@ -765,9 +772,9 @@ export default { if (that.ipagination.current > 1 && ((that.ipagination.current - 1) * that.ipagination.pageSize) + 1 === that.ipagination.total) { that.ipagination.current -= 1 } + this.ipagination.total = this.dataSource.length } }) - this.ipagination.total = this.dataSource.length }, /** * 批量删除 @@ -806,6 +813,10 @@ export default { if (currentIndex < this.ipagination.current) { this.ipagination.current = currentIndex } + // 当前页数小于1 + if (this.ipagination.current < 1) { + this.ipagination.current = 1 + } }, /** * 显示条款内容、条文解读弹框 diff --git a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate.vue b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate.vue index 2b330c5..6aaba92 100644 --- a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate.vue +++ b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate.vue @@ -45,7 +45,7 @@ @@ -61,7 +61,6 @@