+
*
简历名称:
@@ -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);
diff --git a/src/components/userinfo/userInfoModal.vue b/src/components/userinfo/userInfoModal.vue
index c5e471c..fcfeddf 100644
--- a/src/components/userinfo/userInfoModal.vue
+++ b/src/components/userinfo/userInfoModal.vue
@@ -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"
/>
diff --git a/src/plugs/utils.js b/src/plugs/utils.js
index 1b24591..d175be2 100644
--- a/src/plugs/utils.js
+++ b/src/plugs/utils.js
@@ -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) {