From c2b7c0628ef143e385f914c2f13854ee2a787c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Fri, 3 Feb 2023 09:34:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsInfo/goodsInfojs.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/views/system/goodsInfo/goodsInfojs.js b/src/views/system/goodsInfo/goodsInfojs.js index d76827d..7ea546f 100644 --- a/src/views/system/goodsInfo/goodsInfojs.js +++ b/src/views/system/goodsInfo/goodsInfojs.js @@ -249,10 +249,6 @@ export default { }, // 取消按钮 cancel() { - // 清空选中的节点 - this.$refs.cascader.$refs.panel.clearCheckedNodes(); - // 设置为空可以让节点不高亮显示 - this.$refs.cascader.$refs.panel.activePath = []; ++this.isResouceShow; var obj = { pictureUrlList: [] }; if (this.imgone != this.form.goodsPictureUrl) { @@ -415,10 +411,6 @@ export default { }); } this.imgsurl = { pictureUrlList: [] }; - // 清空选中的节点 - this.$refs.cascader.$refs.panel.clearCheckedNodes(); - // 设置为空可以让节点不高亮显示 - this.$refs.cascader.$refs.panel.activePath = []; ++this.isResouceShow; this.$modal.msgSuccess("修改成功"); this.open = false; @@ -429,10 +421,6 @@ export default { e.goodsPrice = Number(e.goodsPrice); }); addGoodsInfo(this.form).then((response) => { - // 清空选中的节点 - this.$refs.cascader.$refs.panel.clearCheckedNodes(); - // 设置为空可以让节点不高亮显示 - this.$refs.cascader.$refs.panel.activePath = []; ++this.isResouceShow; this.$modal.msgSuccess("新增成功"); // this.StationName = "请选择所属护理站";