This commit is contained in:
曹辉 2023-01-29 15:38:18 +08:00
parent 10c02a39ca
commit aef35e3408
2 changed files with 1 additions and 27 deletions

View File

@ -257,10 +257,6 @@ export default {
attributeDetailsSort: null,
}, ],
}, ];
// 清空选中的节点
this.$refs.cascader.$refs.panel.clearCheckedNodes();
// 设置为空可以让节点不高亮显示
this.$refs.cascader.$refs.panel.activePath = [];
++this.isResouceShow
},
//页面所属护理站
@ -421,10 +417,6 @@ export default {
}
this.$modal.msgSuccess("修改成功");
++this.isResouceShow
// 清空选中的节点
this.$refs.cascader.$refs.panel.clearCheckedNodes();
// 设置为空可以让节点不高亮显示
this.$refs.cascader.$refs.panel.activePath = [];
this.open = false;
this.getList();
});
@ -437,10 +429,6 @@ export default {
this.$modal.msgSuccess("新增成功");
this.StationName = "请选择所属护理站";
++this.isResouceShow
// 清空选中的节点
this.$refs.cascader.$refs.panel.clearCheckedNodes();
// 设置为空可以让节点不高亮显示
this.$refs.cascader.$refs.panel.activePath = [];
this.open = false;
this.getList();
});

View File

@ -428,12 +428,6 @@ export default {
//
cancel() {
++this.isResouceShow;
if (this.form.parentId) {
//
this.$refs.cascader.$refs.panel.clearCheckedNodes();
//
this.$refs.cascader.$refs.panel.activePath = [];
}
var obj = { pictureUrlList: [] };
if (this.imgone != this.form.goodsCategoryPicture) {
obj.pictureUrlList.push(this.form.goodsCategoryPicture);
@ -521,22 +515,14 @@ export default {
updatePicture(obj).then((res) => {});
}
this.$modal.msgSuccess("修改成功");
//
this.$refs.cascader.$refs.panel.clearCheckedNodes();
//
this.$refs.cascader.$refs.panel.activePath = [];
++this.isResouceShow;
this.open = false;
this.getList();
this.info();
});
});
} else {
addGoodsCategory(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
//
this.$refs.cascader.$refs.panel.clearCheckedNodes();
//
this.$refs.cascader.$refs.panel.activePath = [];
++this.isResouceShow;
this.open = false;
this.getList();