|
|
|
@ -9,8 +9,8 @@ |
|
|
|
|
> |
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="用户昵称" prop="nickname"> |
|
|
|
|
<el-input v-model="formData.nickname" placeholder="请输入用户昵称" /> |
|
|
|
|
<el-form-item label="用户姓名" prop="nickname"> |
|
|
|
|
<el-input v-model="formData.nickname" placeholder="请输入用户姓名" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
@ -69,8 +69,8 @@ |
|
|
|
|
</el-row> |
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item v-if="formData.id === undefined" label="用户名称" prop="username"> |
|
|
|
|
<el-input v-model="formData.username" placeholder="请输入用户名称" /> |
|
|
|
|
<el-form-item v-if="formData.id === undefined" label="登录账号" prop="username"> |
|
|
|
|
<el-input v-model="formData.username" placeholder="请输入登录账号" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
@ -142,8 +142,8 @@ const formData = ref({ |
|
|
|
|
hireDate: '' |
|
|
|
|
}) |
|
|
|
|
const formRules = ref<any>({ |
|
|
|
|
username: [{ required: true, message: '用户名称不能为空', trigger: 'blur' }], |
|
|
|
|
nickname: [{ required: true, message: '用户昵称不能为空', trigger: 'blur' }], |
|
|
|
|
username: [{ required: true, message: '登录账号不能为空', trigger: 'blur' }], |
|
|
|
|
nickname: [{ required: true, message: '用户姓名不能为空', trigger: 'blur' }], |
|
|
|
|
password: [{ required: true, message: '用户密码不能为空', trigger: 'blur' }], |
|
|
|
|
email: [ |
|
|
|
|
{ |
|
|
|
@ -153,6 +153,7 @@ const formRules = ref<any>({ |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
mobile: [ |
|
|
|
|
{ required: true, message: '手机号不能为空', trigger: 'blur' }, |
|
|
|
|
{ |
|
|
|
|
pattern: /^(?:(?:\+|00)86)?1(?:3[\d]|4[5-79]|5[0-35-9]|6[5-7]|7[0-8]|8[\d]|9[189])\d{8}$/, |
|
|
|
|
message: '请输入正确的手机号码', |
|
|
|
|