gaoshp
2025-08-28 0c87c4120feed4468fb1ad7bdedb0d14b0dc8493
src/views/wel/shemi.vue
@@ -538,7 +538,7 @@
            label: '锁定状态',
            prop: 'isLocked',
            formatter: (val, value, label) => {
              if (val.nodeType == '60' || val.nodeType == '70') {
              if (val.nodeType == '60') {
                if (value == 1) {
                  return '已锁定';
                } else {
@@ -930,13 +930,14 @@
        method: 'get',
        params: this.searchTreeData
      }).then(res => {
        this.treeSearchLoad = false;
        if (res.data.data.length == 0) return;
        // this.option.defaultExpandAll = true;
        let treeData = this.removeHasChildren(res.data.data);
        console.log('treeData', treeData)
        this.option = Object.assign({},this.option,{defaultExpandedKeys: this.defaultExpandedKeys,lazy: true,defaultExpandAll: true});
        setTimeout(() => {
          this.treeSearchLoad = false;
          this.treeData = treeData;
          this.$nextTick(() => {
            this.highlightTargetRow();  // 设置当前行高亮
@@ -951,7 +952,7 @@
          if (this.treeData.length == 0) {
            return;
          }
        }, 100);
        }, 1000);
      });