Commit f540c8a37c228d080c166c8cb6d8a4a234b2fc69
1 parent
20e34e35
v3.4.0 用户显隐列添加不同key防止被复用
Showing
2 changed files
with
7 additions
and
6 deletions
yudao-ui-admin/src/views/system/user/index.vue
| @@ -54,12 +54,12 @@ | @@ -54,12 +54,12 @@ | ||
| 54 | </el-row> | 54 | </el-row> |
| 55 | 55 | ||
| 56 | <el-table v-loading="loading" :data="userList"> | 56 | <el-table v-loading="loading" :data="userList"> |
| 57 | - <el-table-column label="用户编号" align="center" prop="id" v-if="columns[0].visible" /> | ||
| 58 | - <el-table-column label="用户名称" align="center" prop="username" v-if="columns[1].visible" :show-overflow-tooltip="true" /> | ||
| 59 | - <el-table-column label="用户昵称" align="center" prop="nickname" v-if="columns[2].visible" :show-overflow-tooltip="true" /> | ||
| 60 | - <el-table-column label="部门" align="center" prop="dept.name" v-if="columns[3].visible" :show-overflow-tooltip="true" /> | ||
| 61 | - <el-table-column label="手机号码" align="center" prop="mobile" v-if="columns[4].visible" width="120" /> | ||
| 62 | - <el-table-column label="状态" v-if="columns[5].visible" align="center"> | 57 | + <el-table-column label="用户编号" align="center" key="id" prop="id" v-if="columns[0].visible" /> |
| 58 | + <el-table-column label="用户名称" align="center" key="username" prop="username" v-if="columns[1].visible" :show-overflow-tooltip="true" /> | ||
| 59 | + <el-table-column label="用户昵称" align="center" key="nickname" prop="nickname" v-if="columns[2].visible" :show-overflow-tooltip="true" /> | ||
| 60 | + <el-table-column label="部门" align="center" key="deptName" prop="dept.name" v-if="columns[3].visible" :show-overflow-tooltip="true" /> | ||
| 61 | + <el-table-column label="手机号码" align="center" key="mobile" prop="mobile" v-if="columns[4].visible" width="120" /> | ||
| 62 | + <el-table-column label="状态" key="status" v-if="columns[5].visible" align="center"> | ||
| 63 | <template slot-scope="scope"> | 63 | <template slot-scope="scope"> |
| 64 | <el-switch v-model="scope.row.status" :active-value="0" :inactive-value="1" @change="handleStatusChange(scope.row)" /> | 64 | <el-switch v-model="scope.row.status" :active-value="0" :inactive-value="1" @change="handleStatusChange(scope.row)" /> |
| 65 | </template> | 65 | </template> |
更新日志.md
| @@ -31,6 +31,7 @@ TODO | @@ -31,6 +31,7 @@ TODO | ||
| 31 | 31 | ||
| 32 | * 【优化】使用 Lombok 简化 JsonUtils 工具类 [#73](https://github.com/YunaiV/ruoyi-vue-pro/pull/73) | 32 | * 【优化】使用 Lombok 简化 JsonUtils 工具类 [#73](https://github.com/YunaiV/ruoyi-vue-pro/pull/73) |
| 33 | * 【新增】兼容 Node 16 版本,通过升级 BPMN-JS 相关库 [commit](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/4c169cbc58eb0d0cc4aead73ca127a2957e6a3aa) | 33 | * 【新增】兼容 Node 16 版本,通过升级 BPMN-JS 相关库 [commit](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/4c169cbc58eb0d0cc4aead73ca127a2957e6a3aa) |
| 34 | +* 【新增】前端的表格右侧工具栏组件支持显隐列,具体可见【用户管理】功能 [commit](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/20e34e35a3bdc48e6a4c58e3849aa729bd18efe5) | ||
| 34 | 35 | ||
| 35 | ### 🐞 Bug Fixes | 36 | ### 🐞 Bug Fixes |
| 36 | 37 |