Commit 838faea8 authored by wcmoon's avatar wcmoon

feat:存证记录进去添加的模板,不跳转到列表页,提示保存成功。

parent 4d000881
......@@ -381,13 +381,12 @@ export default class editTemplate extends Vue {
});
if (res) {
this.$message({
message: "创建成功",
message: "保存成功",
type: "success",
});
this.$router.push({
path: "/categoryManage",
query: { type: "MyTemplate" },
});
this.ClassificationPopups = false;
this.TemplateType = 1;
this.personalTemplate = res.data.id;
}
}
// 创建个人模板
......@@ -402,7 +401,7 @@ export default class editTemplate extends Vue {
type: "put",
url: GO_URLS.updateCustomize,
params: {
id: Number(this.$route.query.personalTemplate),
id: Number(this.$route.query.personalTemplate) || this.personalTemplate,
name: this.templateName,
detail: JSON.stringify(formatApiJson(this.rootUnitList)),
},
......@@ -412,10 +411,12 @@ export default class editTemplate extends Vue {
message: "更新成功",
type: "success",
});
this.$router.push({
path: "/categoryManage",
query: { type: "MyTemplate" },
});
if (this.$route.query.personalTemplate) {
this.$router.push({
path: "/categoryManage",
query: { type: "MyTemplate" },
});
}
}
}
// 获取基础信息
......
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