|
|
|
@ -13,31 +13,37 @@ |
|
|
|
|
<li> |
|
|
|
|
<label>性别:</label> |
|
|
|
|
<el-select size="small" v-model="form.sex"> |
|
|
|
|
<el-option v-for="item in sexList" :key="item.value" :label="item.name" :value="item.value"></el-option> |
|
|
|
|
<el-option v-for="item in sexList" :key="item.value" :label="item.name" |
|
|
|
|
:value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
<div class="line info"> |
|
|
|
|
<li> |
|
|
|
|
<label>出生年月日:</label> |
|
|
|
|
<el-date-picker size="small" v-model="form.dateBirth" :clearable="false" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker> |
|
|
|
|
<el-date-picker size="small" v-model="form.dateBirth" :clearable="false" type="date" format="yyyy-MM-dd" |
|
|
|
|
value-format="yyyy-MM-dd"></el-date-picker> |
|
|
|
|
</li> |
|
|
|
|
<li class="selects"> |
|
|
|
|
<label>所在地:</label> |
|
|
|
|
<div class="mul"> |
|
|
|
|
<div class="child"> |
|
|
|
|
<el-select size="small" v-model="form.countries" placeholder> |
|
|
|
|
<el-option v-for="item in countryList" :key="item.value" :label="item.label" :value="item.label"></el-option> |
|
|
|
|
<el-option v-for="item in countryList" :key="item.value" :label="item.label" |
|
|
|
|
:value="item.label"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<div class="child"> |
|
|
|
|
<el-select size="small" v-model="form.provinceId" placeholder @change="id => getCity(id, 1)"> |
|
|
|
|
<el-option v-for="item in provinceList" :key="item.provinceId" :label="item.provinceName" :value="item.provinceId"></el-option> |
|
|
|
|
<el-option v-for="item in provinceList" :key="item.provinceId" :label="item.provinceName" |
|
|
|
|
:value="item.provinceId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<div class="child"> |
|
|
|
|
<el-select size="small" v-model="form.cityId" placeholder :disabled="form.provinceId ? false : true"> |
|
|
|
|
<el-option v-for="item in cityList" :key="item.cityId" :label="item.cityName" :value="item.cityId"></el-option> |
|
|
|
|
<el-select size="small" v-model="form.cityId" placeholder |
|
|
|
|
:disabled="form.provinceId ? false : true"> |
|
|
|
|
<el-option v-for="item in cityList" :key="item.cityId" :label="item.cityName" |
|
|
|
|
:value="item.cityId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -51,10 +57,17 @@ |
|
|
|
|
<li> |
|
|
|
|
<label>教育程度:</label> |
|
|
|
|
<el-select size="small" v-model="form.educationDegree" placeholder="请选择教育程度"> |
|
|
|
|
<el-option v-for="(item,index) in educationDegreeList" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
|
<el-option v-for="(item, index) in educationDegreeList" :key="index" :label="item.name" |
|
|
|
|
:value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
<div class="line info"> |
|
|
|
|
<li> |
|
|
|
|
<label>学号:</label> |
|
|
|
|
<el-input size="small" v-model="form.workNumber" clearable></el-input> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex j-between a-center" style="width: 862px"> |
|
|
|
@ -68,41 +81,52 @@ |
|
|
|
|
<li> |
|
|
|
|
<label>职业:</label> |
|
|
|
|
<el-select size="small" v-model="archive.personalCareerId" placeholder="选择职业"> |
|
|
|
|
<el-option v-for="item in occupationList" :key="item.value" :label="item.label" :value="item.value"></el-option> |
|
|
|
|
<el-option v-for="item in occupationList" :key="item.value" :label="item.label" |
|
|
|
|
:value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>所属国家:</label> |
|
|
|
|
<el-select size="small" v-model="form.countries" placeholder> |
|
|
|
|
<el-option v-for="item in countryList" :key="item.value" :label="item.label" :value="item.label" ></el-option> |
|
|
|
|
<el-option v-for="item in countryList" :key="item.value" :label="item.label" |
|
|
|
|
:value="item.label"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<li> |
|
|
|
|
<label>学校名称:</label> |
|
|
|
|
<el-select size="small" v-model="archive.schoolId" filterable placeholder="选择学校" @change="id => getSchoolName(id,index)"> |
|
|
|
|
<el-option v-for="item in schoolList" :key="item.value" :label="item.schoolName" :value="item.schoolId"></el-option> |
|
|
|
|
<el-select size="small" v-model="archive.schoolId" filterable placeholder="选择学校" |
|
|
|
|
@change="id => getSchoolName(id, index)"> |
|
|
|
|
<el-option v-for="item in schoolList" :key="item.value" :label="item.schoolName" |
|
|
|
|
:value="item.schoolId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>专业学科:</label> |
|
|
|
|
<el-select size="small" v-model="archive.disciplineId" placeholder="选择专业学科" @change="id => getItemProfessionalClass(id,index)" @clear="() => clearItemClass(index)"> |
|
|
|
|
<el-option v-for="item in subjectList" :key="item.value" :label="item.disciplineName" :value="item.disciplineId"></el-option> |
|
|
|
|
<el-select size="small" v-model="archive.disciplineId" placeholder="选择专业学科" |
|
|
|
|
@change="id => getItemProfessionalClass(id, index)" @clear="() => clearItemClass(index)"> |
|
|
|
|
<el-option v-for="item in subjectList" :key="item.value" :label="item.disciplineName" |
|
|
|
|
:value="item.disciplineId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
<div class="line" style="margin-bottom: 0"> |
|
|
|
|
<li> |
|
|
|
|
<label>专业类:</label> |
|
|
|
|
<el-select size="small" v-model="archive.professionalClassId" placeholder="选择专业类" :disabled="archive.disciplineId ? false : true" @change="id => getItemProfessional(id,index)" @clear="() => clearItemProfess(index)"> |
|
|
|
|
<el-option v-for="item in archive.ProfessionalClassList" :key="item.professionalClassId" :label="item.professionalClassName" :value="item.professionalClassId"></el-option> |
|
|
|
|
<el-select size="small" v-model="archive.professionalClassId" placeholder="选择专业类" |
|
|
|
|
:disabled="archive.disciplineId ? false : true" @change="id => getItemProfessional(id, index)" |
|
|
|
|
@clear="() => clearItemProfess(index)"> |
|
|
|
|
<el-option v-for="item in archive.ProfessionalClassList" :key="item.professionalClassId" |
|
|
|
|
:label="item.professionalClassName" :value="item.professionalClassId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>专业:</label> |
|
|
|
|
<el-select size="small" v-model="archive.professionalId" placeholder="选择专业" :disabled="archive.professionalClassId ? false : true" @change="getItemStuGrade"> |
|
|
|
|
<el-option v-for="item in archive.ProfessionalList" :key="item.professionalId" :label="item.professionalName" :value="item.professionalId"></el-option> |
|
|
|
|
<el-select size="small" v-model="archive.professionalId" placeholder="选择专业" |
|
|
|
|
:disabled="archive.professionalClassId ? false : true" @change="getItemStuGrade"> |
|
|
|
|
<el-option v-for="item in archive.ProfessionalList" :key="item.professionalId" |
|
|
|
|
:label="item.professionalName" :value="item.professionalId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
@ -123,8 +147,8 @@ |
|
|
|
|
<ul class="list"> |
|
|
|
|
<div class="line info imp"> |
|
|
|
|
<li style="width: 334px;margin-right: 90px"> |
|
|
|
|
<label>学号:</label> |
|
|
|
|
<el-input class="m-r-10" size="small" v-model="form.workNumber" clearable disabled></el-input> |
|
|
|
|
<label>账号:</label> |
|
|
|
|
<el-input class="m-r-10" size="small" v-model="form.account" clearable disabled></el-input> |
|
|
|
|
</li> |
|
|
|
|
<li class="phone-li"> |
|
|
|
|
<label>手机号:</label> |
|
|
|
@ -155,7 +179,8 @@ |
|
|
|
|
<el-button type="primary" size="small" v-throttle @click="save">更新</el-button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-dialog :title="form.email ? '更换邮箱' : '绑定邮箱'" :visible.sync="emailVisible" :close-on-click-modal="false" @close="closeEmail" width="30%"> |
|
|
|
|
<el-dialog :title="form.email ? '更换邮箱' : '绑定邮箱'" :visible.sync="emailVisible" :close-on-click-modal="false" |
|
|
|
|
@close="closeEmail" width="30%"> |
|
|
|
|
<el-form ref="form" :model="form" label-width="60px"> |
|
|
|
|
<el-form-item label="邮箱"> |
|
|
|
|
<el-input style="width: 394px;" placeholder="请输入邮箱" v-model="email"></el-input> |
|
|
|
@ -163,7 +188,8 @@ |
|
|
|
|
<el-form-item label="验证码"> |
|
|
|
|
<div class="flex"> |
|
|
|
|
<el-input v-model="emailCode" placeholder="请输入验证码" maxlength="6"></el-input> |
|
|
|
|
<el-button style="margin-left: 10px" type="text" @click="sendEmailCode" :disabled="emailDisabled">{{emailBtnText}}</el-button> |
|
|
|
|
<el-button style="margin-left: 10px" type="text" @click="sendEmailCode" :disabled="emailDisabled">{{ |
|
|
|
|
emailBtnText }}</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
@ -173,7 +199,8 @@ |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-dialog :title="form.phone ? '更换手机号' : '绑定手机号'" :visible.sync="phoneVisible" :close-on-click-modal="false" @close="closePhone" width="30%"> |
|
|
|
|
<el-dialog :title="form.phone ? '更换手机号' : '绑定手机号'" :visible.sync="phoneVisible" :close-on-click-modal="false" |
|
|
|
|
@close="closePhone" width="30%"> |
|
|
|
|
<el-form ref="form" :model="form" label-width="60px"> |
|
|
|
|
<el-form-item label="手机号"> |
|
|
|
|
<el-input style="width: 394px;" placeholder="请输入手机号" v-model="phone" maxlength="11"></el-input> |
|
|
|
@ -181,7 +208,8 @@ |
|
|
|
|
<el-form-item label="验证码"> |
|
|
|
|
<div class="flex"> |
|
|
|
|
<el-input v-model="phoneCode" placeholder="请输入验证码" maxlength="6"></el-input> |
|
|
|
|
<el-button style="margin-left: 10px" type="text" @click="sendPhoneCode" :disabled="phoneDisabled">{{phoneBtnText}}</el-button> |
|
|
|
|
<el-button style="margin-left: 10px" type="text" @click="sendPhoneCode" :disabled="phoneDisabled">{{ |
|
|
|
|
phoneBtnText }}</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
@ -191,16 +219,19 @@ |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-dialog title="更换密码" :visible.sync="passwordVisible" :close-on-click-modal="false" @close="closePassword" width="30%"> |
|
|
|
|
<el-dialog title="更换密码" :visible.sync="passwordVisible" :close-on-click-modal="false" @close="closePassword" |
|
|
|
|
width="30%"> |
|
|
|
|
<el-form ref="passwordForm" :model="form" label-width="82px"> |
|
|
|
|
<el-form-item label="原密码"> |
|
|
|
|
<el-input type="password" v-model="passwordForm.password" placeholder="请输入原密码"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="新密码"> |
|
|
|
|
<el-input type="password" v-model="passwordForm.newPassword" placeholder="请输入新密码" @keyup.enter.native="editPassword"></el-input> |
|
|
|
|
<el-input type="password" v-model="passwordForm.newPassword" placeholder="请输入新密码" |
|
|
|
|
@keyup.enter.native="editPassword"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="确认新密码"> |
|
|
|
|
<el-input type="password" v-model="passwordForm.reNewPassword" placeholder="请确认新密码" @keyup.enter.native="editPassword"></el-input> |
|
|
|
|
<el-input type="password" v-model="passwordForm.reNewPassword" placeholder="请确认新密码" |
|
|
|
|
@keyup.enter.native="editPassword"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
@ -225,7 +256,7 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { mapState, mapActions } from 'vuex' |
|
|
|
|
import util from '@/libs/util' |
|
|
|
|
import Util from '@/libs/util' |
|
|
|
|
export default { |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
@ -304,7 +335,6 @@ export default { |
|
|
|
|
ProfessionalList: [], //专业 |
|
|
|
|
schoolList: [], |
|
|
|
|
curPassword: '', |
|
|
|
|
accountRepeat: false, |
|
|
|
|
|
|
|
|
|
archivesList: [], |
|
|
|
|
archivesForm: { |
|
|
|
@ -425,20 +455,10 @@ export default { |
|
|
|
|
this.schoolList = res.list |
|
|
|
|
}).catch(res => { }) |
|
|
|
|
}, |
|
|
|
|
accountChange(){ |
|
|
|
|
this.$get(`${this.api.getAccount}?account=${this.form.account}`).then(res => { |
|
|
|
|
if(res.data.userInfo){ |
|
|
|
|
this.accountRepeat = true |
|
|
|
|
util.warningMsg('该账号已存在') |
|
|
|
|
}else{ |
|
|
|
|
this.accountRepeat = false |
|
|
|
|
} |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
}, |
|
|
|
|
save () { |
|
|
|
|
if(this.form.idNumber && !/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)/.test(this.form.idNumber)) return util.warningMsg('请输入正确的证件号码') |
|
|
|
|
if(this.accountRepeat) return util.warningMsg('该账号已存在') |
|
|
|
|
let form = this.form |
|
|
|
|
const { form } = this |
|
|
|
|
if (!form.userName) return Util.warningMsg('请输入姓名') |
|
|
|
|
if (this.form.idNumber && !/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)/.test(this.form.idNumber)) return Util.warningMsg('请输入正确的证件号码') |
|
|
|
|
let hrPersonalFileEntities = [] |
|
|
|
|
let archivesList = this.archivesList |
|
|
|
|
archivesList.map(n => { |
|
|
|
@ -481,12 +501,12 @@ export default { |
|
|
|
|
this.setInfo({ |
|
|
|
|
userName: form.userName |
|
|
|
|
}) |
|
|
|
|
util.successMsg('更新成功') |
|
|
|
|
Util.successMsg('更新成功') |
|
|
|
|
this.updateTime = 0 |
|
|
|
|
this.$emit('updateStatus', false) |
|
|
|
|
this.getData() |
|
|
|
|
} else { |
|
|
|
|
util.errorMsg('更新失败') |
|
|
|
|
Util.errorMsg('更新失败') |
|
|
|
|
} |
|
|
|
|
}).catch(res => { }) |
|
|
|
|
}, |
|
|
|
@ -514,7 +534,7 @@ export default { |
|
|
|
|
this.archivesList.forEach((n, k) => { |
|
|
|
|
if (!n.personalCareerId) isEmpty = true |
|
|
|
|
}) |
|
|
|
|
if(isEmpty) return util.warningMsg('请选择职业') |
|
|
|
|
if (isEmpty) return Util.warningMsg('请选择职业') |
|
|
|
|
this.showArch = true |
|
|
|
|
this.concatArch() |
|
|
|
|
}, |
|
|
|
@ -549,17 +569,17 @@ export default { |
|
|
|
|
this.passwordVisible = true |
|
|
|
|
}, |
|
|
|
|
editPassword () { |
|
|
|
|
if(!this.passwordForm.password) return util.warningMsg('请输入原密码') |
|
|
|
|
if(!this.passwordForm.newPassword) return util.warningMsg('请输入新密码') |
|
|
|
|
if(!this.passwordForm.reNewPassword) return util.warningMsg('请确认新密码') |
|
|
|
|
if(this.passwordForm.newPassword.length < 6 || this.passwordForm.reNewPassword.length < 6) return util.warningMsg('请输入6位数以上的密码') |
|
|
|
|
if(this.passwordForm.newPassword !== this.passwordForm.reNewPassword) return util.warningMsg('输入的新密码不一致,请重新确认') |
|
|
|
|
if(this.passwordForm.password === this.passwordForm.newPassword) return util.warningMsg('原密码跟新密码不能一致') |
|
|
|
|
if (!this.passwordForm.password) return Util.warningMsg('请输入原密码') |
|
|
|
|
if (!this.passwordForm.newPassword) return Util.warningMsg('请输入新密码') |
|
|
|
|
if (!this.passwordForm.reNewPassword) return Util.warningMsg('请确认新密码') |
|
|
|
|
if (this.passwordForm.newPassword.length < 6 || this.passwordForm.reNewPassword.length < 6) return Util.warningMsg('请输入6位数以上的密码') |
|
|
|
|
if (this.passwordForm.newPassword !== this.passwordForm.reNewPassword) return Util.warningMsg('输入的新密码不一致,请重新确认') |
|
|
|
|
if (this.passwordForm.password === this.passwordForm.newPassword) return Util.warningMsg('原密码跟新密码不能一致') |
|
|
|
|
|
|
|
|
|
let data = this.passwordForm |
|
|
|
|
data.accountId = this.form.id |
|
|
|
|
this.$post(this.api.examinePassword, data).then(res => { |
|
|
|
|
util.successMsg('更换成功') |
|
|
|
|
Util.successMsg('更换成功') |
|
|
|
|
this.passwordVisible = false |
|
|
|
|
}).catch(err => { }) |
|
|
|
|
}, |
|
|
|
@ -735,8 +755,8 @@ export default { |
|
|
|
|
this.emailCode = '' |
|
|
|
|
}, |
|
|
|
|
sendEmailCode () { |
|
|
|
|
if(!this.email) return util.warningMsg('请输入邮箱') |
|
|
|
|
if(!/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/.test(this.email)) return util.warningMsg('请输入正确的邮箱') |
|
|
|
|
if (!this.email) return Util.warningMsg('请输入邮箱') |
|
|
|
|
if (!/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/.test(this.email)) return Util.warningMsg('请输入正确的邮箱') |
|
|
|
|
let data = { |
|
|
|
|
userId: this.form.userId, |
|
|
|
|
email: this.email, |
|
|
|
@ -747,14 +767,14 @@ export default { |
|
|
|
|
this.emailCountdown() |
|
|
|
|
this.emailOpener = res.message.opener |
|
|
|
|
} else { |
|
|
|
|
util.errorMsg(res.message) |
|
|
|
|
Util.errorMsg(res.message) |
|
|
|
|
} |
|
|
|
|
}).catch(res => { }) |
|
|
|
|
}, |
|
|
|
|
emailSubmit () { |
|
|
|
|
if(!this.email) return util.warningMsg('请输入邮箱') |
|
|
|
|
if(!/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/.test(this.email)) return util.warningMsg('请输入正确的邮箱') |
|
|
|
|
if(!this.emailCode) return util.warningMsg('请输入验证码') |
|
|
|
|
if (!this.email) return Util.warningMsg('请输入邮箱') |
|
|
|
|
if (!/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/.test(this.email)) return Util.warningMsg('请输入正确的邮箱') |
|
|
|
|
if (!this.emailCode) return Util.warningMsg('请输入验证码') |
|
|
|
|
let data = { |
|
|
|
|
userId: this.form.userId, |
|
|
|
|
email: this.email, |
|
|
|
@ -763,7 +783,7 @@ export default { |
|
|
|
|
opener: this.emailOpener |
|
|
|
|
} |
|
|
|
|
this.$post(this.api.bindPhoneOrEmail, data).then(res => { |
|
|
|
|
util.successMsg('绑定成功') |
|
|
|
|
Util.successMsg('绑定成功') |
|
|
|
|
this.form.email = this.email |
|
|
|
|
this.emailVisible = false |
|
|
|
|
}).catch(res => { }) |
|
|
|
@ -772,8 +792,8 @@ export default { |
|
|
|
|
this.phoneCode = '' |
|
|
|
|
}, |
|
|
|
|
sendPhoneCode () { |
|
|
|
|
if(!this.phone) return util.warningMsg('请输入手机号') |
|
|
|
|
if(!/^1[3456789]\d{9}$/.test(this.phone)) return util.warningMsg('请输入正确的手机号') |
|
|
|
|
if (!this.phone) return Util.warningMsg('请输入手机号') |
|
|
|
|
if (!/^1[3456789]\d{9}$/.test(this.phone)) return Util.warningMsg('请输入正确的手机号') |
|
|
|
|
let data = { |
|
|
|
|
userId: this.form.userId, |
|
|
|
|
phone: this.phone, |
|
|
|
@ -784,15 +804,15 @@ export default { |
|
|
|
|
this.phoneCountdown() |
|
|
|
|
this.phoneOpener = res.message.opener |
|
|
|
|
} else { |
|
|
|
|
util.errorMsg(res.message) |
|
|
|
|
Util.errorMsg(res.message) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}).catch(res => { }) |
|
|
|
|
}, |
|
|
|
|
phoneSubmit () { |
|
|
|
|
if(!this.phone) return util.warningMsg('请输入手机号') |
|
|
|
|
if(!/^1[3456789]\d{9}$/.test(this.phone)) return util.warningMsg('请输入正确的手机号') |
|
|
|
|
if(!this.phoneCode) return util.warningMsg('请输入验证码') |
|
|
|
|
if (!this.phone) return Util.warningMsg('请输入手机号') |
|
|
|
|
if (!/^1[3456789]\d{9}$/.test(this.phone)) return Util.warningMsg('请输入正确的手机号') |
|
|
|
|
if (!this.phoneCode) return Util.warningMsg('请输入验证码') |
|
|
|
|
let data = { |
|
|
|
|
userId: this.form.userId, |
|
|
|
|
phone: this.phone, |
|
|
|
@ -801,7 +821,7 @@ export default { |
|
|
|
|
opener: this.phoneOpener |
|
|
|
|
} |
|
|
|
|
this.$post(this.api.bindPhoneOrEmail, data).then(res => { |
|
|
|
|
util.successMsg('绑定成功') |
|
|
|
|
Util.successMsg('绑定成功') |
|
|
|
|
this.form.phone = this.phone |
|
|
|
|
this.phoneVisible = false |
|
|
|
|
}).catch(res => { }) |
|
|
|
@ -815,7 +835,7 @@ export default { |
|
|
|
|
this.form.account = this.account |
|
|
|
|
this.accountVisible = false |
|
|
|
|
} else { |
|
|
|
|
util.errorMsg('请输入账号') |
|
|
|
|
Util.errorMsg('请输入账号') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -827,34 +847,44 @@ export default { |
|
|
|
|
height: calc(100vh - 202px); |
|
|
|
|
overflow: auto; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.page { |
|
|
|
|
margin-bottom: 12px; |
|
|
|
|
|
|
|
|
|
/deep/.el-input__inner { |
|
|
|
|
border-color: #CACFDB; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.list { |
|
|
|
|
.line { |
|
|
|
|
display: flex; |
|
|
|
|
margin-bottom: 24px; |
|
|
|
|
|
|
|
|
|
&.info li:not(.selects) { |
|
|
|
|
width: 30%; |
|
|
|
|
|
|
|
|
|
.el-input { |
|
|
|
|
flex: 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&:first-child { |
|
|
|
|
margin-right: 16%; |
|
|
|
|
margin-right: 91px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&.imp li { |
|
|
|
|
width: calc(30% + 36px) !important; |
|
|
|
|
|
|
|
|
|
&.phone-li { |
|
|
|
|
width: calc(30% + 72px) !important; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
li { |
|
|
|
|
display: inline-flex; |
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
&>label { |
|
|
|
|
width: 100px; |
|
|
|
|
margin-right: 5px; |
|
|
|
@ -862,26 +892,33 @@ export default { |
|
|
|
|
font-size: 14px; |
|
|
|
|
color: #4c4c4c; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.el-input { |
|
|
|
|
width: 220px; |
|
|
|
|
|
|
|
|
|
.el-input__inner { |
|
|
|
|
border-color: #CACFDB; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.el-select .el-input.is-disabled .el-input__inner { |
|
|
|
|
border-color: #ddd; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.val { |
|
|
|
|
margin-right: 15px; |
|
|
|
|
color: #606266; |
|
|
|
|
font-size: 14px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.mul { |
|
|
|
|
display: inline-flex; |
|
|
|
|
|
|
|
|
|
.child { |
|
|
|
|
display: inline-flex; |
|
|
|
|
width: 132px; |
|
|
|
|
margin-right: 10px; |
|
|
|
|
|
|
|
|
|
&>span { |
|
|
|
|
margin-bottom: 5px; |
|
|
|
|
font-size: 14px; |
|
|
|
@ -891,6 +928,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.archives { |
|
|
|
|
position: relative; |
|
|
|
|
width: 862px; |
|
|
|
@ -898,44 +936,54 @@ export default { |
|
|
|
|
margin-bottom: 6px; |
|
|
|
|
border-radius: 4px; |
|
|
|
|
background-color: #FAFAFA; |
|
|
|
|
|
|
|
|
|
.del { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 80px; |
|
|
|
|
right: 19px; |
|
|
|
|
cursor: pointer; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.line { |
|
|
|
|
justify-content: space-between; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
li { |
|
|
|
|
margin-right: 60px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.el-select { |
|
|
|
|
flex: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.fold { |
|
|
|
|
margin-top: 20px; |
|
|
|
|
text-align: center; |
|
|
|
|
font-size: 12px; |
|
|
|
|
color: #006EFF; |
|
|
|
|
|
|
|
|
|
span { |
|
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
|
|
i { |
|
|
|
|
transition: .5s; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&.active i { |
|
|
|
|
transform: rotate(180deg); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.btns { |
|
|
|
|
width: 100%; |
|
|
|
|
padding: 12px 0; |
|
|
|
|
text-align: center; |
|
|
|
|
background-color: #fff; |
|
|
|
|
box-shadow: 0px 0px 10px 0px rgba(188, 201, 218, 0.4); |
|
|
|
|
|
|
|
|
|
.el-button { |
|
|
|
|
width: 80px; |
|
|
|
|
} |
|
|
|
|