This commit is contained in:
xiongchengqiang 2020-12-21 16:29:00 +08:00
parent 3d9dfea576
commit 8ea4638b8f
2 changed files with 36 additions and 6 deletions

View File

@ -40,9 +40,9 @@ import {
Progress,
Drawer,
Slider,
ButtonGroup
ButtonGroup, Notification
} from 'element-ui'
Vue.prototype.$notify = Notification
Vue.prototype.$loading = Loading
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm

View File

@ -380,11 +380,33 @@ export default {
}
this.$message({
message: res.msg,
type: 'success'
type: 'success',
duration: 1000,
onClose: () => {
this.nextProcess(res)
}
})
if (!res.resultRecordId) return
this.dialogFormVisible = false
history.go(0)
},
//
nextProcess (res) {
if (!res.resultRecordId) return
this.$confirm('是否进去下一个待办?', '温馨提示', {
confirmButtonText: '确定',
cancelButtonText: '取消'
}).then(() => {
this.$router.replace({
name: 'assessment-performance',
query: {id: res.resultRecordId
}
})
history.go(0)
}).catch(() => {
})
},
//
handleBohui () {
this.ruleForm = {}
@ -505,10 +527,18 @@ export default {
this.form = {}
this.$message({
message: res.msg,
type: 'success'
type: 'success',
duration: 1000,
onClose: () => {
this.nextProcess(res)
}
})
history.go(0)
resolve(0)
if (!res.resultRecordId) {
resolve(0)
} else {
history.go(0)
resolve(0)
}
}
})
})