|
|
|
@ -141,7 +141,11 @@
|
|
|
|
|
</el-pagination>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
<el-dialog class="form-dialog" :title="form.title" :before-close="beforeDialogClose" :visible.sync="form.dialog">
|
|
|
|
|
<el-dialog
|
|
|
|
|
:custom-class="'dialog'"
|
|
|
|
|
:title="form.title"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:visible.sync="form.dialog">
|
|
|
|
|
<el-form class=form" :model="form" :inline="true" :rules="formRules" ref="form"
|
|
|
|
|
label-position="right" label-width="90px">
|
|
|
|
|
<el-form-item label="用户账户" prop="userName">
|
|
|
|
@ -159,8 +163,11 @@
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="用户角色" prop="roleIdList">
|
|
|
|
|
<el-transfer v-model="form.roleIdList" :data="roleList" :titles="['未选角色','已选角色']" style="width: 500px" ></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">
|
|
|
|
@ -214,7 +221,7 @@
|
|
|
|
|
{min: 1, max: 50, message: '用户别名长度在 1 到 50 个字符', trigger: 'blur'}
|
|
|
|
|
],
|
|
|
|
|
userPwd: [
|
|
|
|
|
{ pattern:/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/, message: '密码至少包含 数字和英文,长度6-20'}
|
|
|
|
|
{pattern: /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/, message: '密码至少包含 数字和英文,长度6-20'}
|
|
|
|
|
],
|
|
|
|
|
userStatus: [
|
|
|
|
|
{required: true, message: '用户状态不能为空', trigger: 'blur'},
|
|
|
|
|