Commit e6d79eaf8db51878344860c2d127b345444e8723
Committed by
Gitee
!707 新增用户时,归属部门赋默认值
Merge pull request !707 from 派森强哥/wgs
Showing
1 changed file
with
5 additions
and
0 deletions
yudao-ui-admin/src/views/system/user/index.vue
| ... | ... | @@ -327,6 +327,9 @@ export default { |
| 327 | 327 | nickname: [ |
| 328 | 328 | { required: true, message: "用户昵称不能为空", trigger: "blur" } |
| 329 | 329 | ], |
| 330 | + deptId: [ | |
| 331 | + { required: true, message: "归属部门必选择", trigger: "blur" } | |
| 332 | + ], | |
| 330 | 333 | password: [ |
| 331 | 334 | { required: true, message: "用户密码不能为空", trigger: "blur" } |
| 332 | 335 | ], |
| ... | ... | @@ -479,6 +482,8 @@ export default { |
| 479 | 482 | // 打开表单,并设置初始化 |
| 480 | 483 | this.open = true; |
| 481 | 484 | this.title = "添加用户"; |
| 485 | + // 为部门增加默认值 | |
| 486 | + this.form.deptId = this.queryParams.deptId; | |
| 482 | 487 | this.form.password = this.initPassword; |
| 483 | 488 | }, |
| 484 | 489 | /** 修改按钮操作 */ | ... | ... |