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

View File

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