|
|
@ -1,81 +1,83 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<div class="block"> |
|
|
|
<div class="page"> |
|
|
|
<h6 class="title">用户信息</h6> |
|
|
|
<h6 class="p-title bd">用户信息</h6> |
|
|
|
<ul class="list"> |
|
|
|
<div class="page-content"> |
|
|
|
<li> |
|
|
|
<ul class="list"> |
|
|
|
<label>姓名</label> |
|
|
|
<li> |
|
|
|
<div> |
|
|
|
<label>姓名</label> |
|
|
|
<el-input v-model="form.userName" clearable></el-input> |
|
|
|
<div> |
|
|
|
</div> |
|
|
|
<el-input size="small" v-model="form.userName" clearable></el-input> |
|
|
|
</li> |
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
|
|
<label>性别</label> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<el-select 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> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
|
|
<label>所在国家</label> |
|
|
|
|
|
|
|
<div class="mul"> |
|
|
|
|
|
|
|
<div class="child"> |
|
|
|
|
|
|
|
<span>国家</span> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<el-select 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> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="child"> |
|
|
|
</li> |
|
|
|
<span>省份</span> |
|
|
|
<li> |
|
|
|
<div> |
|
|
|
<label>性别</label> |
|
|
|
<el-select v-model="form.provinceId" placeholder @change="id => getCity(id,1)"> |
|
|
|
<div> |
|
|
|
<el-option v-for="item in provinceList" :key="item.provinceId" :label="item.provinceName" :value="item.provinceId"></el-option> |
|
|
|
<el-select size="small" v-model="form.sex"> |
|
|
|
</el-select> |
|
|
|
<el-option v-for="item in sexList" :key="item.value" :label="item.name" :value="item.value"></el-option> |
|
|
|
</div> |
|
|
|
</el-select> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
<li> |
|
|
|
|
|
|
|
<label>出生年月日</label> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<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> |
|
|
|
</div> |
|
|
|
<div class="child"> |
|
|
|
</li> |
|
|
|
<span>城市</span> |
|
|
|
<li> |
|
|
|
<div> |
|
|
|
<label>所在国家</label> |
|
|
|
<el-select v-model="form.cityId" placeholder :disabled="form.provinceId ? false : true"> |
|
|
|
<div class="mul"> |
|
|
|
<el-option v-for="item in cityList" :key="item.cityId" :label="item.cityName" :value="item.cityId"></el-option> |
|
|
|
<div class="child"> |
|
|
|
</el-select> |
|
|
|
<span>国家</span> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="child"> |
|
|
|
|
|
|
|
<span>省份</span> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="child"> |
|
|
|
|
|
|
|
<span>城市</span> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<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> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>证件</label> |
|
|
|
<label>证件</label> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-input size="small" v-model="form.idNumber" clearable></el-input> |
|
|
|
<el-input v-model="form.idNumber" clearable></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>教育程度</label> |
|
|
|
<label>教育程度</label> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-select size="small" v-model="form.educationDegree" placeholder="请选择教育程度"> |
|
|
|
<el-select 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> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="block"> |
|
|
|
<div class="page"> |
|
|
|
<div class="flex j-between a-center m-b-20"> |
|
|
|
<div class="flex j-between a-center m-r-20"> |
|
|
|
<h6 class="title" style="margin-bottom: 0;">个人档案</h6> |
|
|
|
<h6 class="p-title">个人档案</h6> |
|
|
|
<el-button type="text" icon="el-icon-plus" @click="addArch">新增</el-button> |
|
|
|
<el-button type="text" icon="el-icon-plus" @click="addArch">新增</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="information"> |
|
|
|
<div class="page-content"> |
|
|
|
<div class="archives" v-for="(archive,index) in archivesList" :key="index" v-show="index == 0 || showArch"> |
|
|
|
<div class="archives" v-for="(archive,index) in archivesList" :key="index" v-show="index == 0 || showArch"> |
|
|
|
<ul class="list"> |
|
|
|
<ul class="list"> |
|
|
|
<li> |
|
|
|
<li> |
|
|
@ -84,7 +86,7 @@ |
|
|
|
<div class="child"> |
|
|
|
<div class="child"> |
|
|
|
<span>职业</span> |
|
|
|
<span>职业</span> |
|
|
|
<div> |
|
|
|
<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-option v-for="item in occupationList" :key="item.value" :label="item.label" :value="item.value"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -92,7 +94,7 @@ |
|
|
|
<div class="child"> |
|
|
|
<div class="child"> |
|
|
|
<span>国家</span> |
|
|
|
<span>国家</span> |
|
|
|
<div> |
|
|
|
<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-option v-for="item in countryList" :key="item.value" :label="item.label" :value="item.label" ></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -100,7 +102,7 @@ |
|
|
|
<div class="child"> |
|
|
|
<div class="child"> |
|
|
|
<span>学校名称</span> |
|
|
|
<span>学校名称</span> |
|
|
|
<div> |
|
|
|
<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-option v-for="item in schoolList" :key="item.value" :label="item.schoolName" :value="item.schoolId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -113,7 +115,7 @@ |
|
|
|
<div class="child"> |
|
|
|
<div class="child"> |
|
|
|
<span>专业学科</span> |
|
|
|
<span>专业学科</span> |
|
|
|
<div> |
|
|
|
<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-option v-for="item in subjectList" :key="item.value" :label="item.disciplineName" :value="item.disciplineId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -121,7 +123,7 @@ |
|
|
|
<div class="child"> |
|
|
|
<div class="child"> |
|
|
|
<span>专业类</span> |
|
|
|
<span>专业类</span> |
|
|
|
<div> |
|
|
|
<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-option v-for="item in archive.ProfessionalClassList" :key="item.professionalClassId" :label="item.professionalClassName" :value="item.professionalClassId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -129,7 +131,7 @@ |
|
|
|
<div class="child"> |
|
|
|
<div class="child"> |
|
|
|
<span>专业</span> |
|
|
|
<span>专业</span> |
|
|
|
<div> |
|
|
|
<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-option v-for="item in archive.ProfessionalList" :key="item.professionalId" :label="item.professionalName" :value="item.professionalId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -138,46 +140,50 @@ |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</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"> |
|
|
|
<img :class="{active: showArch}" src="@/assets/img/arrow.png" alt="" @click="showArch = !showArch"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="block"> |
|
|
|
<div class="page"> |
|
|
|
<h6 class="title">账号信息</h6> |
|
|
|
<h6 class="p-title">账号信息</h6> |
|
|
|
<ul class="list"> |
|
|
|
<div class="page-content"> |
|
|
|
<li> |
|
|
|
<ul class="list"> |
|
|
|
<label>用户账号</label> |
|
|
|
<li> |
|
|
|
<div> |
|
|
|
<label>用户账号</label> |
|
|
|
<el-input v-model="form.account" clearable></el-input> |
|
|
|
<div> |
|
|
|
</div> |
|
|
|
<el-input size="small" v-model="form.account" clearable></el-input> |
|
|
|
</li> |
|
|
|
</div> |
|
|
|
<li> |
|
|
|
</li> |
|
|
|
<label>手机号</label> |
|
|
|
<li> |
|
|
|
<div> |
|
|
|
<label>手机号</label> |
|
|
|
<span class="val" v-if="form.phone">{{form.phone}}</span> |
|
|
|
<div> |
|
|
|
<el-button size="small" @click="bindPhone">更换</el-button> |
|
|
|
<el-input class="m-r-10" size="small" v-model="form.phone" disabled></el-input> |
|
|
|
</div> |
|
|
|
<el-button type="primary" size="small" @click="bindPhone">更换</el-button> |
|
|
|
</li> |
|
|
|
</div> |
|
|
|
<li> |
|
|
|
</li> |
|
|
|
<label>邮箱</label> |
|
|
|
<li> |
|
|
|
<div> |
|
|
|
<label>邮箱</label> |
|
|
|
<span class="val" v-if="form.email">{{form.email}}</span> |
|
|
|
<div> |
|
|
|
<el-button size="small" @click="bindEmail">更换</el-button> |
|
|
|
<el-input class="m-r-10" size="small" v-model="form.email" disabled></el-input> |
|
|
|
</div> |
|
|
|
<el-button v-if="form.email" type="primary" size="small" @click="bindEmail">更换</el-button> |
|
|
|
</li> |
|
|
|
<el-button v-else size="small" @click="bindEmail">添加</el-button> |
|
|
|
<li> |
|
|
|
</div> |
|
|
|
<label>密码</label> |
|
|
|
</li> |
|
|
|
<div> |
|
|
|
<li> |
|
|
|
<el-button size="small" @click="bindPassword">更换密码</el-button> |
|
|
|
<label>密码</label> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
</li> |
|
|
|
<el-input class="m-r-10" size="small" value="xxxxxxxx" disabled></el-input> |
|
|
|
</ul> |
|
|
|
<el-button type="primary" size="small" @click="bindPassword">更换密码</el-button> |
|
|
|
<div class="text-right"> |
|
|
|
</div> |
|
|
|
<el-button type="primary" size="small" v-throttle @click="save">更新</el-button> |
|
|
|
</li> |
|
|
|
|
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</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-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 ref="form" :model="form" label-width="60px"> |
|
|
@ -339,9 +345,19 @@ export default { |
|
|
|
phoneBtnText: '发送验证码', |
|
|
|
phoneBtnText: '发送验证码', |
|
|
|
phoneCode: '', |
|
|
|
phoneCode: '', |
|
|
|
phoneDisabled: false, |
|
|
|
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() { |
|
|
|
mounted() { |
|
|
|
this.getdata() |
|
|
|
this.getdata() |
|
|
|
this.getProvince() |
|
|
|
this.getProvince() |
|
|
@ -479,6 +495,8 @@ export default { |
|
|
|
userName: form.userName |
|
|
|
userName: form.userName |
|
|
|
}) |
|
|
|
}) |
|
|
|
util.successMsg('提交成功') |
|
|
|
util.successMsg('提交成功') |
|
|
|
|
|
|
|
this.updateTime = 0 |
|
|
|
|
|
|
|
this.$emit('updateStatus',false) |
|
|
|
this.getdata() |
|
|
|
this.getdata() |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
util.errorMsg('提交失败') |
|
|
|
util.errorMsg('提交失败') |
|
|
@ -518,7 +536,6 @@ export default { |
|
|
|
this.emailVisible = true |
|
|
|
this.emailVisible = true |
|
|
|
}, |
|
|
|
}, |
|
|
|
bindPhone() { |
|
|
|
bindPhone() { |
|
|
|
this.phone = this.form.phone |
|
|
|
|
|
|
|
this.phoneVisible = true |
|
|
|
this.phoneVisible = true |
|
|
|
}, |
|
|
|
}, |
|
|
|
bindPassword() { |
|
|
|
bindPassword() { |
|
|
@ -797,19 +814,8 @@ export default { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.block{ |
|
|
|
.page{ |
|
|
|
padding: 34px; |
|
|
|
|
|
|
|
margin-bottom: 20px; |
|
|
|
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{ |
|
|
|
.list{ |
|
|
|
li{ |
|
|
|
li{ |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
@ -858,6 +864,7 @@ export default { |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
img{ |
|
|
|
img{ |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
transition: .5s; |
|
|
|
&.active{ |
|
|
|
&.active{ |
|
|
|
transform: rotate(180deg); |
|
|
|
transform: rotate(180deg); |
|
|
|
} |
|
|
|
} |
|
|
|