添加用户编码
This commit is contained in:
parent
c8f540c6c5
commit
13678f98b1
|
|
@ -405,6 +405,15 @@
|
|||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="用户编码" prop="userCode">
|
||||
<el-input
|
||||
v-model="form.userCode"
|
||||
placeholder="请输入用户编码"
|
||||
maxlength="30" @input="(v)=>(form.userCode=v.replace(/[^\d]/g,''))"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="归属部门" prop="deptId">
|
||||
<treeselect
|
||||
|
|
@ -419,9 +428,7 @@
|
|||
noResultsText="没有搜索结果"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="手机号码" prop="phonenumber">
|
||||
<el-input
|
||||
|
|
@ -439,9 +446,7 @@
|
|||
maxlength="50"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item
|
||||
v-if="form.userId == undefined"
|
||||
|
|
@ -469,9 +474,7 @@
|
|||
show-password
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="用户性别">
|
||||
<el-select
|
||||
|
|
@ -499,8 +502,6 @@
|
|||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="用户类别">
|
||||
<el-select v-model="form.userType" placeholder="请选择用户类别" style="width: 100%;">
|
||||
|
|
@ -541,9 +542,7 @@
|
|||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="角色" prop="roleIds">
|
||||
<el-select
|
||||
|
|
@ -575,9 +574,7 @@
|
|||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="登录权限" prop="loginTypeArr">
|
||||
<el-checkbox-group v-model="loginTypeArr">
|
||||
|
|
@ -605,9 +602,7 @@
|
|||
:picker-options="pickerOptions" >
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="人脸图片">
|
||||
<el-upload
|
||||
|
|
@ -876,6 +871,13 @@ export default {
|
|||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
userCode: [
|
||||
{
|
||||
required: true,
|
||||
message: '用户编码不能为空',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
email: [
|
||||
{
|
||||
type: 'email',
|
||||
|
|
|
|||
Loading…
Reference in New Issue