Commit b77edf3e authored by qinj's avatar qinj

审批页面关闭

parent 7a46c96f
...@@ -356,6 +356,11 @@ export default { ...@@ -356,6 +356,11 @@ export default {
}, },
watch: { watch: {
},
computed: {
visitedViews() {
return this.$store.state.tagsView.visitedViews
},
}, },
created() { created() {
...@@ -486,7 +491,7 @@ export default { ...@@ -486,7 +491,7 @@ export default {
this.loading = false this.loading = false
this.$message.success("审批成功!") this.$message.success("审批成功!")
this.dialogFormVisible = false this.dialogFormVisible = false
this.$router.back() this.handleClickGoBack()
}) })
} else { } else {
const bdd = { customerDTO: cc, note: this.form.note, result: "reject" } const bdd = { customerDTO: cc, note: this.form.note, result: "reject" }
...@@ -495,11 +500,17 @@ export default { ...@@ -495,11 +500,17 @@ export default {
this.loading = false this.loading = false
this.$message.success("退回成功!") this.$message.success("退回成功!")
this.dialogFormVisible = false this.dialogFormVisible = false
this.$router.back() this.handleClickGoBack()
}) })
} }
}, },
handleClickGoBack() {
this.$store.dispatch('tagsView/delView', this.$route)
.then((visitedViews) => {
this.$router.back(-1)
})
},
// 对象格式转化为键值对 // 对象格式转化为键值对
paramsToFormData(obj) { paramsToFormData(obj) {
const formData = new FormData(); const formData = new FormData();
......
...@@ -328,6 +328,11 @@ export default { ...@@ -328,6 +328,11 @@ export default {
// deep:true // deep:true
// } // }
},
computed: {
visitedViews() {
return this.$store.state.tagsView.visitedViews
},
}, },
created() { created() {
this.id = this.$route.query.id this.id = this.$route.query.id
...@@ -432,7 +437,7 @@ export default { ...@@ -432,7 +437,7 @@ export default {
this.loading = false this.loading = false
this.$message.success("审批成功!") this.$message.success("审批成功!")
this.dialogFormVisible = false this.dialogFormVisible = false
this.$router.back() this.handleClickGoBack()
}) })
} else { } else {
this.loading = true this.loading = true
...@@ -441,10 +446,16 @@ export default { ...@@ -441,10 +446,16 @@ export default {
this.loading = false this.loading = false
this.$message.success("退回成功!") this.$message.success("退回成功!")
this.dialogFormVisible = false this.dialogFormVisible = false
this.$router.back() this.handleClickGoBack()
}) })
} }
},
handleClickGoBack() {
this.$store.dispatch('tagsView/delView', this.$route)
.then((visitedViews) => {
this.$router.back(-1)
})
}, },
// 对象格式转化为键值对 // 对象格式转化为键值对
paramsToFormData(obj) { 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