Commit e647803b authored by 杨梦雪's avatar 杨梦雪

11

parent c7da49ca
...@@ -155,7 +155,6 @@ ...@@ -155,7 +155,6 @@
v-model="referForm.id_card" v-model="referForm.id_card"
placeholder="填写真实身份证号" placeholder="填写真实身份证号"
size="small" size="small"
:disabled="true" :disabled="true"
/> />
</el-form-item> </el-form-item>
...@@ -965,14 +964,17 @@ export default { ...@@ -965,14 +964,17 @@ export default {
this.fileList = JSON.parse(signUpFile); this.fileList = JSON.parse(signUpFile);
} }
this.getSchool(); this.getSchool();
this.getProAndCity(); // this.getProAndCity();
this.getTenYear(); this.getTenYear();
this.getAccount(); // 页面信息个人获取 this.getAccount(); // 页面信息个人获取
this.configJson = this.$store.state.configJson; this.configJson = this.$store.state.configJson;
if (this.configJson.jiguanCity == 1 || this.configJson.school == 1) {
this.getProAndCity();
}
}, },
watch: { watch: {
referForm(val) { referForm(val) {
// console.log(val, "val"); console.log(val, "val");
for (var k in val) { for (var k in val) {
if (val[k] == null || !val[k]) { if (val[k] == null || !val[k]) {
val[k] = this.referForm[k]; val[k] = this.referForm[k];
...@@ -995,7 +997,11 @@ export default { ...@@ -995,7 +997,11 @@ export default {
this.start_grade = val.start_school_date.slice(5, 8); //年级 this.start_grade = val.start_school_date.slice(5, 8); //年级
} }
//籍贯 //籍贯
if (val.jiguan_city !== null && val.jiguan_province !== null) { if (
val.jiguan_city !== null &&
val.jiguan_province !== null &&
this.configJson.jiguanCity == 1
) {
if (this.referForm.jiguan_city) { if (this.referForm.jiguan_city) {
} }
this.jgProvinceCode = Number(val.jiguan_province); this.jgProvinceCode = Number(val.jiguan_province);
...@@ -1007,7 +1013,8 @@ export default { ...@@ -1007,7 +1013,8 @@ export default {
if ( if (
val.school_province !== null && val.school_province !== null &&
val.school_city !== null && val.school_city !== null &&
val.school !== null val.school !== null &&
this.configJson.school == 1
) { ) {
this.referForm.school_province = Number(val.school_province); this.referForm.school_province = Number(val.school_province);
this.referForm.school_city = Number(val.school_city); this.referForm.school_city = Number(val.school_city);
......
...@@ -12,11 +12,11 @@ ...@@ -12,11 +12,11 @@
// export const SERVER_WS_URL = 'wss://api1.testgate.cn' // websocket // export const SERVER_WS_URL = 'wss://api1.testgate.cn' // websocket
// 正式 // 正式
// export const SERVER_URL = "https://api.campcenter.cn/"; // 正式环境 export const SERVER_URL = "https://api.campcenter.cn/"; // 正式环境
// export const DEVELOPMENT_SERVER_URL = "https://api.campcenter.cn/"; //开发环境 export const DEVELOPMENT_SERVER_URL = "https://api.campcenter.cn/"; //开发环境
// export const SERVER_WS_URL = "wss://api.campcenter.cn"; // websocket export const SERVER_WS_URL = "wss://api.campcenter.cn"; // websocket
// 测试 // 测试
export const SERVER_URL = "https://ying-test.campcenter.cn"; // 正式环境 // export const SERVER_URL = "https://ying-test.campcenter.cn"; // 正式环境
export const DEVELOPMENT_SERVER_URL = "https://ying-test.campcenter.cn/"; //开发环境 // export const DEVELOPMENT_SERVER_URL = "https://ying-test.campcenter.cn/"; //开发环境
export const SERVER_WS_URL = "wss://ying-test.campcenter.cn"; // websocket // export const SERVER_WS_URL = "wss://ying-test.campcenter.cn"; // websocket
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