|
|
@ -218,13 +218,13 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item prop="workNumber" |
|
|
|
<el-form-item prop="workNumber" |
|
|
|
label="学生学号"> |
|
|
|
label="学生学号"> |
|
|
|
<el-input v-model="form.workNumber" |
|
|
|
<el-input v-model.trim="form.workNumber" |
|
|
|
placeholder="学生学号" |
|
|
|
placeholder="学生学号" |
|
|
|
@blur="workNumberChange"></el-input> |
|
|
|
@blur="workNumberChange"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="userName" |
|
|
|
<el-form-item prop="userName" |
|
|
|
label="学生姓名"> |
|
|
|
label="学生姓名"> |
|
|
|
<el-input v-model="form.userName" |
|
|
|
<el-input v-model.trim="form.userName" |
|
|
|
placeholder="请输入学生姓名"></el-input> |
|
|
|
placeholder="请输入学生姓名"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="roleId" |
|
|
|
<el-form-item prop="roleId" |
|
|
@ -234,13 +234,13 @@ |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item prop="phone" |
|
|
|
<el-form-item prop="phone" |
|
|
|
label="手机号"> |
|
|
|
label="手机号"> |
|
|
|
<el-input v-model="form.phone" |
|
|
|
<el-input v-model.trim="form.phone" |
|
|
|
placeholder="可用于登录平台,以及找回密码" |
|
|
|
placeholder="可用于登录平台,以及找回密码" |
|
|
|
maxlength="11"></el-input> |
|
|
|
maxlength="11"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="email" |
|
|
|
<el-form-item prop="email" |
|
|
|
label="邮箱"> |
|
|
|
label="邮箱"> |
|
|
|
<el-input v-model="form.email" |
|
|
|
<el-input v-model.trim="form.email" |
|
|
|
placeholder="可用于登录平台,以及找回密码"></el-input> |
|
|
|
placeholder="可用于登录平台,以及找回密码"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="uniqueIdentification" |
|
|
|
<el-form-item prop="uniqueIdentification" |
|
|
@ -416,7 +416,12 @@ export default { |
|
|
|
{ required: true, message: "请输入名称", trigger: "blur" } |
|
|
|
{ required: true, message: "请输入名称", trigger: "blur" } |
|
|
|
], |
|
|
|
], |
|
|
|
userName: [ |
|
|
|
userName: [ |
|
|
|
{ required: true, message: "请输入学生姓名", trigger: "blur" } |
|
|
|
{ required: true, message: "请输入学生姓名", trigger: "blur" }, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
pattern: /^\S+$/, |
|
|
|
|
|
|
|
message: "请输入正确的学生姓名", |
|
|
|
|
|
|
|
trigger: "blur" |
|
|
|
|
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
workNumber: [ |
|
|
|
workNumber: [ |
|
|
|
{ required: true, message: "请输入学号", trigger: 'blur' }, |
|
|
|
{ required: true, message: "请输入学号", trigger: 'blur' }, |
|
|
|