GFRS-2561【前端】入司申请页面中增加选择职级的功能-- 提交人:张齐

This commit is contained in:
zhangqi1
2021-07-20 13:08:40 +08:00
parent 0b11c97052
commit d669e8d388

View File

@@ -10,6 +10,17 @@
<p style='border-bottom: 1px solid #ebedf0' class='fs15 fwb pl10 pv12'>个人信息</p> <p style='border-bottom: 1px solid #ebedf0' class='fs15 fwb pl10 pv12'>个人信息</p>
<van-field v-model='userInfo.name' label='姓名' name='姓名' placeholder='请输入' v-validate="'required|name'" <van-field v-model='userInfo.name' label='姓名' name='姓名' placeholder='请输入' v-validate="'required|name'"
clearable /> clearable />
<van-field
:value="userInfo.applGrade | idToText('applGrade')"
v-validate="'required'"
readonly
label='职级'
name='职级'
right-icon='arrow'
placeholder='请选择职级'
@click="toSelect('13')"
/>
<van-field <van-field
:value="userInfo.idType | idToText('idType')" :value="userInfo.idType | idToText('idType')"
v-validate="'required'" v-validate="'required'"
@@ -120,7 +131,7 @@ export default {
idType: '1', //证件类型 idType: '1', //证件类型
idNo: '', //证件号码 idNo: '', //证件号码
mobile: '',//手机号 mobile: '',//手机号
agentGrade: '' applGrade: '' // 职级
}, },
areaList: areaList, areaList: areaList,
token: '', token: '',
@@ -166,7 +177,6 @@ export default {
console.log('response', response); console.log('response', response);
if (response.result == '0') { if (response.result == '0') {
self.recommender = response; self.recommender = response;
this.userInfo.agentGrade = response.agentGrade;
} else { } else {
this.$toast.fail(response.resultMessage); this.$toast.fail(response.resultMessage);
} }
@@ -291,6 +301,8 @@ export default {
if (valueKey) this.valueKey = valueKey; if (valueKey) this.valueKey = valueKey;
if (pickerType == '1') { if (pickerType == '1') {
this.columns = DataDictionary.idType; this.columns = DataDictionary.idType;
} else if (pickerType == '13') {
this.columns = DataDictionary.applGrade;
} }
}, },
// //确认选择字段 // //确认选择字段
@@ -298,6 +310,8 @@ export default {
this.popupShow = false; this.popupShow = false;
if (this.pickerType == '1') { if (this.pickerType == '1') {
this.userInfo.idType = value.id; this.userInfo.idType = value.id;
} else if (this.pickerType == '13') {
this.userInfo.applGrade = value.id;
} }
}, },
getRelatedData(val) { getRelatedData(val) {