Commit 098b7b29 authored by 杨梦雪's avatar 杨梦雪

11

parent 2477282f
......@@ -15,6 +15,7 @@
<el-form-item
label="姓名"
prop="name"
style="height: 73px"
:rules="
configJson.name == 1 ? referInfoRules.name : [{ required: false }]
"
......@@ -55,6 +56,7 @@
<el-form-item
label="年龄"
prop="age"
style="height: 73px"
:rules="
configJson.age == 1 ? referInfoRules.age : [{ required: false }]
"
......@@ -69,7 +71,7 @@
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-col :span="12">
<el-form-item label="国籍" prop="country">
<el-select
v-model="referForm.country"
......@@ -86,7 +88,7 @@
</el-option>
</el-select>
</el-form-item>
</el-col> -->
</el-col>
<!-- <el-col :span="12">
<el-form-item label="入学年份" prop="start_school_date">
<el-row :gutter="20"> -->
......@@ -132,6 +134,7 @@
<el-form-item
label="身份证号"
prop="id_card"
style="height: 73px"
:rules="
configJson.idCard == 1
? referInfoRules.id_card
......@@ -724,7 +727,7 @@ export default {
education: null,
birthday: null,
jiguan_code: null,
// address: null,
address: null,
country: null,
nation: null,
start_school_date: null,
......@@ -1403,34 +1406,64 @@ export default {
this.scrollView(object);
return false;
}
let code = this.$store.state.indexIdentity;
let _this = this;
let obj = {};
if (this.configJson.name == 1) {
obj.name = _this.referForm.name;
}
if (this.configJson.gender == 1) {
obj.gender = _this.referForm.gender;
}
if (this.configJson.idCard == 1) {
obj.id_card = _this.referForm.id_card;
}
if (this.configJson.age == 1) {
obj.age = _this.referForm.age;
}
if (this.configJson.education == 1) {
obj.education = _this.referForm.education;
// obj.address = _this.referForm.address;
}
if (this.configJson.postAddress == 1) {
obj.address = _this.referForm.address;
}
if (this.configJson.country == 1) {
obj.country = _this.referForm.country;
}
if (this.configJson.nation == 1) {
obj.nation = _this.referForm.nation;
}
if (this.configJson.phone == 1) {
obj.phone = _this.referForm.phone;
obj.unit_and_identity = _this.referForm.unit_and_identity;
}
if (this.configJson.unitandIdentity == 1) {
obj.unit_and_identity = _this.referForm.companyName;
}
if (this.configJson.email == 1) {
obj.email = _this.referForm.email;
obj.school_province = _this.jgProvinceCode;
obj.school_city = _this.jiguan_city;
}
if (this.configJson.jiguanCity == 1) {
obj.jiguan_code = _this.referForm.jiguan_code;
}
if (this.configJson.recommend == 1) {
obj.recommend = _this.referForm.recommend;
if (
code != "6c6884d1c83040ee8ca17736a8d67b93" &&
code != "479205eb2dbf48fcbbeaee710a9b9d24"
) {
// if (code != "c432d9028b2840ebbbfd56947b38069b") {
}
if (this.configJson.recommend == 1) {
obj.start_school_date = _this.referForm.start_school_date;
obj.political_status = _this.referForm.political_status;
}
if (this.configJson.birthday == 1) {
obj.birthday = _this.referForm.birthday;
obj.jiguan_code = _this.referForm.jiguan_code;
}
if (this.configJson.school == 1) {
obj.school_province = _this.referForm.school_province;
obj.school_city = _this.referForm.school_city;
obj.school = _this.referForm.school;
}
if (this.configJson.schoolContacts == 1) {
obj.school_contacts = _this.referForm.school_contacts;
}
if (this.configJson.schoolPhone == 1) {
obj.school_phone = _this.referForm.school_phone;
}
setAccount(obj).then((res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment