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

11

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