|
|
|
@ -268,7 +268,8 @@ export default { |
|
|
|
outHandleAdvice: '', |
|
|
|
handleCategory: '', |
|
|
|
deptResultDTOS: [], |
|
|
|
evaluateDeptDTOS: [] |
|
|
|
evaluateDeptDTOS: [], |
|
|
|
userId: '' |
|
|
|
}, |
|
|
|
deptResultDTOSVisible: false, |
|
|
|
evaluateDeptDTOSVisible: false, |
|
|
|
@ -529,23 +530,98 @@ export default { |
|
|
|
this.postDataForm.evaluateDeptDTOS = [] |
|
|
|
} |
|
|
|
this.isAble = true |
|
|
|
this.$http['post']( |
|
|
|
'/events/item/itemHandleSubmit', this.postDataForm).then(({ data: res }) => { |
|
|
|
this.isAble = false |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.visible = false |
|
|
|
this.$emit('refreshDataList') |
|
|
|
this.postDataForm.userId = this.dataForm.userId |
|
|
|
if (this.postDataForm.handleCategory === 0) { |
|
|
|
this.$http['post']( |
|
|
|
'/events/item/response', this.postDataForm).then(({ data: res }) => { |
|
|
|
this.isAble = false |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
this.$parent.selectComponent = 'ItemDeal' |
|
|
|
}).catch(() => { }) |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.visible = false |
|
|
|
this.$emit('refreshDataList') |
|
|
|
} |
|
|
|
}) |
|
|
|
this.$parent.selectComponent = 'ItemDeal' |
|
|
|
}).catch(() => { }) |
|
|
|
} else if (this.postDataForm.handleCategory === 1) { |
|
|
|
this.$http['post']( |
|
|
|
'/events/item/whistle', this.postDataForm).then(({ data: res }) => { |
|
|
|
this.isAble = false |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.visible = false |
|
|
|
this.$emit('refreshDataList') |
|
|
|
} |
|
|
|
}) |
|
|
|
this.$parent.selectComponent = 'ItemDeal' |
|
|
|
}).catch(() => { }) |
|
|
|
} else if (this.postDataForm.handleCategory === 5) { |
|
|
|
this.$http['post']( |
|
|
|
'/events/item/close', this.postDataForm).then(({ data: res }) => { |
|
|
|
this.isAble = false |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.visible = false |
|
|
|
this.$emit('refreshDataList') |
|
|
|
} |
|
|
|
}) |
|
|
|
this.$parent.selectComponent = 'ItemDeal' |
|
|
|
}).catch(() => { }) |
|
|
|
} else if (this.postDataForm.handleCategory === 10) { |
|
|
|
this.$http['post']( |
|
|
|
'/events/item/closeCase', this.postDataForm).then(({ data: res }) => { |
|
|
|
this.isAble = false |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.visible = false |
|
|
|
this.$emit('refreshDataList') |
|
|
|
} |
|
|
|
}) |
|
|
|
this.$parent.selectComponent = 'ItemDeal' |
|
|
|
}).catch(() => { }) |
|
|
|
} else { |
|
|
|
this.$http['post']( |
|
|
|
'/events/item/itemHandleSubmit', this.postDataForm).then(({ data: res }) => { |
|
|
|
this.isAble = false |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.visible = false |
|
|
|
this.$emit('refreshDataList') |
|
|
|
} |
|
|
|
}) |
|
|
|
this.$parent.selectComponent = 'ItemDeal' |
|
|
|
}).catch(() => { }) |
|
|
|
} |
|
|
|
}, 1000, { 'leading': true, 'trailing': false }) |
|
|
|
|
|
|
|
} |
|
|
|
|