wangting
2024-10-28 9917e97580a9c43b88aba553776a54f33a11c9d2
Source/plt-web/plt-web-ui/src/views/system/department/index.vue
@@ -95,6 +95,7 @@
        ...basicOption,
        rowKey: 'oid',
        rowParentKey: 'parentId',
        expandRowKeys:[],
        selection: false,
        addBtn: false,
        editBtn: false,
@@ -156,6 +157,7 @@
    getTableList() {
      refTree({queryAllLevel: true, 'extandParamsMap[showAllDepartmentNode]': true}).then(res => {
        this.tableData = this.departDtaFormAtter(res.data.treeData);
        this.option.expandRowKeys=[res.data.treeData[0].oid];
      })
    },
@@ -164,6 +166,7 @@
      return items.map(item => {
        // 转换当前节点的属性
        const formList = {
          expanded:item.expanded,
          oid: item.oid,
          id: item.attributes.id,
          name: item.attributes.name,
@@ -207,7 +210,6 @@
          done();
        }
      }).catch(err => {
        console.log(err);
        loading();
      })
@@ -235,7 +237,6 @@
          done();
        }
      }).catch(err => {
        console.log(err);
        loading();
      })
    },