v3.8.0 新增tab对象简化页签操作

This commit is contained in:
YunaiV
2022-02-17 15:21:46 +08:00
parent 5036971f55
commit 8e0415a8fe
12 changed files with 83 additions and 17 deletions

View File

@ -449,8 +449,7 @@ export default {
},
/** 关闭按钮 */
close() {
this.$store.dispatch("tagsView/delView", this.$route);
this.$router.push({ path: "/bpm/manager/form", query: { t: Date.now()}})
this.$tab.closeOpenPage({ path: "/bpm/manager/form" });
},
encodeFields() {
const fields = []

View File

@ -111,8 +111,7 @@ export default {
},
/** 关闭按钮 */
close() {
this.$store.dispatch("tagsView/delView", this.$route);
this.$router.push({ path: "/bpm/manager/model", query: { t: Date.now()}})
this.$tab.closeOpenPage({ path: "/bpm/manager/model" });
},
}
};

View File

@ -66,8 +66,7 @@ export default {
// 添加的提交
createLeave(this.form).then(response => {
this.$modal.msgSuccess("发起成功");
this.$store.dispatch("tagsView/delView", this.$route);
this.$router.push({ path: "/bpm/oa/leave"});
this.$tab.closeOpenPage({ path: "/bpm/oa/leave" });
});
});
}

View File

@ -146,7 +146,7 @@ export default {
}).then(response => {
this.$modal.msgSuccess("发起流程成功");
// 关闭当前窗口
this.$store.dispatch("tagsView/delView", this.$route);
this.$tab.closeOpenPage();
this.$router.go(-1);
}).catch(() => {
conf.disabled = false; // 表单开启

View File

@ -302,7 +302,7 @@ export default {
}).then(response => {
this.$modal.msgSuccess("发起流程成功");
// 关闭当前窗口
this.$store.dispatch("tagsView/delView", this.$route);
this.$tab.closeOpenPage();
this.$router.go(-1);
}).catch(() => {
conf.disabled = false; // 表单开启