!707 新增用户时,归属部门赋默认值

Merge pull request !707 from 派森强哥/wgs
This commit is contained in:
芋道源码 2023-11-03 16:06:56 +00:00 committed by Gitee
commit e6d79eaf8d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -327,6 +327,9 @@ export default {
nickname: [
{ required: true, message: "用户昵称不能为空", trigger: "blur" }
],
deptId: [
{ required: true, message: "归属部门必选择", trigger: "blur" }
],
password: [
{ required: true, message: "用户密码不能为空", trigger: "blur" }
],
@ -479,6 +482,8 @@ export default {
//
this.open = true;
this.title = "添加用户";
//
this.form.deptId = this.queryParams.deptId;
this.form.password = this.initPassword;
},
/** 修改按钮操作 */