问题修复

dev
刘博 2 years ago
parent 26cb8347e2
commit 34639d3a77

@ -1,30 +1,28 @@
<template> <template>
<div class="userInfoList" :class="{ 'active': statusChange }"> <div class="userInfoList" :class="{ 'active': statusChange }">
<div class="userInfoTitle"> <div class="userInfoTitle">
<span>补充信息</span> <span>补充信息</span>
<!-- isSelfSupport 判断是否可以进行修改 如果要改成可以修改加一个或判断 v-if="isSelfSupport === 1 || xxx"--> <!-- isSelfSupport 判断是否可以进行修改 如果要改成可以修改加一个或判断 v-if="isSelfSupport === 1 || xxx"-->
<span v-if="isSelfSupport === 1" :class="{ 'active': statusChange }" class="handle"> <span v-if="isSelfSupport === 1" :class="{ 'active': statusChange }" class="handle">
<span v-if="statusChange" class="gary" @click="cancelStatusChange"></span> <span v-if="statusChange" class="gary" @click="cancelStatusChange"></span>
<span v-if="!statusChange" class="blue" @click="editStatusChange"></span> <span v-if="!statusChange" class="blue" @click="editStatusChange"></span>
<span v-if="statusChange" class="blue" @click="save"></span> <span v-if="statusChange" class="blue" @click="save"></span>
</span> </span>
</div>
<div v-if="info" :class="{ 'active': statusChange }" class="basicInfoOut">
<div>
<span>用户预警状态</span>
<span v-if="!statusChange">{{ info.userAlertStatusString || '-' }}</span>
<div v-else>
<a-select v-model="selectAlertListIndex" placeholder="请选择">
<a-icon slot="suffixIcon" type="caret-down"/>
<a-select-option v-for="(item, index) in alertList" :key="index" :value="index">
<span>{{ item.typeName }}</span>
</a-select-option>
</a-select>
</div> </div>
<div v-if="info" :class="{ 'active': statusChange }" class="basicInfoOut"> </div>
<div> <!-- <div>
<span>用户预警状态</span>
<span v-if="!statusChange">
{{ info.userAlertStatusString || '-' }}
</span>
<div v-else>
<a-select v-model="selectAlertListIndex" placeholder="请选择">
<a-icon slot="suffixIcon" type="caret-down" />
<a-select-option v-for="(item, index) in alertList" :key="index" :value="index">
<span>{{ item.typeName }}</span>
</a-select-option>
</a-select>
</div>
</div>
<!-- <div>
<span>政治面貌</span> <span>政治面貌</span>
<span v-if="!statusChange" class="marginLeft24"> <span v-if="!statusChange" class="marginLeft24">
{{ info.politicalOutlookString || '-' }} {{ info.politicalOutlookString || '-' }}
@ -51,219 +49,238 @@
</a-select-option> </a-select-option>
</a-select> </a-select>
</div> </div>
</div> --> </div>-->
<div> <div>
<span>是否缴纳社保</span> <span>是否缴纳社保</span>
<span v-if="!statusChange"> <span
{{ info.isPayInsurance == null ? "-": info.isPayInsurance == 0 ? "否" : "是" }} v-if="!statusChange"
</span> >{{ info.isPayInsurance == null ? "-": info.isPayInsurance == 0 ? "否" : "是" }}</span>
<div v-else> <div v-else>
<a-select v-model="selectIsPayInsuranceIndex" placeholder="请选择"> <a-select v-model="selectIsPayInsuranceIndex" placeholder="请选择">
<a-icon slot="suffixIcon" type="caret-down" /> <a-icon slot="suffixIcon" type="caret-down"/>
<a-select-option v-for="(item, index) in ['否', '是']" :key="index" :value="index"> <a-select-option v-for="(item, index) in ['否', '是']" :key="index" :value="index">
<span>{{ item }}</span> <span>{{ item }}</span>
</a-select-option> </a-select-option>
</a-select> </a-select>
</div>
</div>
<div>
<span>是否劳动力</span>
<span v-if="!statusChange" class="marginLeft12">
{{ info.isPower == undefined ? "-": info.isPower == 0 ? "否" : "是" }}
</span>
<div v-else class="marginLeft12">
<a-select v-model="selectIsPowerIndex" placeholder="请选择">
<a-icon slot="suffixIcon" type="caret-down" />
<a-select-option v-for="(item, index) in ['否', '是']" :key="index" :value="index">
<span>{{ item }}</span>
</a-select-option>
</a-select>
</div>
</div>
</div> </div>
<div v-else class="msgOut"> </div>
<span class="default"> <div>
- <span>是否劳动力</span>
</span> <span
v-if="!statusChange"
class="marginLeft12"
>{{ info.isPower == undefined ? "-": info.isPower == 0 ? "否" : "是" }}</span>
<div v-else class="marginLeft12">
<a-select v-model="selectIsPowerIndex" placeholder="请选择">
<a-icon slot="suffixIcon" type="caret-down"/>
<a-select-option v-for="(item, index) in ['否', '是']" :key="index" :value="index">
<span>{{ item }}</span>
</a-select-option>
</a-select>
</div> </div>
</div>
</div>
<div v-else class="msgOut">
<span class="default">-</span>
</div> </div>
</div>
</template> </template>
<script> <script>
export default { export default {
props: { props: {
id: { id: {
type: String | Number, type: String | Number,
default: null default: null
},
isSelfSupport: {
type: Number,
default: 1
},
}, },
data() { isSelfSupport: {
return { type: Number,
addressCodeList: null, default: 1
statusChange: false, }
info: null, },
inputInfo: null, data() {
alertList: null, return {
selectAlertListIndex: undefined, addressCodeList: null,
// politicalOutlookList: null, statusChange: false,
// selectPoliticalOutlookListIndex: undefined, info: null,
// nationList: null, inputInfo: null,
// selectNationListIndex: undefined, alertList: null,
selectIsPowerIndex: undefined, selectAlertListIndex: undefined,
selectIsPayInsuranceIndex: undefined, // politicalOutlookList: null,
wishJobCodeList: null, // selectPoliticalOutlookListIndex: undefined,
} // nationList: null,
// selectNationListIndex: undefined,
selectIsPowerIndex: undefined,
selectIsPayInsuranceIndex: undefined,
wishJobCodeList: null
};
},
async created() {
this.alertList = await this.getJobLightspotLabel("四色预警");
this.politicalOutlookList = await this.getJobLightspotLabel("政治面貌");
this.nationList = await this.getJobLightspotLabel("民族");
this.init();
},
mounted() {},
methods: {
async init() {
// this.queryAdditionalInformation();
}, },
async created() { //
this.alertList = await this.getJobLightspotLabel('四色预警'); async queryAdditionalInformation() {
this.politicalOutlookList = await this.getJobLightspotLabel('政治面貌'); try {
this.nationList = await this.getJobLightspotLabel('民族'); const url = `${this.$basUrl.member}sysMemberExtend/queryAdditionalInformation?memberId=${this.id}`;
this.init(); const res = await this.$http.get(url);
const { code, data } = res;
if (code !== 200) {
return;
}
if (data) {
Reflect.set(
data,
"userAlertStatusString",
this.getAlertList(data.userAlertStatus)
);
// Reflect.set(data, 'politicalOutlookString', this.getPoliticalOutlookList(data.isPoliticalOutlook));
// Reflect.set(data, 'nationString', this.getNationList(data.nation));
this.info = data;
this.selectIsPayInsuranceIndex =
typeof this.info.isPayInsurance === "number"
? this.info.isPayInsurance
: undefined;
this.selectIsPowerIndex =
typeof this.info.isPower === "number"
? this.info.isPower
: undefined;
this.inputInfo = { ...this.info };
console.log(this.inputInfo);
}
} catch (error) {
console.log(error);
}
}, },
mounted() { /**
* 字典查询四色预警列表
* @param { String } value 字典编号
* @return { String } 返回求职字段对应信息
*/
getAlertList(value) {
const index = this.alertList.findIndex(
item => item.dataDictionary === value
);
if (index > -1) {
// this.selectAlertListIndex = index;
this.$set(this, "selectAlertListIndex", index);
return this.alertList[index].typeName;
}
return null;
}, },
methods: { /**
async init() { * 字段查询政治面貌
this.queryAdditionalInformation(); * @param { String } value 字典编号
}, * @return { String } 对应字典编号信息返回
// */
async queryAdditionalInformation() { // getPoliticalOutlookList(value) {
try { // const index = this.politicalOutlookList.findIndex(item => item.dataDictionary === value);
const url = `${this.$basUrl.member}sysMemberExtend/queryAdditionalInformation?memberId=${this.id}`; // if (index > -1) {
const res = await this.$http.get(url); // this.selectPoliticalOutlookListIndex = index;
const { code, data } = res; // return this.politicalOutlookList[index].typeName;
if (code !== 200) { // }
return; // return null;
} // },
if (data) { /**
Reflect.set(data, 'userAlertStatusString', this.getAlertList(data.userAlertStatus)); * 字段查询民族列表
// Reflect.set(data, 'politicalOutlookString', this.getPoliticalOutlookList(data.isPoliticalOutlook)); * @param { String } value 字典编号
// Reflect.set(data, 'nationString', this.getNationList(data.nation)); * @return { String } 对应字典编号信息返回
this.info = data; */
this.selectIsPayInsuranceIndex = typeof this.info.isPayInsurance === 'number' ? this.info.isPayInsurance : undefined; // getNationList(value) {
this.selectIsPowerIndex = typeof this.info.isPower === 'number' ? this.info.isPower : undefined; // const index = this.nationList.findIndex(item => item.dataDictionary === value);
this.inputInfo = { ...this.info }; // if (index > -1) {
console.log(this.inputInfo); // this.selectNationListIndex = index;
} // return this.nationList[index].typeName;
} catch (error) { // }
console.log(error); // return null;
} // },
}, /**
/** * 字典查询匹配期望岗位
* 字典查询四色预警列表 * @param { String } jobTypeOne 层级一岗位匹配
* @param { String } value 字典编号 * @param { String } jobTypeTwo 层级一岗位匹配
* @return { String } 返回求职字段对应信息 * @return { String } 对应岗位字符串拼接信息返回
*/ */
getAlertList(value) { getWithJob(jobTypeOne, jobTypeTwo) {
const index = this.alertList.findIndex(item => item.dataDictionary === value); let withFirstJob = null;
if (index > -1) { let withSeconedJob = null;
// this.selectAlertListIndex = index; this.jobList.map(item => {
this.$set(this, 'selectAlertListIndex', index); if (item.dataDictionary === jobTypeOne) {
return this.alertList[index].typeName; withFirstJob = item.typeName;
item.list.map(lItem => {
if (lItem.dataDictionary === jobTypeTwo) {
withSeconedJob = lItem.typeName;
} }
return null; });
}, }
/** });
* 字段查询政治面貌 return withSeconedJob || withFirstJob || "-";
* @param { String } value 字典编号 },
* @return { String } 对应字典编号信息返回 cancelStatusChange() {
*/ this.statusChange = false;
// getPoliticalOutlookList(value) { },
// const index = this.politicalOutlookList.findIndex(item => item.dataDictionary === value); editStatusChange() {
// if (index > -1) { this.statusChange = !this.statusChange;
// this.selectPoliticalOutlookListIndex = index; },
// return this.politicalOutlookList[index].typeName; async save() {
// } try {
// return null; const url = `${this.$basUrl.member}sysMemberExtend/saveAdditionalInformation`;
// }, const params = {};
/** Reflect.set(params, "memberId", this.id);
* 字段查询民族列表 Reflect.set(params, "isPower", this.selectIsPowerIndex);
* @param { String } value 字典编号 if (this.selectIsPayInsuranceIndex !== undefined) {
* @return { String } 对应字典编号信息返回 Reflect.set(
*/ params,
// getNationList(value) { "isPayInsurance",
// const index = this.nationList.findIndex(item => item.dataDictionary === value); this.selectIsPayInsuranceIndex !== undefined
// if (index > -1) { ? this.selectIsPayInsuranceIndex
// this.selectNationListIndex = index; : null
// return this.nationList[index].typeName; );
// } } else {
// return null; Reflect.set(params, "isPayInsurance", null);
// }, }
/** if (this.selectAlertListIndex !== undefined) {
* 字典查询匹配期望岗位 Reflect.set(
* @param { String } jobTypeOne 层级一岗位匹配 params,
* @param { String } jobTypeTwo 层级一岗位匹配 "userAlertStatus",
* @return { String } 对应岗位字符串拼接信息返回 this.alertList[this.selectAlertListIndex].dataDictionary
*/ );
getWithJob(jobTypeOne, jobTypeTwo) { } else {
let withFirstJob = null; Reflect.set(params, "userAlertStatus", null);
let withSeconedJob = null; }
this.jobList.map(item => { // if (this.selectPoliticalOutlookListIndex !== undefined) {
if (item.dataDictionary === jobTypeOne) { // Reflect.set(params, 'isPoliticalOutlook', this.politicalOutlookList[this.selectPoliticalOutlookListIndex].dataDictionary);
withFirstJob = item.typeName; // } else {
item.list.map(lItem => { // Reflect.set(params, 'isPoliticalOutlook', null);
if (lItem.dataDictionary === jobTypeTwo) { // }
withSeconedJob = lItem.typeName; // if (this.selectNationListIndex !== undefined) {
} // Reflect.set(params, 'nation', this.nationList[this.selectNationListIndex].dataDictionary);
}); // } else {
} // Reflect.set(params, 'nation', null);
}); // }
return withSeconedJob || withFirstJob || '-'; // console.log(params);
}, const res = await this.$http.post(url, params);
cancelStatusChange() { const { code, data } = res;
this.statusChange = false; if (code !== 200) {
}, return;
editStatusChange() { } else {
this.statusChange = !this.statusChange; this.$message.success("修改成功");
}, this.init();
async save() { this.cancelStatusChange();
try { }
const url = `${this.$basUrl.member}sysMemberExtend/saveAdditionalInformation`; } catch (error) {
const params = {}; console.log(error);
Reflect.set(params, 'memberId', this.id); }
Reflect.set(params, 'isPower', this.selectIsPowerIndex);
if (this.selectIsPayInsuranceIndex !== undefined) {
Reflect.set(params, 'isPayInsurance', this.selectIsPayInsuranceIndex !== undefined ? this.selectIsPayInsuranceIndex : null);
} else {
Reflect.set(params, 'isPayInsurance', null);
}
if (this.selectAlertListIndex !== undefined) {
Reflect.set(params, 'userAlertStatus', this.alertList[this.selectAlertListIndex].dataDictionary);
} else {
Reflect.set(params, 'userAlertStatus', null);
}
// if (this.selectPoliticalOutlookListIndex !== undefined) {
// Reflect.set(params, 'isPoliticalOutlook', this.politicalOutlookList[this.selectPoliticalOutlookListIndex].dataDictionary);
// } else {
// Reflect.set(params, 'isPoliticalOutlook', null);
// }
// if (this.selectNationListIndex !== undefined) {
// Reflect.set(params, 'nation', this.nationList[this.selectNationListIndex].dataDictionary);
// } else {
// Reflect.set(params, 'nation', null);
// }
// console.log(params);
const res = await this.$http.post(url, params);
const { code, data } = res;
if (code !== 200) {
return;
} else {
this.$message.success('修改成功');
this.init();
this.cancelStatusChange();
}
} catch(error) {
console.log(error);
}
},
} }
} }
};
</script> </script>
<style> <style>
</style> </style>

@ -2,7 +2,7 @@
<div class="userInfoList marginBottom24" :class="{ 'active': statusChange }"> <div class="userInfoList marginBottom24" :class="{ 'active': statusChange }">
<div class="userInfoTitle"> <div class="userInfoTitle">
<span>教育经历</span> <span>教育经历</span>
<span v-if="isSelfSupport === 1" :class="{ 'active': statusChange }" class="handle"> <span v-if="isSelfSupport == 1" :class="{ 'active': statusChange }" class="handle">
<span v-if="statusChange" class="gary" @click="cancelStatusChange"></span> <span v-if="statusChange" class="gary" @click="cancelStatusChange"></span>
<span v-if="!statusChange" class="blue" @click="editStatusChange"></span> <span v-if="!statusChange" class="blue" @click="editStatusChange"></span>
<span v-if="statusChange" class="blue" @click="save"></span> <span v-if="statusChange" class="blue" @click="save"></span>
@ -90,15 +90,15 @@
</div> </div>
<div v-if="!statusChange"> <div v-if="!statusChange">
<div v-for="(item, index) in info" :key="index" class="basicInfoList marginBottom12"> <div v-for="(item, index) in info" :key="index" class="basicInfoList marginBottom12">
<div v-if="info" class="experienceInfo"> <div class="experienceInfo">
<span>{{ item.name || '-' }}</span> <span>{{ item.name || '-' }}</span>
<span class="splitIcon">|</span> <span class="splitIcon">|</span>
<span>{{ item.major || '-' }}</span> <span>{{ item.major || '-' }}</span>
<span class="splitIcon">|</span> <span class="splitIcon">|</span>
<span>{{ item.educationName || '-' }}</span> <span>{{ getEducationName(item.education) }}</span>
<span class="splitIcon">|</span> <span class="splitIcon">|</span>
<span>{{ item.beginDate || '-' }}{{ item.endDate || '-' }}</span> <span>{{ item.beginDate || '-' }}{{ item.endDate || '-' }}</span>
<span v-if="isSelfSupport === 1" class="handle flex"> <span v-if="isSelfSupport == 1" class="handle flex">
<span @click="editItem(index)"> <span @click="editItem(index)">
<img src="../../../assets/user/experienceEditIcon.png" alt="editIcon"> <img src="../../../assets/user/experienceEditIcon.png" alt="editIcon">
</span> </span>
@ -134,8 +134,8 @@ export default {
default: null default: null
}, },
info: { info: {
type: Object, type: Array,
default: null default: []
} }
}, },
data() { data() {
@ -165,12 +165,11 @@ export default {
}, },
created() { created() {
this.defaultInfo = { ...this.inputInfo }; this.defaultInfo = { ...this.inputInfo };
this.init(); // this.init();
}, },
mounted() {}, mounted() {},
methods: { methods: {
init() { init() {
// this.info = null;
this.querySysMemberEdu(); this.querySysMemberEdu();
}, },
// //
@ -183,25 +182,31 @@ export default {
// return; // return;
// } // }
console.info("educationlist", this.info); console.info("educationlist", this.info);
const data = this.info; const data = [...this.info];
this.info = [];
if (data) { if (data) {
data.map(async item => { data.map(async item => {
const educationName = item.education const educationName = item.education
? await this.getEducation(data[0].education) ? await this.getEducation(item.education)
: "-"; : "-";
Reflect.set(item, "educationName", educationName); Reflect.set(item, "educationName", educationName);
}); });
this.inputFirstClick = [true, true, true]; this.inputFirstClick = [true, true, true];
this.info = data; this.info = data;
} }
console.info(this.info[0].educationName);
// } catch (error) { // } catch (error) {
// console.log(error); // console.log(error);
// return '-'; // return '-';
// } // }
}, },
getEducationName(education) {
const educationName = education ? this.getEducation(education) : "-";
return educationName;
},
setDefaultSelectEducation(education) { setDefaultSelectEducation(education) {
const index = this.educationWordList.findIndex( const index = this.educationWordList.findIndex(
item => item.dataDictionary === education item => item.dataDictionary == education
); );
if (index > -1) { if (index > -1) {
this.selectEducationIndex = index; this.selectEducationIndex = index;
@ -212,11 +217,11 @@ export default {
* @param { String } education 对应字典中学历编号 * @param { String } education 对应字典中学历编号
* @return { String } 返回对应学历信息 * @return { String } 返回对应学历信息
*/ */
async getEducation(education) { getEducation(education) {
try { try {
let educationString = "-"; let educationString = "-";
this.educationWordList.map(item => { this.educationWordList.map(item => {
if (item.dataDictionary === education) { if (item.dataDictionary == education) {
educationString = item.typeName; educationString = item.typeName;
} }
}); });
@ -287,7 +292,7 @@ export default {
}, },
checkData() { checkData() {
if (isEmpty(this.inputInfo.name)) return "请输入学校"; if (isEmpty(this.inputInfo.name)) return "请输入学校";
if (this.selectEducationIndex === undefined) return "请选择学历"; if (this.selectEducationIndex == undefined) return "请选择学历";
if (isEmpty(this.inputInfo.beginDate)) return "请选择入学时间"; if (isEmpty(this.inputInfo.beginDate)) return "请选择入学时间";
if (isEmpty(this.inputInfo.endDate)) return "请选择毕业时间"; if (isEmpty(this.inputInfo.endDate)) return "请选择毕业时间";
if (this.inputInfo.beginDate._d > this.inputInfo.endDate._d) if (this.inputInfo.beginDate._d > this.inputInfo.endDate._d)

@ -164,8 +164,8 @@ export default {
default: 1 default: 1
}, },
info: { info: {
type: Object, type: Array,
default: null default: []
} }
}, },
data() { data() {
@ -193,8 +193,8 @@ export default {
}, },
async created() { async created() {
this.defaultInputInfo = { ...this.inputInfo }; this.defaultInputInfo = { ...this.inputInfo };
this.jobList = await this.getJobTypeList("岗位分类"); const jobList = await this.getJobTypeList("岗位分类");
this.jobList = removeEmptyArrays(this.jobList); this.jobList = removeEmptyArrays(jobList);
this.init(); this.init();
}, },
mounted() {}, mounted() {},
@ -226,6 +226,12 @@ export default {
// console.log(error); // console.log(error);
// } // }
}, },
async getEducationName(education) {
const educationName = education
? await this.getEducation(education)
: "-";
return educationName;
},
/** /**
* 字典查询匹配期望岗位 * 字典查询匹配期望岗位
* @param { String } jobTypeOne 层级一岗位匹配 * @param { String } jobTypeOne 层级一岗位匹配

@ -30,7 +30,7 @@
<span v-if="statusChange" class="required">*</span> <span v-if="statusChange" class="required">*</span>
<span>求职状态</span> <span>求职状态</span>
</span> </span>
<span v-if="!statusChange">{{ info && info.jobWantedStatus || '-' }}</span> <span v-if="!statusChange">{{ info && getJobWantedStatus(info.status) || '-' }}</span>
<div v-else> <div v-else>
<a-select <a-select
v-model="selectJobWantedStatusIndex" v-model="selectJobWantedStatusIndex"
@ -54,7 +54,7 @@
<span v-if="statusChange" class="required">*</span> <span v-if="statusChange" class="required">*</span>
<span>意向薪资</span> <span>意向薪资</span>
</span> </span>
<span v-if="!statusChange">{{ info && info.wishSalaryRange || '-' }}</span> <span v-if="!statusChange">{{ info && getSalaryRange(info.salary) || '-' }}</span>
<div v-else> <div v-else>
<a-select <a-select
v-model="selectWishSalaryRangeIndex" v-model="selectWishSalaryRangeIndex"
@ -80,7 +80,7 @@
</span> </span>
<span <span
v-if="!statusChange" v-if="!statusChange"
>{{ info && info.provinceCode ? getWorkCity(cityList, info.provinceCode, info.cityCode, info.districtCode) : '-' }}</span> >{{ info && info.provinceCode ? getWorkCity(cityList, info.provinceCode, info.cityCode, info.districtCode) || '-' : '-' }}</span>
<div v-if="statusChange" class="cascaderOut"> <div v-if="statusChange" class="cascaderOut">
<a-cascader <a-cascader
v-model="addressCodeList" v-model="addressCodeList"
@ -104,7 +104,7 @@
<span v-if="statusChange" class="required">*</span> <span v-if="statusChange" class="required">*</span>
<span>意向岗位</span> <span>意向岗位</span>
</span> </span>
<span v-if="!statusChange">{{ info && info.wishJob || '-' }}</span> <span v-if="!statusChange">{{ info && getWithJob(info.jobTypeOne, info.jobTypeTwo) || '-' }}</span>
<div v-else> <div v-else>
<a-cascader <a-cascader
v-model="wishJobCodeList" v-model="wishJobCodeList"
@ -128,7 +128,12 @@
<span v-if="statusChange" class="required">*</span> <span v-if="statusChange" class="required">*</span>
<span>期望行业</span> <span>期望行业</span>
</span> </span>
<span v-if="!statusChange">{{ info && info.laborType || '-' }}</span> <span v-if="!statusChange">
{{ info && getLaborType(
info.laborTypeOne,
info.laborTypeTwo
) || '-' }}
</span>
<div v-else> <div v-else>
<a-cascader <a-cascader
v-model="selectLaborTypeItem" v-model="selectLaborTypeItem"
@ -152,7 +157,11 @@
<span v-if="statusChange" class="required">*</span> <span v-if="statusChange" class="required">*</span>
<span>工作性质</span> <span>工作性质</span>
</span> </span>
<span v-if="!statusChange">{{ info && info.jobCategory || '-' }}</span> <span v-if="!statusChange">
{{ info && getJobCategory(
info.jobCategory ? info.jobCategory.toString() : null
) || '-' }}
</span>
<div v-else> <div v-else>
<a-select <a-select
v-model="selecJobCategoryIndex" v-model="selecJobCategoryIndex"
@ -223,7 +232,7 @@ export default {
this.laborTypeList = removeEmptyArrays(this.laborTypeList); this.laborTypeList = removeEmptyArrays(this.laborTypeList);
this.jobCategoryList = await this.getJobLightspotLabel("工作性质"); this.jobCategoryList = await this.getJobLightspotLabel("工作性质");
await this.getCityList(); await this.getCityList();
this.init(); // this.init();
}, },
mounted() {}, mounted() {},
methods: { methods: {

@ -98,7 +98,7 @@ export default {
}; };
}, },
created() { created() {
this.init(); // this.init();
}, },
mounted() {}, mounted() {},
methods: { methods: {

@ -104,7 +104,7 @@ export default {
}; };
}, },
created() { created() {
this.init(); // this.init();
}, },
mounted() {}, mounted() {},
methods: { methods: {

@ -88,28 +88,28 @@
:educationWordList="educationWordList" :educationWordList="educationWordList"
:info="eduExperienceInfo" :info="eduExperienceInfo"
/> />
<div v-if="platform == 'employ'" class="dashline marginBottom8"/> <div v-if="isSelfSupport == 1" class="dashline marginBottom8"/>
<!-- AdditionalInformation补充信息 --> <!-- AdditionalInformation补充信息 -->
<AdditionalInformation <AdditionalInformation
v-if="platform == 'employ'" v-if="isSelfSupport == 1"
:id="vipID" :id="vipID"
:isSelfSupport="isSelfSupport" :isSelfSupport="isSelfSupport"
/> />
<!-- PersonnelCategoryList人员类别 --> <!-- PersonnelCategoryList人员类别 -->
<PersonnelCategoryList <PersonnelCategoryList
v-if="platform == 'employ'" v-if="isSelfSupport == 1"
:id="vipID" :id="vipID"
:isSelfSupport="isSelfSupport" :isSelfSupport="isSelfSupport"
/> />
<!-- TrainingIntention 培训意向--> <!-- TrainingIntention 培训意向-->
<TrainingIntention <TrainingIntention
v-if="platform == 'employ'" v-if="isSelfSupport == 1"
:id="vipID" :id="vipID"
:isSelfSupport="isSelfSupport" :isSelfSupport="isSelfSupport"
/> />
<!-- EntrepreneurialIntention 创业意向--> <!-- EntrepreneurialIntention 创业意向-->
<EntrepreneurialIntention <EntrepreneurialIntention
v-if="platform == 'employ'" v-if="isSelfSupport == 1"
:id="vipID" :id="vipID"
:isSelfSupport="isSelfSupport" :isSelfSupport="isSelfSupport"
/> />
@ -221,6 +221,7 @@ export default {
async mounted() { async mounted() {
try { try {
this.educationWordList = await this.getJobLightspotLabel("学历分类"); this.educationWordList = await this.getJobLightspotLabel("学历分类");
console.info("educationWordList", this.educationWordList);
} catch (error) { } catch (error) {
console.log("error", error); console.log("error", error);
} }

@ -35,16 +35,16 @@ export const getWorkCity = (cityRes, province, city, area) => {
const addressList = []; const addressList = [];
if (cityRes && province) { if (cityRes && province) {
for (let provinceItem of cityRes) { for (let provinceItem of cityRes) {
if (provinceItem.code == province) { if (provinceItem.code.substr(0, 6) == province) {
addressList.push(provinceItem.name); addressList.push(provinceItem.name);
} }
if (city) { if (city) {
for (let cityItem of provinceItem.list) { for (let cityItem of provinceItem.list) {
if (cityItem.code == city) { if (cityItem.code.substr(0, 6) == city) {
addressList.push(cityItem.name); addressList.push(cityItem.name);
if (area) { if (area) {
for (let areaItem of cityItem.list) { for (let areaItem of cityItem.list) {
if (areaItem.code == area) { if (areaItem.code.substr(0, 6) == area) {
addressList.push(areaItem.name); addressList.push(areaItem.name);
} }
} }

Loading…
Cancel
Save