This commit is contained in:
曹辉 2023-02-03 09:34:44 +08:00
parent 83e468b97b
commit c2b7c0628e

View File

@ -249,10 +249,6 @@ export default {
}, },
// 取消按钮 // 取消按钮
cancel() { cancel() {
// 清空选中的节点
this.$refs.cascader.$refs.panel.clearCheckedNodes();
// 设置为空可以让节点不高亮显示
this.$refs.cascader.$refs.panel.activePath = [];
++this.isResouceShow; ++this.isResouceShow;
var obj = { pictureUrlList: [] }; var obj = { pictureUrlList: [] };
if (this.imgone != this.form.goodsPictureUrl) { if (this.imgone != this.form.goodsPictureUrl) {
@ -415,10 +411,6 @@ export default {
}); });
} }
this.imgsurl = { pictureUrlList: [] }; this.imgsurl = { pictureUrlList: [] };
// 清空选中的节点
this.$refs.cascader.$refs.panel.clearCheckedNodes();
// 设置为空可以让节点不高亮显示
this.$refs.cascader.$refs.panel.activePath = [];
++this.isResouceShow; ++this.isResouceShow;
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
@ -429,10 +421,6 @@ export default {
e.goodsPrice = Number(e.goodsPrice); e.goodsPrice = Number(e.goodsPrice);
}); });
addGoodsInfo(this.form).then((response) => { addGoodsInfo(this.form).then((response) => {
// 清空选中的节点
this.$refs.cascader.$refs.panel.clearCheckedNodes();
// 设置为空可以让节点不高亮显示
this.$refs.cascader.$refs.panel.activePath = [];
++this.isResouceShow; ++this.isResouceShow;
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
// this.StationName = "请选择所属护理站"; // this.StationName = "请选择所属护理站";