From 6cbb5f38140ce786c083d8d744828e886f14ad52 Mon Sep 17 00:00:00 2001 From: luyan Date: Thu, 14 Sep 2023 09:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E5=A2=9E=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=9A=82=E4=B8=8D=E5=9B=9E=E5=A4=8D=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/shequzhili/event/cpts/event-info.vue | 10 +++++++--- .../modules/shequzhili/event/cpts/process-form.vue | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/modules/shequzhili/event/cpts/event-info.vue b/src/views/modules/shequzhili/event/cpts/event-info.vue index 61cb12c6a..45387e70a 100644 --- a/src/views/modules/shequzhili/event/cpts/event-info.vue +++ b/src/views/modules/shequzhili/event/cpts/event-info.vue @@ -263,7 +263,6 @@ export default { //加载组织数据 async getProjectProcess() { const url = "/governance/icEvent/process"; - // const url = "http://yapi.elinkservice.cn/mock/245/gov/project/icEvent/process"; const { data, code, msg } = await requestPost(url, { icEventId: this.eventId, }); @@ -326,7 +325,7 @@ export default { this.eventInfoData.categoryList = []; this.eventInfoData.categoryList.push(this.replayInfo.categoryId); } - } else { + } else if (this.formData.operationType === "5") { this.project = {}; this.demand = {}; this.replayInfo = this.$refs.ref_process_form_designate.replayInfo; @@ -337,6 +336,10 @@ export default { this.eventInfoData.categoryList = []; this.eventInfoData.categoryList.push(this.replayInfo.categoryId); } + } else if (this.formData.operationType === '4') { + this.project = {}; + this.demand = {}; + this.replayInfo = {}; } this.formData = { ...this.eventInfoData, @@ -348,7 +351,8 @@ export default { }, async submit() { - if (this.formData.operationType == 0 || this.formData.operationType == 5) { + if (this.formData.operationType === 0 || this.formData.operationType === 5 + || this.formData.operationType === 6 || this.formData.operationType === '4') { const url = "/governance/icEvent/add"; const { formData } = this; const { data, code, msg } = await requestPost(url, { diff --git a/src/views/modules/shequzhili/event/cpts/process-form.vue b/src/views/modules/shequzhili/event/cpts/process-form.vue index 28020705a..3e977c1e5 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form.vue @@ -163,6 +163,8 @@ export default { this.replayInfo = this.$refs.ref_process_form_replay_end.formData this.okflag = true } + }else { + return false } }, handleCancle() {