wangting
2024-10-28 9917e97580a9c43b88aba553776a54f33a11c9d2
Source/plt-web/plt-web-ui/src/views/system/department/index.vue
@@ -95,11 +95,13 @@
        ...basicOption,
        rowKey: 'oid',
        rowParentKey: 'parentId',
        expandRowKeys:[],
        selection: false,
        addBtn: false,
        editBtn: false,
        delBtn: false,
        gridBtn: false,
        menuWidth:280,
        highlightCurrentRow: true,
        calcHeight: -60,
        column: column
@@ -115,6 +117,7 @@
        selection: false,
        refreshBtn: false,
        addBtn: false,
        header :false,
        menu: false,
        calcHeight:80,
        column: [
@@ -154,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];
      })
    },
@@ -162,6 +166,7 @@
      return items.map(item => {
        // 转换当前节点的属性
        const formList = {
          expanded:item.expanded,
          oid: item.oid,
          id: item.attributes.id,
          name: item.attributes.name,
@@ -205,7 +210,6 @@
          done();
        }
      }).catch(err => {
        console.log(err);
        loading();
      })
@@ -233,7 +237,6 @@
          done();
        }
      }).catch(err => {
        console.log(err);
        loading();
      })
    },