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() {