Commit b77edf3e authored by qinj's avatar qinj

审批页面关闭

parent 7a46c96f
......@@ -356,6 +356,11 @@ export default {
},
watch: {
},
computed: {
visitedViews() {
return this.$store.state.tagsView.visitedViews
},
},
created() {
......@@ -486,7 +491,7 @@ export default {
this.loading = false
this.$message.success("审批成功!")
this.dialogFormVisible = false
this.$router.back()
this.handleClickGoBack()
})
} else {
const bdd = { customerDTO: cc, note: this.form.note, result: "reject" }
......@@ -495,11 +500,17 @@ export default {
this.loading = false
this.$message.success("退回成功!")
this.dialogFormVisible = false
this.$router.back()
this.handleClickGoBack()
})
}
},
handleClickGoBack() {
this.$store.dispatch('tagsView/delView', this.$route)
.then((visitedViews) => {
this.$router.back(-1)
})
},
// 对象格式转化为键值对
paramsToFormData(obj) {
const formData = new FormData();
......
......@@ -328,6 +328,11 @@ export default {
// deep:true
// }
},
computed: {
visitedViews() {
return this.$store.state.tagsView.visitedViews
},
},
created() {
this.id = this.$route.query.id
......@@ -432,7 +437,7 @@ export default {
this.loading = false
this.$message.success("审批成功!")
this.dialogFormVisible = false
this.$router.back()
this.handleClickGoBack()
})
} else {
this.loading = true
......@@ -441,10 +446,16 @@ export default {
this.loading = false
this.$message.success("退回成功!")
this.dialogFormVisible = false
this.$router.back()
this.handleClickGoBack()
})
}
},
handleClickGoBack() {
this.$store.dispatch('tagsView/delView', this.$route)
.then((visitedViews) => {
this.$router.back(-1)
})
},
// 对象格式转化为键值对
paramsToFormData(obj) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment