|
|
|
@ -508,6 +508,8 @@ export default { |
|
|
|
this.dataForm.handlePeopleMobile = val |
|
|
|
}, |
|
|
|
'postDataForm.handleCategoryShow': function (val) { |
|
|
|
console.log("1-12-1-2-1-2-1--2") |
|
|
|
console.log(this.typeKey ) |
|
|
|
if (this.typeKey == 'community_party') { |
|
|
|
// 不予受理申请 |
|
|
|
if (val == 6) { |
|
|
|
@ -764,7 +766,7 @@ export default { |
|
|
|
this.getHandleResultDTOS() |
|
|
|
}, |
|
|
|
// 获取处理项 |
|
|
|
getHandleResultDTOS () { |
|
|
|
async getHandleResultDTOS () { |
|
|
|
this.dataForm.handleResultDTOS = [] |
|
|
|
this.dataForm.deptResultDTOS = [] |
|
|
|
this.dataForm.evaluateDeptDTOS = [] |
|
|
|
@ -772,11 +774,12 @@ export default { |
|
|
|
this.postDataForm.deptResultDTOS = [] |
|
|
|
this.postDataForm.evaluateDeptDTOS = [] |
|
|
|
this.deptResult = [] |
|
|
|
this.$http.post(`/events/item/getHandleResultDTOS`, { |
|
|
|
let {data:res} = await this.$http.post(`/events/item/getHandleResultDTOS`, { |
|
|
|
itemId: this.dataForm.id, |
|
|
|
deptId: this.postDataForm.handlerDeptId |
|
|
|
}).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
}); |
|
|
|
console.log(res); |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.checkParentName = res.data.parentDeptName |
|
|
|
@ -790,14 +793,51 @@ export default { |
|
|
|
} |
|
|
|
this.dataForm.handleResultDTOS = res.data.handleResultDTOS |
|
|
|
this.typeKey = res.data.typeKey |
|
|
|
// this.postDataForm.handleCategoryShow = this.postDataForm.handleCategoryShow; |
|
|
|
if (res.data.handleResultDTOS && res.data.handleResultDTOS.length > 0 && res.data.typeKey == 'grid_party' |
|
|
|
) { |
|
|
|
this.postDataForm.handleCategoryShow = res.data.handleResultDTOS[0].processResult |
|
|
|
} |
|
|
|
this.dataForm.deptResultDTOS = res.data.deptResultDTOS |
|
|
|
this.dataForm.evaluateDeptDTOS = res.data.evaluateDeptDTOS |
|
|
|
}, |
|
|
|
|
|
|
|
async getHandleResultDTOSTwo() { |
|
|
|
this.dataForm.handleResultDTOS = [] |
|
|
|
this.dataForm.deptResultDTOS = [] |
|
|
|
this.dataForm.evaluateDeptDTOS = [] |
|
|
|
let TempCategory = this.postDataForm.handleCategoryShow; |
|
|
|
this.postDataForm.handleCategoryShow = '' |
|
|
|
this.postDataForm.deptResultDTOS = [] |
|
|
|
this.postDataForm.evaluateDeptDTOS = [] |
|
|
|
this.deptResult = [] |
|
|
|
let {data:res} = await this.$http.post(`/events/item/getHandleResultDTOS`, { |
|
|
|
itemId: this.dataForm.id, |
|
|
|
deptId: this.postDataForm.handlerDeptId |
|
|
|
}); |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.checkParentName = res.data.parentDeptName |
|
|
|
|
|
|
|
if (res.data.typeKey == 'grid_party') { |
|
|
|
// this.postDataForm.outHandleAdvice = '您的诉求, ' + res.data.parentDeptName + '正在全力办理' |
|
|
|
this.postDataForm.outHandleAdvice = '您的诉求, 社区正在全力办理。' |
|
|
|
} else if (res.data.typeKey == 'community_party') { |
|
|
|
// this.postDataForm.outHandleAdvice = '您的诉求, ' + res.data.parentDeptName + '正在协调办理,请您耐心等待' |
|
|
|
this.postDataForm.outHandleAdvice = '您的诉求, 街道正在协调办理,请您耐心等待。' |
|
|
|
} |
|
|
|
this.dataForm.handleResultDTOS = res.data.handleResultDTOS |
|
|
|
this.typeKey = res.data.typeKey |
|
|
|
console.log(this.typeKey) |
|
|
|
console.log(12) |
|
|
|
this.postDataForm.handleCategoryShow = TempCategory; |
|
|
|
if (res.data.handleResultDTOS && res.data.handleResultDTOS.length > 0 && res.data.typeKey == 'grid_party' |
|
|
|
) { |
|
|
|
this.postDataForm.handleCategoryShow = res.data.handleResultDTOS[0].processResult |
|
|
|
} |
|
|
|
this.dataForm.deptResultDTOS = res.data.deptResultDTOS |
|
|
|
this.dataForm.evaluateDeptDTOS = res.data.evaluateDeptDTOS |
|
|
|
}) |
|
|
|
.catch(() => { }) |
|
|
|
}, |
|
|
|
initBmap (latitude, longitude) { |
|
|
|
this.map = new BMap.Map('map') |
|
|
|
@ -827,11 +867,11 @@ export default { |
|
|
|
this.previewImgList.push(url) |
|
|
|
}, |
|
|
|
// 获取信息 |
|
|
|
getInfo () { |
|
|
|
this.$http |
|
|
|
.get(`/events/item/reject/${this.dataForm.id}`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
async getInfo () { |
|
|
|
let {data:res} = await this.$http |
|
|
|
.get(`/events/item/reject/${this.dataForm.id}`); |
|
|
|
|
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
|
|
|
|
@ -844,12 +884,13 @@ export default { |
|
|
|
handlerDeptIdRule: res.data.handlerDeptId |
|
|
|
} |
|
|
|
this.postDataForm = { ...res.data, handleAdviceRadios: '', handlerDept: res.data.handlerDept, handlerDeptId: res.data.handlerDeptId, handlerDeptIdRule: res.data.handlerDeptId } |
|
|
|
console.log(this.postDataForm) |
|
|
|
// console.log(this.postDataForm) |
|
|
|
|
|
|
|
this.postDataForm.handlerDept = res.data.handlerDept |
|
|
|
this.dataForm.handlerDeptIdRule = res.data.handlerDeptId |
|
|
|
this.postDataForm.handlerDeptId = res.data.handlerDeptId |
|
|
|
this.getHandleResultDTOS() |
|
|
|
this.getHandleResultDTOSTwo() |
|
|
|
// this.postDataForm.handleCategoryShow = res.data.handleCategoryShow; |
|
|
|
this.timeloading = false |
|
|
|
let imagesList = [] |
|
|
|
res.data.itemImges.forEach(element => { |
|
|
|
@ -920,8 +961,7 @@ export default { |
|
|
|
this.dataForm.handleCategoryShow = handleResultDTO.processResult |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { }) |
|
|
|
|
|
|
|
}, |
|
|
|
deleteComment (val) { |
|
|
|
this.$confirm('确定要屏蔽该评论吗?屏蔽后不可恢复。', '提示', { |
|
|
|
|