lkk
2024-12-13 a65e5b04d64edb3318d0dfdc46bc5c83e133eaa6
src/views/system/role/selectUser.vue
@@ -28,6 +28,7 @@
        <el-table-column type="selection" width="55"></el-table-column>
        <el-table-column label="用户名称" prop="userName" :show-overflow-tooltip="true" />
        <el-table-column label="用户昵称" prop="nickName" :show-overflow-tooltip="true" />
        <el-table-column label="科室" prop="deptName" :show-overflow-tooltip="true" />
        <el-table-column label="邮箱" prop="email" :show-overflow-tooltip="true" />
        <el-table-column label="手机" prop="phonenumber" :show-overflow-tooltip="true" />
        <el-table-column label="状态" align="center" prop="status">
@@ -103,7 +104,12 @@
    // 查询表数据
    getList() {
      unallocatedUserList(this.queryParams).then(res => {
        this.userList = res.rows;
        console.log(res,6969);
        this.userList = res.rows.map(item=>{
          item.deptName = item.dept ? item.dept.deptName : '';
          return item
        })
        this.total = res.total;
      });
    },