Commit 8e72331c authored by 谢子梦's avatar 谢子梦

操作完毕关闭路由功能

parent f61cb28e
......@@ -762,12 +762,18 @@ export default {
if (this.formData.id != null) {
updateOutPersonal(this.formData).then(response => {
this.$modal.msgSuccess("修改成功");
this.$router.push({ path: "/business/payOutPersonal" })
// 关闭当前tabs
this.$store.dispatch("tagsView/delView", this.$route);
// 跳转路由
this.$router.push({ path: "/business/payOutPersonal", query: { id: this.$route.query.contractId, name: this.$route.query.contractName } })
});
} else {
addOutPersonal(this.formData).then(response => {
this.$modal.msgSuccess("新增成功");
this.$router.push({ path: "/business/payOutPersonal" })
// 关闭当前tabs
this.$store.dispatch("tagsView/delView", this.$route);
// 跳转路由
this.$router.push({ path: '/business/payOutPersonal', query: { id: this.$route.query.contractId, name: this.$route.query.contractName } });
});
}
} else {
......@@ -817,7 +823,9 @@ export default {
// 返回功能
goBackFN() {
this.reset()
this.$router.push({ path: "/business/payOutPersonal" })
this.$store.dispatch("tagsView/delView", this.$route);
// 跳转路由
this.$router.push({ path: '/business/payOutPersonal', query: { id: this.$route.query.contractId, name: this.$route.query.contractName } });
},
// 公积金个人比例变化执行
providentFundPersonalRateChange(e) {
......
......@@ -680,12 +680,19 @@ export default {
if (this.formData.id != null) {
updateOutContract(this.formData).then(response => {
this.$modal.msgSuccess("修改成功");
this.$router.push({ path: "/contract" })
// this.$router.push({ path: "/contract" })
// 关闭当前tabs
this.$store.dispatch("tagsView/delView", this.$route);
// 跳转路由
this.$router.replace({ path: '/contract' });
});
} else {
addOutContract(this.formData).then(response => {
this.$modal.msgSuccess("新增成功");
this.$router.push({ path: "/contract" })
// 关闭当前tabs
this.$store.dispatch("tagsView/delView", this.$route);
// 跳转路由
this.$router.replace({ path: '/contract' });
});
}
} else {
......@@ -696,7 +703,10 @@ export default {
// 返回功能
goBackFN() {
this.reset()
this.$router.push({ path: "/contract" })
// 关闭当前tabs
this.$store.dispatch("tagsView/delView", this.$route);
// 跳转路由
this.$router.replace({ path: '/contract' });
},
// 表单重置方法
reset() {
......
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