地址问题修复

dev
刘博 2 years ago
parent 986f89262a
commit 0f485b594a

@ -161,6 +161,7 @@
/>
</div>
</div>
<template v-if="platform == 'employ'">
<div>
<span class="flex-c">
<span v-if="statusChange" class="required">*</span>
@ -317,12 +318,17 @@
placeholder="请选择"
>
<a-icon slot="suffixIcon" type="caret-down"/>
<a-select-option v-for="(item, index) in healthStatusList" :key="index" :value="index">
<a-select-option
v-for="(item, index) in healthStatusList"
:key="index"
:value="index"
>
<span>{{ item.typeName }}</span>
</a-select-option>
</a-select>
</div>
</div>
</template>
</div>
<div v-else class="msgOut">
<span class="default">-</span>
@ -343,6 +349,10 @@ export default {
type: Number,
default: 1
},
platform: {
type: String,
default: ""
},
info: {
type: Object,
default: null

@ -10,7 +10,7 @@
</div>
<!-- data 返回未空无法判断是否为空时展示'-' -->
<div :class="{ 'active': statusChange }" class="basicInfoOut">
<div>
<div v-if="platform == 'employ'">
<span class="flex-c">
<span v-if="statusChange" class="required">*</span>
<span>简历名称</span>
@ -183,6 +183,10 @@ export default {
type: Number,
default: 1
},
platform: {
type: String,
default: ""
},
info: {
type: Object,
default: null
@ -236,7 +240,6 @@ export default {
// return;
// }
const data = this.info;
console.info("jobwanted", this.info);
if (data) {
//
const address = getWorkCity(
@ -245,6 +248,7 @@ export default {
data.cityCode,
data.districtCode
);
console.info("jobwanted", this.info, address, this.cityList);
Reflect.set(data, "jobWantedAddress", address);
//
const jobWantedStatus = this.getJobWantedStatus(data.status);

@ -61,6 +61,7 @@
v-if="basicInfo"
:id="vipID"
:isSelfSupport="isSelfSupport"
:platform="platform"
:educationWordList="educationWordList"
:info="basicInfo"
@update="updateSysMemberBase"
@ -70,6 +71,7 @@
v-if="memberIntentionInfo"
:id="vipID"
:isSelfSupport="isSelfSupport"
:platform="platform"
:info="memberIntentionInfo"
/>
<!-- JobExperience工作经历 -->

@ -23,6 +23,15 @@ export const removeEmptyArrays = (data) => {
* @return { String } 为空时返回'-'非空时返回多级省市区串联字符串例如'XXX/XXX/XXX'
*/
export const getWorkCity = (cityRes, province, city, area) => {
if (province && province.length > 6) {
province = province.substr(0, 6)
}
if (city && city.length > 6) {
city = city.substr(0, 6)
}
if (area && area.length > 6) {
area = area.substr(0, 6)
}
const addressList = [];
if (cityRes && province) {
for (let provinceItem of cityRes) {

Loading…
Cancel
Save