|
|
|
@ -1,18 +1,19 @@ |
|
|
|
|
<template> |
|
|
|
|
<div> |
|
|
|
|
<div class="block"> |
|
|
|
|
<h6 class="title">用户信息</h6> |
|
|
|
|
<div class="page"> |
|
|
|
|
<h6 class="p-title bd">用户信息</h6> |
|
|
|
|
<div class="page-content"> |
|
|
|
|
<ul class="list"> |
|
|
|
|
<li> |
|
|
|
|
<label>姓名</label> |
|
|
|
|
<div> |
|
|
|
|
<el-input v-model="form.userName" clearable></el-input> |
|
|
|
|
<el-input size="small" v-model="form.userName" clearable></el-input> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>性别</label> |
|
|
|
|
<div> |
|
|
|
|
<el-select v-model="form.sex"> |
|
|
|
|
<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-select> |
|
|
|
|
</div> |
|
|
|
@ -20,7 +21,7 @@ |
|
|
|
|
<li> |
|
|
|
|
<label>出生年月日</label> |
|
|
|
|
<div> |
|
|
|
|
<el-date-picker 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> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
@ -29,7 +30,7 @@ |
|
|
|
|
<div class="child"> |
|
|
|
|
<span>国家</span> |
|
|
|
|
<div> |
|
|
|
|
<el-select v-model="form.countries" placeholder> |
|
|
|
|
<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-select> |
|
|
|
|
</div> |
|
|
|
@ -37,7 +38,7 @@ |
|
|
|
|
<div class="child"> |
|
|
|
|
<span>省份</span> |
|
|
|
|
<div> |
|
|
|
|
<el-select v-model="form.provinceId" placeholder @change="id => getCity(id,1)"> |
|
|
|
|
<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-select> |
|
|
|
|
</div> |
|
|
|
@ -45,7 +46,7 @@ |
|
|
|
|
<div class="child"> |
|
|
|
|
<span>城市</span> |
|
|
|
|
<div> |
|
|
|
|
<el-select v-model="form.cityId" placeholder :disabled="form.provinceId ? false : true"> |
|
|
|
|
<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> |
|
|
|
@ -55,27 +56,28 @@ |
|
|
|
|
<li> |
|
|
|
|
<label>证件</label> |
|
|
|
|
<div> |
|
|
|
|
<el-input v-model="form.idNumber" clearable></el-input> |
|
|
|
|
<el-input size="small" v-model="form.idNumber" clearable></el-input> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>教育程度</label> |
|
|
|
|
<div> |
|
|
|
|
<el-select v-model="form.educationDegree" placeholder="请选择教育程度"> |
|
|
|
|
<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-select> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="block"> |
|
|
|
|
<div class="flex j-between a-center m-b-20"> |
|
|
|
|
<h6 class="title" style="margin-bottom: 0;">个人档案</h6> |
|
|
|
|
<div class="page"> |
|
|
|
|
<div class="flex j-between a-center m-r-20"> |
|
|
|
|
<h6 class="p-title">个人档案</h6> |
|
|
|
|
<el-button type="text" icon="el-icon-plus" @click="addArch">新增</el-button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="information"> |
|
|
|
|
<div class="page-content"> |
|
|
|
|
<div class="archives" v-for="(archive,index) in archivesList" :key="index" v-show="index == 0 || showArch"> |
|
|
|
|
<ul class="list"> |
|
|
|
|
<li> |
|
|
|
@ -84,7 +86,7 @@ |
|
|
|
|
<div class="child"> |
|
|
|
|
<span>职业</span> |
|
|
|
|
<div> |
|
|
|
|
<el-select v-model="archive.personalCareerId" placeholder="选择职业"> |
|
|
|
|
<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-select> |
|
|
|
|
</div> |
|
|
|
@ -92,7 +94,7 @@ |
|
|
|
|
<div class="child"> |
|
|
|
|
<span>国家</span> |
|
|
|
|
<div> |
|
|
|
|
<el-select v-model="form.countries" placeholder> |
|
|
|
|
<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-select> |
|
|
|
|
</div> |
|
|
|
@ -100,7 +102,7 @@ |
|
|
|
|
<div class="child"> |
|
|
|
|
<span>学校名称</span> |
|
|
|
|
<div> |
|
|
|
|
<el-select v-model="archive.schoolId" filterable placeholder="选择学校" @change="id => getSchoolName(id,index)"> |
|
|
|
|
<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> |
|
|
|
|
</div> |
|
|
|
@ -113,7 +115,7 @@ |
|
|
|
|
<div class="child"> |
|
|
|
|
<span>专业学科</span> |
|
|
|
|
<div> |
|
|
|
|
<el-select v-model="archive.disciplineId" placeholder="选择专业学科" @change="id => getItemProfessionalClass(id,index)" @clear="() => clearItemClass(index)"> |
|
|
|
|
<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> |
|
|
|
|
</div> |
|
|
|
@ -121,7 +123,7 @@ |
|
|
|
|
<div class="child"> |
|
|
|
|
<span>专业类</span> |
|
|
|
|
<div> |
|
|
|
|
<el-select v-model="archive.professionalClassId" placeholder="选择专业类" :disabled="archive.disciplineId ? false : true" @change="id => getItemProfessional(id,index)" @clear="() => clearItemProfess(index)"> |
|
|
|
|
<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> |
|
|
|
|
</div> |
|
|
|
@ -129,7 +131,7 @@ |
|
|
|
|
<div class="child"> |
|
|
|
|
<span>专业</span> |
|
|
|
|
<div> |
|
|
|
|
<el-select v-model="archive.professionalId" placeholder="选择专业" :disabled="archive.professionalClassId ? false : true" @change="getItemStuGrade"> |
|
|
|
|
<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> |
|
|
|
|
</div> |
|
|
|
@ -138,46 +140,50 @@ |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
<div class="fold"> |
|
|
|
|
<div class="fold" v-if="archivesList.length > 1"> |
|
|
|
|
<img :class="{active: showArch}" src="@/assets/img/arrow.png" alt="" @click="showArch = !showArch"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="block"> |
|
|
|
|
<h6 class="title">账号信息</h6> |
|
|
|
|
<div class="page"> |
|
|
|
|
<h6 class="p-title">账号信息</h6> |
|
|
|
|
<div class="page-content"> |
|
|
|
|
<ul class="list"> |
|
|
|
|
<li> |
|
|
|
|
<label>用户账号</label> |
|
|
|
|
<div> |
|
|
|
|
<el-input v-model="form.account" clearable></el-input> |
|
|
|
|
<el-input size="small" v-model="form.account" clearable></el-input> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>手机号</label> |
|
|
|
|
<div> |
|
|
|
|
<span class="val" v-if="form.phone">{{form.phone}}</span> |
|
|
|
|
<el-button size="small" @click="bindPhone">更换</el-button> |
|
|
|
|
<el-input class="m-r-10" size="small" v-model="form.phone" disabled></el-input> |
|
|
|
|
<el-button type="primary" size="small" @click="bindPhone">更换</el-button> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>邮箱</label> |
|
|
|
|
<div> |
|
|
|
|
<span class="val" v-if="form.email">{{form.email}}</span> |
|
|
|
|
<el-button size="small" @click="bindEmail">更换</el-button> |
|
|
|
|
<el-input class="m-r-10" size="small" v-model="form.email" disabled></el-input> |
|
|
|
|
<el-button v-if="form.email" type="primary" size="small" @click="bindEmail">更换</el-button> |
|
|
|
|
<el-button v-else size="small" @click="bindEmail">添加</el-button> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>密码</label> |
|
|
|
|
<div> |
|
|
|
|
<el-button size="small" @click="bindPassword">更换密码</el-button> |
|
|
|
|
<el-input class="m-r-10" size="small" value="xxxxxxxx" disabled></el-input> |
|
|
|
|
<el-button type="primary" size="small" @click="bindPassword">更换密码</el-button> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<div class="text-right"> |
|
|
|
|
<el-button type="primary" size="small" v-throttle @click="save">更新</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="text-center"> |
|
|
|
|
<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-form ref="form" :model="form" label-width="60px"> |
|
|
|
@ -339,9 +345,19 @@ export default { |
|
|
|
|
phoneBtnText: '发送验证码', |
|
|
|
|
phoneCode: '', |
|
|
|
|
phoneDisabled: false, |
|
|
|
|
phoneTimer: null |
|
|
|
|
phoneTimer: null, |
|
|
|
|
updateTime: 0 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
form: { |
|
|
|
|
handler(val, oldVal){ |
|
|
|
|
this.updateTime++ |
|
|
|
|
if(this.updateTime > 1) this.$emit('updateStatus',this.updateTime > 1) |
|
|
|
|
}, |
|
|
|
|
deep:true |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
this.getdata() |
|
|
|
|
this.getProvince() |
|
|
|
@ -479,6 +495,8 @@ export default { |
|
|
|
|
userName: form.userName |
|
|
|
|
}) |
|
|
|
|
util.successMsg('提交成功') |
|
|
|
|
this.updateTime = 0 |
|
|
|
|
this.$emit('updateStatus',false) |
|
|
|
|
this.getdata() |
|
|
|
|
}else{ |
|
|
|
|
util.errorMsg('提交失败') |
|
|
|
@ -518,7 +536,6 @@ export default { |
|
|
|
|
this.emailVisible = true |
|
|
|
|
}, |
|
|
|
|
bindPhone() { |
|
|
|
|
this.phone = this.form.phone |
|
|
|
|
this.phoneVisible = true |
|
|
|
|
}, |
|
|
|
|
bindPassword() { |
|
|
|
@ -797,19 +814,8 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.block{ |
|
|
|
|
padding: 34px; |
|
|
|
|
.page{ |
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
background-color: #fff; |
|
|
|
|
border-radius: 8px; |
|
|
|
|
.title{ |
|
|
|
|
padding-left: 11px; |
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
font-size: 17px; |
|
|
|
|
color: $main-color; |
|
|
|
|
line-height: 1.8; |
|
|
|
|
border-left: 6px solid; |
|
|
|
|
} |
|
|
|
|
.list{ |
|
|
|
|
li{ |
|
|
|
|
display: flex; |
|
|
|
@ -858,6 +864,7 @@ export default { |
|
|
|
|
text-align: center; |
|
|
|
|
img{ |
|
|
|
|
cursor: pointer; |
|
|
|
|
transition: .5s; |
|
|
|
|
&.active{ |
|
|
|
|
transform: rotate(180deg); |
|
|
|
|
} |
|
|
|
|