|
@ -489,6 +489,7 @@ export default { |
|
|
this.formData.operationType == "5" || |
|
|
this.formData.operationType == "5" || |
|
|
this.formData.operationType == "6" || |
|
|
this.formData.operationType == "6" || |
|
|
this.formData.operationType == "0" || |
|
|
this.formData.operationType == "0" || |
|
|
|
|
|
this.formData.operationType == "7" || |
|
|
(this.formData.operationType == 2 && this.demand.demandUserName) |
|
|
(this.formData.operationType == 2 && this.demand.demandUserName) |
|
|
) { |
|
|
) { |
|
|
if (Array.isArray(this.formData.gridId) && this.formData.gridId.length) { |
|
|
if (Array.isArray(this.formData.gridId) && this.formData.gridId.length) { |
|
@ -503,10 +504,10 @@ export default { |
|
|
this.formData.agencyId = ""; |
|
|
this.formData.agencyId = ""; |
|
|
this.formData.gridId = ""; |
|
|
this.formData.gridId = ""; |
|
|
} |
|
|
} |
|
|
|
|
|
this.formData.openFlag = this.formData.operationType == "7"?1:0 |
|
|
const url = "/governance/icEventOld/add"; |
|
|
const url = "/governance/icEventOld/add"; |
|
|
const { formData } = this; |
|
|
|
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
...formData, |
|
|
...this.formData, |
|
|
}); |
|
|
}); |
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
this.$message.success("操作成功!"); |
|
|
this.$message.success("操作成功!"); |
|
@ -523,12 +524,12 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async handelDispose() { |
|
|
async handelDispose() { |
|
|
console.log(this.$refs.ref_processinfo_dispose.okflag); |
|
|
console.log(this.formData.operationType); |
|
|
this.$refs.ref_processinfo_dispose.getProcessInfo(); |
|
|
this.$refs.ref_processinfo_dispose.getProcessInfo(); |
|
|
if (this.$refs.ref_processinfo_dispose.okflag) { |
|
|
if (this.$refs.ref_processinfo_dispose.okflag) { |
|
|
this.formData.operationType = this.$refs.ref_processinfo_dispose.operationType; |
|
|
this.formData.operationType = this.$refs.ref_processinfo_dispose.operationType; |
|
|
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 === '6' || this.formData.operationType === '7') { |
|
|
this.project = {}; |
|
|
this.project = {}; |
|
|
this.demand = {}; |
|
|
this.demand = {}; |
|
|
if (this.$refs.ref_processinfo_dispose.replayInfo.okflag) { |
|
|
if (this.$refs.ref_processinfo_dispose.replayInfo.okflag) { |
|
@ -537,6 +538,14 @@ export default { |
|
|
} |
|
|
} |
|
|
this.replayInfo = this.$refs.ref_processinfo_dispose.replayInfo; |
|
|
this.replayInfo = this.$refs.ref_processinfo_dispose.replayInfo; |
|
|
this.replayInfo.icEventId = this.eventId; |
|
|
this.replayInfo.icEventId = this.eventId; |
|
|
|
|
|
if(this.formData.operationType === '7'){ |
|
|
|
|
|
this.replayInfo.openFlag = 1 |
|
|
|
|
|
this.replayInfo.operationType = '7'//不可以openFlag为true时去掉校验吗? |
|
|
|
|
|
this.replayInfo.content = '1111'//不可以openFlag为true时去掉校验吗? |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.replayInfo.openFlag = 0 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//回复属性赋值 |
|
|
//回复属性赋值 |
|
|
let url = "/governance/icEventOld/reply"; |
|
|
let url = "/governance/icEventOld/reply"; |
|
|
await this.submitDispose(url, this.replayInfo); |
|
|
await this.submitDispose(url, this.replayInfo); |
|
|