田源
2024-11-01 8c107924ebc49105fa81f13f972f1710b42c1503
Source/plt-web/plt-web-ui/src/views/system/department/index.vue
@@ -95,12 +95,15 @@
        ...basicOption,
        rowKey: 'oid',
        rowParentKey: 'parentId',
        expandRowKeys:[],
        selection: false,
        addBtn: false,
        editBtn: false,
        delBtn: false,
        gridBtn: false,
        menuWidth:280,
        highlightCurrentRow: true,
        calcHeight: -50,
        column: column
      },
      tableLoading: false,
@@ -114,6 +117,7 @@
        selection: false,
        refreshBtn: false,
        addBtn: false,
        header :false,
        menu: false,
        calcHeight:80,
        column: [
@@ -153,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];
      })
    },
@@ -161,6 +166,7 @@
      return items.map(item => {
        // 转换当前节点的属性
        const formList = {
          expanded:item.expanded,
          oid: item.oid,
          id: item.attributes.id,
          name: item.attributes.name,
@@ -204,7 +210,6 @@
          done();
        }
      }).catch(err => {
        console.log(err);
        loading();
      })
@@ -232,7 +237,6 @@
          done();
        }
      }).catch(err => {
        console.log(err);
        loading();
      })
    },
@@ -334,11 +338,11 @@
    // 分配成员穿梭框回填
    departTransferSend(row) {
      let params = {
        userOids: row.join(','),
        userOIds: row.join(','),
        deptId: this.departCurrenRow.oid
      }
      saveUsersDepts(params).then(res => {
        console.log(res);
        //console.log(res);
        this.$message.success(res.data.obj);
        this.getTableList();
      }).catch(err => {