优化
This commit is contained in:
parent
3d9dfea576
commit
8ea4638b8f
@ -40,9 +40,9 @@ import {
|
|||||||
Progress,
|
Progress,
|
||||||
Drawer,
|
Drawer,
|
||||||
Slider,
|
Slider,
|
||||||
ButtonGroup
|
ButtonGroup, Notification
|
||||||
} from 'element-ui'
|
} from 'element-ui'
|
||||||
|
Vue.prototype.$notify = Notification
|
||||||
Vue.prototype.$loading = Loading
|
Vue.prototype.$loading = Loading
|
||||||
Vue.prototype.$message = Message
|
Vue.prototype.$message = Message
|
||||||
Vue.prototype.$confirm = MessageBox.confirm
|
Vue.prototype.$confirm = MessageBox.confirm
|
||||||
|
|||||||
@ -380,11 +380,33 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: 'success'
|
type: 'success',
|
||||||
|
duration: 1000,
|
||||||
|
onClose: () => {
|
||||||
|
this.nextProcess(res)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
if (!res.resultRecordId) return
|
||||||
this.dialogFormVisible = false
|
this.dialogFormVisible = false
|
||||||
history.go(0)
|
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 () {
|
handleBohui () {
|
||||||
this.ruleForm = {}
|
this.ruleForm = {}
|
||||||
@ -505,10 +527,18 @@ export default {
|
|||||||
this.form = {}
|
this.form = {}
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: 'success'
|
type: 'success',
|
||||||
|
duration: 1000,
|
||||||
|
onClose: () => {
|
||||||
|
this.nextProcess(res)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
history.go(0)
|
if (!res.resultRecordId) {
|
||||||
resolve(0)
|
resolve(0)
|
||||||
|
} else {
|
||||||
|
history.go(0)
|
||||||
|
resolve(0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user