|
|
@ -356,7 +356,6 @@ export default { |
|
|
|
|
|
|
|
this.$refs.ref_add.getEventInfo() |
|
|
|
if (this.$refs.ref_add.okflag) { |
|
|
|
|
|
|
|
this.eventInfoData = this.$refs.ref_add.formData |
|
|
|
} else { |
|
|
|
return false |
|
|
@ -369,18 +368,21 @@ export default { |
|
|
|
|
|
|
|
this.formData.operationType = this.$refs.ref_processinfo_add.operationType |
|
|
|
this.eventInfoData.operationType = this.$refs.ref_processinfo_add.operationType |
|
|
|
// this.eventInfoData.categoryList = this.$refs.ref_processinfo_add.categoryList |
|
|
|
|
|
|
|
|
|
|
|
if (this.formData.operationType === '0') { |
|
|
|
this.project = {} |
|
|
|
this.demand = {} |
|
|
|
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo |
|
|
|
console.log('replayInfo', this.replayInfo) |
|
|
|
|
|
|
|
//回复属性赋值 |
|
|
|
this.eventInfoData.content = this.replayInfo.content |
|
|
|
this.eventInfoData.status = this.replayInfo.status |
|
|
|
this.eventInfoData.categoryList = [] |
|
|
|
this.eventInfoData.categoryList.push(this.replayInfo.categoryId) |
|
|
|
if (this.replayInfo.categoryId) { |
|
|
|
this.eventInfoData.categoryList = [] |
|
|
|
this.eventInfoData.categoryList.push(this.replayInfo.categoryId) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else if (this.formData.operationType === '1') { |
|
|
@ -389,17 +391,22 @@ export default { |
|
|
|
this.project = this.$refs.ref_processinfo_add.project |
|
|
|
//项目的属性同事件一样 |
|
|
|
this.project.gridId = this.eventInfoData.gridId |
|
|
|
|
|
|
|
if (this.project.categoryList && this.project.categoryList.length > 0) { |
|
|
|
this.eventInfoData.categoryList = [] |
|
|
|
this.eventInfoData.categoryList.push(this.project.categoryList[0].id) |
|
|
|
} |
|
|
|
|
|
|
|
console.log('projectInfo', this.project) |
|
|
|
|
|
|
|
} else if (this.formData.operationType === '2') { |
|
|
|
this.replayInfo = {} |
|
|
|
this.project = {} |
|
|
|
this.demand = this.$refs.ref_processinfo_add.demand |
|
|
|
|
|
|
|
//需求的属性同事件一样 |
|
|
|
this.demand.gridId = this.eventInfoData.gridId |
|
|
|
this.demand.reportUserName = this.eventInfoData.name//上报人姓名同需求上报人姓名 |
|
|
|
this.demand.reportUserMobile = this.eventInfoData.mobile//上报人手机号同需求上报人手机号 |
|
|
|
this.demand.reportTime = this.eventInfoData.happenTime//上报时间 |
|
|
|
this.eventInfoData.categoryList = [] |
|
|
|
this.eventInfoData.categoryList.push(this.demand.categoryId) |
|
|
|
console.log('demond', this.demand) |
|
|
|
} |
|
|
|
|
|
|
@ -413,7 +420,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
console.log('this.formData', this.formData) |
|
|
|
await this.submit() |
|
|
|
// await this.submit() |
|
|
|
}, |
|
|
|
|
|
|
|
async submit () { |
|
|
|