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

操作完毕关闭路由功能

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