gaoshp
2024-06-02 b46e6d2306515f94bf77c06e8d80ac76267e3ddb
src/views/mdc/state-feedback.vue
@@ -247,16 +247,13 @@
            }
            this.$HTTP.post("/api/blade-cps/group/groupWorkstation/type",obj).then(res=> {
               if(res.code == 200) {
                  if (res.code == 200) {
                     var treeDisabled = this.addTreeDisable(res.data);
                     this.tableData = this.buildTree(treeDisabled);  //从扁平化变为树状结构
                     this.$nextTick(()=> {
                        this.lastLevelId = this.getLastLevelIds(this.tableData).lastLevelId;
                        this.$refs.treeRef.setCurrentKey(this.lastLevelId);  //第一个节点的第一个子节点最后一级默认选中
                        this.getlist();  //渲染反馈列表
                     })
                  }
                  var treeDisabled = this.addTreeDisable(res.data);
                  this.tableData = this.buildTree(treeDisabled);  //从扁平化变为树状结构
                  this.$nextTick(()=> {
                     this.lastLevelId = this.getLastLevelIds(this.tableData).lastLevelId;
                     this.$refs.treeRef.setCurrentKey(this.lastLevelId);  //第一个节点的第一个子节点最后一级默认选中
                     this.getlist();  //渲染反馈列表
                  })
               }
            })
         },