Commit ab9dc8ad719f39493a9175da9ad8f49492f78419
1 parent
d8e49fa0
新增用户时,给部门增加默认值。
对应Issue,Cloud版本库。 https://gitee.com/zhijiantianya/yudao-cloud/issues/I8C4B5
Showing
1 changed file
with
2 additions
and
3 deletions
yudao-ui-admin/src/views/system/user/index.vue
| 1 | <template> | 1 | <template> |
| 2 | <div class="app-container"> | 2 | <div class="app-container"> |
| 3 | - <doc-alert title="用户体系" url="https://doc.iocoder.cn/user-center/" /> | ||
| 4 | - <doc-alert title="三方登陆" url="https://doc.iocoder.cn/social-user/" /> | ||
| 5 | - <doc-alert title="Excel 导入导出" url="https://doc.iocoder.cn/excel-import-and-export/" /> | ||
| 6 | <!-- 搜索工作栏 --> | 3 | <!-- 搜索工作栏 --> |
| 7 | <el-row :gutter="20"> | 4 | <el-row :gutter="20"> |
| 8 | <!--部门数据--> | 5 | <!--部门数据--> |
| @@ -479,6 +476,8 @@ export default { | @@ -479,6 +476,8 @@ export default { | ||
| 479 | // 打开表单,并设置初始化 | 476 | // 打开表单,并设置初始化 |
| 480 | this.open = true; | 477 | this.open = true; |
| 481 | this.title = "添加用户"; | 478 | this.title = "添加用户"; |
| 479 | + // 为部门增加默认值 | ||
| 480 | + this.form.deptId = this.queryParams.deptId; | ||
| 482 | this.form.password = this.initPassword; | 481 | this.form.password = this.initPassword; |
| 483 | }, | 482 | }, |
| 484 | /** 修改按钮操作 */ | 483 | /** 修改按钮操作 */ |