修复编辑栏目中编辑状态问题

This commit is contained in:
xierz 2020-10-21 14:12:46 +08:00
parent e34740e37f
commit 96027e1065
1 changed files with 3 additions and 3 deletions

View File

@ -542,10 +542,10 @@
this.form.id = ms.util.getParameter("id"); this.form.id = ms.util.getParameter("id");
this.form.childId = ms.util.getParameter("childId");// 判断是否增加子栏目 this.form.childId = ms.util.getParameter("childId");// 判断是否增加子栏目
// 判断三种状态,默认为编辑状态 // 判断三种状态,默认为新增状态
this.categoryTypeDisabled = false;// 控制栏目分类是否可编辑 this.categoryTypeDisabled = false;// 控制栏目分类是否可编辑
if (this.form.id != undefined && this.form.childId == undefined) { if (this.form.id != undefined && (this.form.childId == undefined || this.form.childId == "undefined")) {
// 切换新增状态id&childId 为空 // 切换编辑状态id不为空 childId 为空
this.categoryTypeDisabled = true; this.categoryTypeDisabled = true;
this.get(this.form.id); this.get(this.form.id);
} else if (this.form.childId) { } else if (this.form.childId) {