Browse Source

修改新增事件暂不回复不能提交的问题

feature
luyan 2 years ago
parent
commit
6cbb5f3814
  1. 10
      src/views/modules/shequzhili/event/cpts/event-info.vue
  2. 2
      src/views/modules/shequzhili/event/cpts/process-form.vue

10
src/views/modules/shequzhili/event/cpts/event-info.vue

@ -263,7 +263,6 @@ export default {
// //
async getProjectProcess() { async getProjectProcess() {
const url = "/governance/icEvent/process"; const url = "/governance/icEvent/process";
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/icEvent/process";
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {
icEventId: this.eventId, icEventId: this.eventId,
}); });
@ -326,7 +325,7 @@ export default {
this.eventInfoData.categoryList = []; this.eventInfoData.categoryList = [];
this.eventInfoData.categoryList.push(this.replayInfo.categoryId); this.eventInfoData.categoryList.push(this.replayInfo.categoryId);
} }
} else { } else if (this.formData.operationType === "5") {
this.project = {}; this.project = {};
this.demand = {}; this.demand = {};
this.replayInfo = this.$refs.ref_process_form_designate.replayInfo; this.replayInfo = this.$refs.ref_process_form_designate.replayInfo;
@ -337,6 +336,10 @@ export default {
this.eventInfoData.categoryList = []; this.eventInfoData.categoryList = [];
this.eventInfoData.categoryList.push(this.replayInfo.categoryId); this.eventInfoData.categoryList.push(this.replayInfo.categoryId);
} }
} else if (this.formData.operationType === '4') {
this.project = {};
this.demand = {};
this.replayInfo = {};
} }
this.formData = { this.formData = {
...this.eventInfoData, ...this.eventInfoData,
@ -348,7 +351,8 @@ export default {
}, },
async submit() { 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 url = "/governance/icEvent/add";
const { formData } = this; const { formData } = this;
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {

2
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.replayInfo = this.$refs.ref_process_form_replay_end.formData
this.okflag = true this.okflag = true
} }
}else {
return false
} }
}, },
handleCancle() { handleCancle() {

Loading…
Cancel
Save