@@ -218,6 +219,42 @@ export default {
})
}).catch(() => {})
}
+ if (this.dataForm.eventState === '6') {
+ this.$http['post']('/events/epdcevents/reviewPass', this.dataForm).then(({ data: res }) => {
+ this.isAble = false
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ let toItemDataForm = {
+ id: '',
+ advice: '',
+ state: '4',
+ images: [],
+ userId: '',
+ deptResultDTOS: []
+ }
+ toItemDataForm.id = res.data
+ toItemDataForm.advice = this.dataForm.advice
+ toItemDataForm.images = this.dataForm.images
+ toItemDataForm.userId = this.dataForm.userId
+ this.$http['post']('/events/issue/toItem', toItemDataForm).then(({ data: res }) => {
+ this.isAble = false
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ }).catch(() => {})
+ this.$message({
+ message: this.$t('prompt.success'),
+ type: 'success',
+ duration: 500,
+ onClose: () => {
+ this.visible = false
+ this.$parent.selectComponent = 'IssueReviewList'
+ this.$emit('refreshDataList')
+ }
+ })
+ }).catch(() => {})
+ }
})
}, 1000, { 'leading': true, 'trailing': false })
}