|
|
@ -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>
|