|
|
|
@ -150,19 +150,16 @@
|
|
|
|
|
<el-input v-model="form.userAlias" clearable size="small" autocomplete="off" placeholder="请输入用户别名"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="用户密码" prop="userPwd">
|
|
|
|
|
<el-input v-model="form.userPwd" type="password" clearable size="small" autocomplete="off" placeholder="请输入用户密码"></el-input>
|
|
|
|
|
<el-input v-model="form.userPwd" clearable size="small" autocomplete="off" placeholder="请输入用户密码"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="所属部门" prop="deptCode">
|
|
|
|
|
<el-input-dept v-model="form.deptCode" clearable size="small" placeholder="请选择所属部门"></el-input-dept>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="确认密码" prop="userPwd_">
|
|
|
|
|
<el-input v-model="form.userPwd_" type="password" clearable size="small" autocomplete="off" placeholder="请输入用户确认密码"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="用户状态" prop="userStatus">
|
|
|
|
|
<el-input-dict v-model="form.userStatus" clearable size="small" placeholder="请输入用户状态" dict-name="USER_STATUS"></el-input-dict>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="用户角色" prop="roleIdList">
|
|
|
|
|
<el-transfer v-model="form.roleIdList" :data="roleList" :titles="['未选角色','已选角色']"></el-transfer>
|
|
|
|
|
<el-transfer v-model="form.roleIdList" :data="roleList" :titles="['未选角色','已选角色']" style="width: 500px" ></el-transfer>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
@ -218,32 +215,7 @@
|
|
|
|
|
],
|
|
|
|
|
userPwd: [
|
|
|
|
|
{required: true, message: '用户密码不能为空', trigger: 'blur'},
|
|
|
|
|
{
|
|
|
|
|
validator: function (rule, value, callback) {
|
|
|
|
|
if (value === '') {
|
|
|
|
|
callback(new Error('请输入密码'));
|
|
|
|
|
} else {
|
|
|
|
|
if (app.form.userPwd_ !== '') {
|
|
|
|
|
app.$refs.form.validateField('userPwd_');
|
|
|
|
|
}
|
|
|
|
|
callback();
|
|
|
|
|
}
|
|
|
|
|
}, trigger: 'blur'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
userPwd_: [
|
|
|
|
|
{required: true, message: '用户确认密码不能为空', trigger: 'blur'},
|
|
|
|
|
{
|
|
|
|
|
validator: function (rule, value, callback) {
|
|
|
|
|
if (value === '') {
|
|
|
|
|
callback(new Error('请再次输入密码'));
|
|
|
|
|
} else if (value !== app.form.userPwd) {
|
|
|
|
|
callback(new Error('两次输入密码不一致!'));
|
|
|
|
|
} else {
|
|
|
|
|
callback();
|
|
|
|
|
}
|
|
|
|
|
}, trigger: 'blur'
|
|
|
|
|
}
|
|
|
|
|
{ pattern:/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/, message: '密码至少包含 数字和英文,长度6-20'}
|
|
|
|
|
],
|
|
|
|
|
userStatus: [
|
|
|
|
|
{required: true, message: '用户状态不能为空', trigger: 'blur'},
|
|
|
|
|