From 697fab7bf08a87292d991f268eed4eb7b9670080 Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Tue, 11 Jan 2022 11:43:40 +0800 Subject: [PATCH] commit --- .../processCenter/pages/creatProcess/bzzqyj/step5.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step5.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step5.vue index a3b328df4..fc5ac8428 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step5.vue @@ -179,7 +179,7 @@ class="common-button-primary" size="mini" type="primary" - @click="itemEdit(scope.row)">处理 + @click="itemEdit(scope.row, scope.$index)">处理 @@ -447,14 +447,13 @@ }, saveUserInfo2 () { for( let a = 0; a < this.data.length; a++) { - if (this.data[a].id === this.itemId) { + if (a === this.itemId) { this.data[a].chapterNumber = this.editForm.chapterNumber this.data[a].chapterName = this.editForm.chapterName this.data[a].oldText = this.editForm.oldText this.data[a].newText = this.editForm.newText this.data[a].reason = this.editForm.reason this.data[a].cause = this.editForm.cause - this.$set(this.data, a,this.editForm) } } this.modalshowflag2 = false @@ -462,8 +461,8 @@ cancleUserInfo2 () { this.modalshowflag2 = false }, - itemEdit (row) { - this.itemId = row.id + itemEdit (row, index) { + this.itemId = index this.modalshowflag2 = true this.editForm = { chapterNumber: row.chapterNumber,