From dddcff8fdbe146ff33bc73929f97380d3390f5b9 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Sat, 24 Aug 2024 00:29:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/common/RegionTree.vue | 8 ++++++++ web_src/src/components/dialog/chooseChannelForCatalog.vue | 8 ++------ web_src/src/components/dialog/regionCode.vue | 2 -- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/web_src/src/components/common/RegionTree.vue b/web_src/src/components/common/RegionTree.vue index 0e012caa..df24928f 100755 --- a/web_src/src/components/common/RegionTree.vue +++ b/web_src/src/components/common/RegionTree.vue @@ -323,6 +323,14 @@ export default { node.expand(); }, node.data.deviceId, node.data.id); }, + editCatalog: function (data, node){ + // 打开添加弹窗 + this.$refs.regionCode.openDialog(form => { + node.loaded = false + node.expand(); + }, node.data.deviceId, node.data.id); + + }, nodeClickHandler: function (data, node, tree) { console.log(data) console.log(node) diff --git a/web_src/src/components/dialog/chooseChannelForCatalog.vue b/web_src/src/components/dialog/chooseChannelForCatalog.vue index ae79e644..a40646b4 100755 --- a/web_src/src/components/dialog/chooseChannelForCatalog.vue +++ b/web_src/src/components/dialog/chooseChannelForCatalog.vue @@ -100,11 +100,8 @@ export default { }, addCatalog: function (parentId, node){ - let that = this; - console.log(this.platformId) - console.log(parentId) // 打开添加弹窗 - that.$refs.catalogEdit.openDialog(false, null, null, parentId, node.level, ()=>{ + this.$refs.catalogEdit.openDialog(false, null, null, parentId, node.level, ()=>{ node.loaded = false node.expand(); }); @@ -121,9 +118,8 @@ export default { } }, editCatalog: function (data, node){ - let that = this; // 打开添加弹窗 - that.$refs.catalogEdit.openDialog(true, data.id, data.name, data.parentId, (newData)=>{ + this.$refs.catalogEdit.openDialog(true, data.id, data.name, data.parentId, node.level, (newData)=>{ node.parent.loaded = false node.parent.expand(); if (data.id === this.chooseId && newData.name !== data.name) { diff --git a/web_src/src/components/dialog/regionCode.vue b/web_src/src/components/dialog/regionCode.vue index 6b3726fb..9ed6fb63 100644 --- a/web_src/src/components/dialog/regionCode.vue +++ b/web_src/src/components/dialog/regionCode.vue @@ -166,8 +166,6 @@ export default { } ] if (parentDeviceId) { - console.log(parentDeviceId) - console.log(parentDeviceId.length) if (parentDeviceId.length >= 2) { this.allVal[0].val = parentDeviceId.substring(0, 2) this.activeKey = "1"