|
|
|
@ -12,19 +12,17 @@ |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<!-- 用户信息 --> |
|
|
|
|
<!-- 个人信息 --> |
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<div> |
|
|
|
|
<div class="flex-between mgb20 user_header"> |
|
|
|
|
<div class="flex-center mgb20 user_header"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>用户信息</span> |
|
|
|
|
<span>个人信息</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
<div> |
|
|
|
|
<p class="font_same">个人信息</p> |
|
|
|
|
<el-form |
|
|
|
|
ref="form" |
|
|
|
|
:model="form" |
|
|
|
@ -114,9 +112,9 @@ |
|
|
|
|
></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item prop="IDNumber" label="证件号码"> |
|
|
|
|
<el-form-item prop="idNumber" label="证件号码"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="form.IDNumber" |
|
|
|
|
v-model="form.idNumber" |
|
|
|
|
placeholder="请输入证件号码" |
|
|
|
|
maxlength="18" |
|
|
|
|
></el-input> |
|
|
|
@ -165,9 +163,20 @@ |
|
|
|
|
</el-col> |
|
|
|
|
</el-form> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<div class="mgb20_top"> |
|
|
|
|
<p class="font_same">账号信息</p> |
|
|
|
|
<!-- 账号信息 --> |
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<div> |
|
|
|
|
<div class="flex-between mgb20 user_header"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>账号信息</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
<el-form |
|
|
|
|
ref="form" |
|
|
|
|
:model="form" |
|
|
|
@ -195,7 +204,6 @@ |
|
|
|
|
</el-form> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<!-- 个人档案 --> |
|
|
|
@ -229,7 +237,7 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="院校"> |
|
|
|
|
<el-select v-model="item.schoolId" filterable clearable placeholder="请选择院校" @change="schoolitemChange"> |
|
|
|
|
<el-select v-model="item.schoolId" filterable clearable placeholder="请选择院校" @change="id => getSchoolName(id,index)"> |
|
|
|
|
<el-option v-for="(item,index) in schoolList" :key="index" :label="item.schoolName" :value="item.schoolId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -441,7 +449,7 @@ export default { |
|
|
|
|
userName: '', //用户姓名 |
|
|
|
|
uniqueIdentification: '', //唯一识别码 |
|
|
|
|
documentType: 1, //证件类型 |
|
|
|
|
IDNumber: '', //证件号码 |
|
|
|
|
idNumber: '', //证件号码 |
|
|
|
|
cityId: '', //省份 |
|
|
|
|
countries: '中国', //国家 |
|
|
|
|
provinceId: '', //城市 |
|
|
|
@ -489,7 +497,7 @@ export default { |
|
|
|
|
trigger: 'blur' |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
IDNumber: [ |
|
|
|
|
idNumber: [ |
|
|
|
|
// { required: true, message: '请输入证件号码', trigger: 'blur' }, |
|
|
|
|
{ |
|
|
|
|
pattern: /(^[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]$)/, |
|
|
|
@ -595,47 +603,61 @@ export default { |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
this.getSchoolData() |
|
|
|
|
if(this.userId){ |
|
|
|
|
this.getdata(); |
|
|
|
|
} |
|
|
|
|
this.getSchoolData(); |
|
|
|
|
this.getSubject(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getdata() { |
|
|
|
|
this.$get(this.api.queryUserInfoDetails,{ userId: this.userId }).then(res => { |
|
|
|
|
let userInfo = res.result.hrUserInfo |
|
|
|
|
let personalFileList = res.result.personalFileList |
|
|
|
|
let platformList = res.result.platformList |
|
|
|
|
let userAccount = res.result.userAccountList |
|
|
|
|
|
|
|
|
|
this.form.userName = userInfo.userName |
|
|
|
|
this.form.uniqueIdentification = userInfo.uniqueIdentification |
|
|
|
|
this.form.IDNumber = userInfo.iDNumber |
|
|
|
|
this.form.cityId = userInfo.cityId |
|
|
|
|
this.form.provinceId = userInfo.provinceId |
|
|
|
|
this.form.dateBirth = userInfo.dateBirth |
|
|
|
|
this.form.educationDegree = userInfo.educationDegree |
|
|
|
|
this.form.sex = userInfo.sex |
|
|
|
|
this.form.schoolId = userInfo.schoolId |
|
|
|
|
this.form.phone = userInfo.phone |
|
|
|
|
this.form.WeChatID = userAccount[0].wechatId |
|
|
|
|
if(userInfo.provinceId){ |
|
|
|
|
this.getCityData() |
|
|
|
|
let schoolId = userInfo.schoolId |
|
|
|
|
this.form = Object.assign(userInfo,res.result.userAccountList[0]) |
|
|
|
|
this.form.schoolId = schoolId |
|
|
|
|
this.form.accountId = userInfo.id |
|
|
|
|
this.originAccount = this.form.account |
|
|
|
|
this.archivesList = res.result.personalFileList |
|
|
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
if(this.form.provinceId){ |
|
|
|
|
this.getCityData(1) |
|
|
|
|
} |
|
|
|
|
// 个人档案 |
|
|
|
|
if(personalFileList.length != 0){ |
|
|
|
|
personalFileList.map(e =>{ |
|
|
|
|
if(this.archivesList.length != 0){ |
|
|
|
|
this.archivesList.forEach((e,k) =>{ |
|
|
|
|
this.$set(e, 'subjectList', this.subjectList); |
|
|
|
|
this.$set(e, 'disciplineId', e.disciplineId ? e.disciplineId : ''); |
|
|
|
|
this.$set(e, 'disciplineName', e.disciplineName ? e.disciplineName : ''); |
|
|
|
|
this.$set(e, 'professionalClassId', e.professionalClassId ? e.professionalClassId : ''); |
|
|
|
|
this.$set(e, 'professionalClassName', e.professionalClassName ? e.professionalClassName : ''); |
|
|
|
|
this.$set(e, 'professionalId', e.professionalId ? e.professionalId : ''); |
|
|
|
|
this.$set(e, 'professionalName', e.professionalName ? e.professionalName : ''); |
|
|
|
|
this.$set(e, 'schoolId', e.schoolId ? e.schoolId : ''); |
|
|
|
|
this.$set(e, 'schoolName', e.schoolName ? e.schoolName : ''); |
|
|
|
|
|
|
|
|
|
if(e.disciplineId){ |
|
|
|
|
this.$get(this.api.queryCourseProfessionalClass, { disciplineId: e.disciplineId }).then(res => { |
|
|
|
|
this.$set(e, 'ProfessionalClassList', res.list); |
|
|
|
|
}).catch(res => {}); |
|
|
|
|
}else{ |
|
|
|
|
this.$set(e, 'ProfessionalClassList', []); |
|
|
|
|
} |
|
|
|
|
if(e.professionalClassId){ |
|
|
|
|
this.$get(this.api.queryCourseProfessional,{ professionalClassId: e.professionalClassId }).then(res => { |
|
|
|
|
this.$set(e, 'ProfessionalList', res.list); |
|
|
|
|
}).catch(res => {}); |
|
|
|
|
}else{ |
|
|
|
|
this.$set(e, 'ProfessionalList', []); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
this.concatArch(1) |
|
|
|
|
} |
|
|
|
|
this.archivesList = personalFileList |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 平台系统 |
|
|
|
|
let platformList = res.result.platformList |
|
|
|
|
platformList.map(e =>{ |
|
|
|
|
this.regionOption.map((r,index) =>{ |
|
|
|
|
if(r.regionId == e.platformId){ |
|
|
|
@ -645,9 +667,25 @@ export default { |
|
|
|
|
}) |
|
|
|
|
this.platformList = platformList |
|
|
|
|
}).catch((res) => {}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
concatArch() { |
|
|
|
|
this.archivesList = this.archivesList.concat({ |
|
|
|
|
isNew: true, |
|
|
|
|
personalCareerId: '', |
|
|
|
|
schoolId: '', |
|
|
|
|
schoolName: '', |
|
|
|
|
subjectList: this.subjectList, |
|
|
|
|
disciplineId: '', |
|
|
|
|
disciplineName: '', |
|
|
|
|
ProfessionalClassList: [], |
|
|
|
|
professionalClassId: '', |
|
|
|
|
professionalClassName: '', |
|
|
|
|
ProfessionalList: [], |
|
|
|
|
professionalId: '', |
|
|
|
|
professionalName: '', |
|
|
|
|
personalFileId: '' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getCity(){ |
|
|
|
|
if(this.form.provinceId){ |
|
|
|
|
this.getCityData() |
|
|
|
@ -658,19 +696,8 @@ export default { |
|
|
|
|
this.cityList = res.list |
|
|
|
|
}).catch(res => {}); |
|
|
|
|
}, |
|
|
|
|
// 获取列表学校名称 |
|
|
|
|
schoolitemChange(item){ |
|
|
|
|
if(item){ |
|
|
|
|
this.archivesList.map(e =>{ |
|
|
|
|
if(e.schoolId == item){ |
|
|
|
|
let obj = {}; |
|
|
|
|
obj = this.schoolList.find(r =>{ |
|
|
|
|
return r.schoolId === item; |
|
|
|
|
}); |
|
|
|
|
e.schoolName = obj.schoolName |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
getSchoolName(id,index){ |
|
|
|
|
this.archivesList[index].schoolName = this.schoolList[id-1].schoolName |
|
|
|
|
}, |
|
|
|
|
// 获取学校名称 |
|
|
|
|
getSchoolData(){ |
|
|
|
|