From 976350feea612453b0ef9d70411891ee60a71cdb Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Fri, 21 Jan 2022 15:59:40 +0800 Subject: [PATCH] commit --- .../pages/creatProcess/bzzqyj/step3.vue | 21 +++++++++++++++---- .../pages/creatProcess/bzzqyj/step4.vue | 18 +++++++++++++++- .../pages/creatProcess/bzzqyj/step5.vue | 6 ------ .../pags/consultationDetails.vue | 13 ++++++++++-- 4 files changed, 45 insertions(+), 13 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step3.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step3.vue index 1279e34f5..b96977649 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step3.vue @@ -432,7 +432,6 @@ } } }, - saveUserInfo2 () { if (this.addType === 'add') { this.data.push(this.editForm) @@ -446,8 +445,23 @@ this.data[a].reason = this.editForm.reason } } - this.modalshowflag2 = false - console.log(this.editForm); + if (this.addType === 'add') { + var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36); + this.itemId = id + this.editForm = { + chapterNumber: '', + chapterName: '', + oldText: '', + newText: '', + reason: '', + id: id, + department: this.$store.getters.userInfo.institutionName, + responUserName: this.$store.getters.userInfo.userName, + responUser: this.$store.getters.userInfo.userId + } + } else if (this.addType === 'edit') { + this.modalshowflag2 = false + } }, addModal() { var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36); @@ -480,7 +494,6 @@ reason: row.reason, } }, - cancleUserInfo2 () { this.modalshowflag2 = false }, diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step4.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step4.vue index 049c5d3e5..aa0bb8ae0 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step4.vue @@ -486,7 +486,23 @@ export default { this.data[a].reason = this.editForm.reason } } - this.modalshowflag2 = false + if (this.addType === 'add') { + var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36); + this.itemId = id + this.editForm = { + chapterNumber: '', + chapterName: '', + oldText: '', + newText: '', + reason: '', + id: id, + department: this.$store.getters.userInfo.institutionName, + responUserName: this.$store.getters.userInfo.userName, + responUser: this.$store.getters.userInfo.userId + } + } else if (this.addType === 'edit') { + this.modalshowflag2 = false + } }, addModal() { var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36); diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step5.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step5.vue index 51142db10..47b55eca0 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step5.vue @@ -450,12 +450,6 @@ saveUserInfo2 () { for( let a = 0; a < this.data.length; a++) { if (this.data[a].id === 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); } } diff --git a/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue b/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue index 381663abc..212a98648 100644 --- a/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue +++ b/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue @@ -210,7 +210,7 @@ - +
@@ -465,9 +465,18 @@ export default { if (res.respCode === '200') { this.form.page = 1 this.getList() + if (this.type === 'edit') { + this.isDialog = false + } else { + this.id = '' + this.opinionContent.partCode = '' + this.opinionContent.reason = '' + this.opinionContent.oldText = '' + this.opinionContent.newText = '' + this.opinionContent.cause = '' + } } }) - this.isDialog = false } }) },