[新增功能](pet)

用户信息修改页面用户名和身份证号校验
hyx_2024-10-30_new
huangyuxuan 2024-10-23 14:36:14 +08:00
parent 83e7cd595a
commit 338158eb3b
1 changed files with 12 additions and 7 deletions

View File

@ -42,7 +42,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="用户名" prop="USERNAME"> <el-form-item label="用户名" prop="USERNAME">
<el-input v-model="form.USERNAME" placeholder="默认用户手机号码..." @change="goCheck()"/> <el-input v-model="form.USERNAME" placeholder="默认用户手机号码..." @blur="goCheck()"/>
<a style="color: red"> <a style="color: red">
<span>如果修改手机号登录密码则会变成初始密码Aa@123456789</span></a> <span>如果修改手机号登录密码则会变成初始密码Aa@123456789</span></a>
</el-form-item> </el-form-item>
@ -64,7 +64,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="身份证号" prop="USER_ID_CARD"> <el-form-item label="身份证号" prop="USER_ID_CARD">
<el-input v-model="form.USER_ID_CARD" placeholder="这里输入身份证号..." @change="goCheck()"/> <el-input v-model="form.USER_ID_CARD" placeholder="这里输入身份证号..."/>
</el-form-item> </el-form-item>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
@ -720,7 +720,8 @@ export default {
'/user/goCheck', '/user/goCheck',
{ {
USERNAME: value, USERNAME: value,
VERIFYUSER_ID: this.form.USER_ID VERIFYUSER_ID: this.form.USER_ID,
USER_ID: this.form.USER_ID
} }
).then((data) => { ).then((data) => {
if (data.result == 'success') { if (data.result == 'success') {
@ -1517,10 +1518,12 @@ export default {
if (this.form.ISSTUDENT) { if (this.form.ISSTUDENT) {
this.uploadImgByZhengshu(this.form.USER_ID) this.uploadImgByZhengshu(this.form.USER_ID)
this.uploadImgByFace(this.form.USER_ID) this.uploadImgByFace(this.form.USER_ID)
this.goPush(this.form) // this.goPush(this.form)
this.$parent.activeName = 'List'
} else { } else {
this.uploadImgByFace(this.form.USER_ID) this.uploadImgByFace(this.form.USER_ID)
this.goPush(this.form) // this.goPush(this.form)
this.$parent.activeName = 'List'
} }
}).catch((e) => { }).catch((e) => {
this.listLoading = false this.listLoading = false
@ -1541,10 +1544,12 @@ export default {
if (this.form.ISSTUDENT) { if (this.form.ISSTUDENT) {
this.uploadImgByZhengshu(this.form.USER_ID) this.uploadImgByZhengshu(this.form.USER_ID)
this.uploadImgByFace(this.form.USER_ID) this.uploadImgByFace(this.form.USER_ID)
this.goPush(this.form) // this.goPush(this.form)
this.$parent.activeName = 'List'
} else { } else {
this.uploadImgByFace(this.form.USER_ID) this.uploadImgByFace(this.form.USER_ID)
this.goPush(this.form) // this.goPush(this.form)
this.$parent.activeName = 'List'
} }
}).catch((e) => { }).catch((e) => {
this.listLoading = false this.listLoading = false