瀏覽代碼

临时提交

648540858 1 年之前
父節點
當前提交
dddcff8fdb

+ 8 - 0
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)

+ 2 - 6
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) {

+ 0 - 2
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"