|
|
|
@ -12,12 +12,10 @@
|
|
|
|
|
<div v-if="info" :class="{ 'active': statusChange }" class="basicInfoOut">
|
|
|
|
|
<div>
|
|
|
|
|
<span>用户预警状态:</span>
|
|
|
|
|
<span v-if="!statusChange">
|
|
|
|
|
{{ info.userAlertStatusString || '-' }}
|
|
|
|
|
</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-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>
|
|
|
|
@ -51,15 +49,15 @@
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
</div>-->
|
|
|
|
|
<div>
|
|
|
|
|
<span>是否缴纳社保:</span>
|
|
|
|
|
<span v-if="!statusChange">
|
|
|
|
|
{{ info.isPayInsurance == null ? "-": info.isPayInsurance == 0 ? "否" : "是" }}
|
|
|
|
|
</span>
|
|
|
|
|
<span
|
|
|
|
|
v-if="!statusChange"
|
|
|
|
|
>{{ info.isPayInsurance == null ? "-": info.isPayInsurance == 0 ? "否" : "是" }}</span>
|
|
|
|
|
<div v-else>
|
|
|
|
|
<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">
|
|
|
|
|
<span>{{ item }}</span>
|
|
|
|
|
</a-select-option>
|
|
|
|
@ -68,12 +66,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<span>是否劳动力:</span>
|
|
|
|
|
<span v-if="!statusChange" class="marginLeft12">
|
|
|
|
|
{{ info.isPower == undefined ? "-": info.isPower == 0 ? "否" : "是" }}
|
|
|
|
|
</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-icon slot="suffixIcon" type="caret-down"/>
|
|
|
|
|
<a-select-option v-for="(item, index) in ['否', '是']" :key="index" :value="index">
|
|
|
|
|
<span>{{ item }}</span>
|
|
|
|
|
</a-select-option>
|
|
|
|
@ -82,9 +81,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else class="msgOut">
|
|
|
|
|
<span class="default">
|
|
|
|
|
-
|
|
|
|
|
</span>
|
|
|
|
|
<span class="default">-</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -99,7 +96,7 @@ export default {
|
|
|
|
|
isSelfSupport: {
|
|
|
|
|
type: Number,
|
|
|
|
|
default: 1
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -115,20 +112,19 @@ export default {
|
|
|
|
|
// selectNationListIndex: undefined,
|
|
|
|
|
selectIsPowerIndex: undefined,
|
|
|
|
|
selectIsPayInsuranceIndex: undefined,
|
|
|
|
|
wishJobCodeList: null,
|
|
|
|
|
}
|
|
|
|
|
wishJobCodeList: null
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
async created() {
|
|
|
|
|
this.alertList = await this.getJobLightspotLabel('四色预警');
|
|
|
|
|
this.politicalOutlookList = await this.getJobLightspotLabel('政治面貌');
|
|
|
|
|
this.nationList = await this.getJobLightspotLabel('民族');
|
|
|
|
|
this.alertList = await this.getJobLightspotLabel("四色预警");
|
|
|
|
|
this.politicalOutlookList = await this.getJobLightspotLabel("政治面貌");
|
|
|
|
|
this.nationList = await this.getJobLightspotLabel("民族");
|
|
|
|
|
this.init();
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
},
|
|
|
|
|
mounted() {},
|
|
|
|
|
methods: {
|
|
|
|
|
async init() {
|
|
|
|
|
this.queryAdditionalInformation();
|
|
|
|
|
// this.queryAdditionalInformation();
|
|
|
|
|
},
|
|
|
|
|
// 获取补充信息
|
|
|
|
|
async queryAdditionalInformation() {
|
|
|
|
@ -140,12 +136,22 @@ export default {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (data) {
|
|
|
|
|
Reflect.set(data, 'userAlertStatusString', this.getAlertList(data.userAlertStatus));
|
|
|
|
|
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.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);
|
|
|
|
|
}
|
|
|
|
@ -159,10 +165,12 @@ export default {
|
|
|
|
|
* @return { String } 返回求职字段对应信息
|
|
|
|
|
*/
|
|
|
|
|
getAlertList(value) {
|
|
|
|
|
const index = this.alertList.findIndex(item => item.dataDictionary === value);
|
|
|
|
|
const index = this.alertList.findIndex(
|
|
|
|
|
item => item.dataDictionary === value
|
|
|
|
|
);
|
|
|
|
|
if (index > -1) {
|
|
|
|
|
// this.selectAlertListIndex = index;
|
|
|
|
|
this.$set(this, 'selectAlertListIndex', index);
|
|
|
|
|
this.$set(this, "selectAlertListIndex", index);
|
|
|
|
|
return this.alertList[index].typeName;
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
@ -212,7 +220,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return withSeconedJob || withFirstJob || '-';
|
|
|
|
|
return withSeconedJob || withFirstJob || "-";
|
|
|
|
|
},
|
|
|
|
|
cancelStatusChange() {
|
|
|
|
|
this.statusChange = false;
|
|
|
|
@ -224,17 +232,27 @@ export default {
|
|
|
|
|
try {
|
|
|
|
|
const url = `${this.$basUrl.member}sysMemberExtend/saveAdditionalInformation`;
|
|
|
|
|
const params = {};
|
|
|
|
|
Reflect.set(params, 'memberId', this.id);
|
|
|
|
|
Reflect.set(params, 'isPower', this.selectIsPowerIndex);
|
|
|
|
|
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);
|
|
|
|
|
Reflect.set(
|
|
|
|
|
params,
|
|
|
|
|
"isPayInsurance",
|
|
|
|
|
this.selectIsPayInsuranceIndex !== undefined
|
|
|
|
|
? this.selectIsPayInsuranceIndex
|
|
|
|
|
: null
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
Reflect.set(params, 'isPayInsurance', null);
|
|
|
|
|
Reflect.set(params, "isPayInsurance", null);
|
|
|
|
|
}
|
|
|
|
|
if (this.selectAlertListIndex !== undefined) {
|
|
|
|
|
Reflect.set(params, 'userAlertStatus', this.alertList[this.selectAlertListIndex].dataDictionary);
|
|
|
|
|
Reflect.set(
|
|
|
|
|
params,
|
|
|
|
|
"userAlertStatus",
|
|
|
|
|
this.alertList[this.selectAlertListIndex].dataDictionary
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
Reflect.set(params, 'userAlertStatus', null);
|
|
|
|
|
Reflect.set(params, "userAlertStatus", null);
|
|
|
|
|
}
|
|
|
|
|
// if (this.selectPoliticalOutlookListIndex !== undefined) {
|
|
|
|
|
// Reflect.set(params, 'isPoliticalOutlook', this.politicalOutlookList[this.selectPoliticalOutlookListIndex].dataDictionary);
|
|
|
|
@ -252,18 +270,17 @@ export default {
|
|
|
|
|
if (code !== 200) {
|
|
|
|
|
return;
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.success('修改成功');
|
|
|
|
|
this.$message.success("修改成功");
|
|
|
|
|
this.init();
|
|
|
|
|
this.cancelStatusChange();
|
|
|
|
|
}
|
|
|
|
|
} catch(error) {
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
|
|
</style>
|