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

添加填写信息-年级字段

parent f84443d7
...@@ -679,6 +679,22 @@ ...@@ -679,6 +679,22 @@
用清晰、简洁的语言介绍自己对科学和创新的兴趣、经验和动机,以及为什么希望参加“强国有我”复旦大学信息科学与工程学院青少年科学营 用清晰、简洁的语言介绍自己对科学和创新的兴趣、经验和动机,以及为什么希望参加“强国有我”复旦大学信息科学与工程学院青少年科学营
</div> </div>
</el-col> </el-col>
<!-- 班级 -->
<el-col :span="12" v-show="configJson.class == 1">
<el-form-item
label="班级"
prop="class"
style="height: 73px"
>
<el-input
clearable
placeholder="班级"
ref="class"
size="small"
v-model="referForm.class"
/>
</el-form-item>
</el-col>
</el-row> </el-row>
<!-- 紧急联系人--> <!-- 紧急联系人-->
<div <div
...@@ -1029,6 +1045,7 @@ ...@@ -1029,6 +1045,7 @@
past_medical_history: null, past_medical_history: null,
note_other: null, note_other: null,
clothes_size: null, clothes_size: null,
class: null,
emergency: null, emergency: null,
emergency_phone: null, emergency_phone: null,
introduce: null, introduce: null,
...@@ -1152,6 +1169,13 @@ ...@@ -1152,6 +1169,13 @@
trigger: "blur", trigger: "blur",
}, },
], ],
class: [
{
required: true,
message: "班级不能为空!",
trigger: "blur",
},
],
emergency: [ emergency: [
{ {
required: true, required: true,
...@@ -1523,6 +1547,7 @@ ...@@ -1523,6 +1547,7 @@
past_medical_history: null, past_medical_history: null,
note_other: null, note_other: null,
clothes_size: null, clothes_size: null,
class:null,
emergency: null, emergency: null,
emergency_phone: null, emergency_phone: null,
introduce: null, introduce: null,
...@@ -2072,6 +2097,9 @@ ...@@ -2072,6 +2097,9 @@
if (_this.configJson.noteOther == 1) { if (_this.configJson.noteOther == 1) {
obj.note_other = _this.referForm.note_other; obj.note_other = _this.referForm.note_other;
} }
if (_this.configJson.class == 1) {
obj.class = _this.referForm.class;
}
if (_this.configJson.emergency == 1) { if (_this.configJson.emergency == 1) {
obj.emergency = _this.referForm.emergency; obj.emergency = _this.referForm.emergency;
} }
...@@ -2102,6 +2130,7 @@ ...@@ -2102,6 +2130,7 @@
if (_this.configJson.code == 1) { if (_this.configJson.code == 1) {
obj.code = _this.referForm.code; obj.code = _this.referForm.code;
} }
console.log(obj)
setAccount(obj).then((res) => { setAccount(obj).then((res) => {
console.log(res) console.log(res)
if (res.data.code != 200) { if (res.data.code != 200) {
......
...@@ -17,14 +17,14 @@ ...@@ -17,14 +17,14 @@
// export const SERVER_WS_URL = "wss://apiy.thuers.com"; // websocket // export const SERVER_WS_URL = "wss://apiy.thuers.com"; // websocket
// 测试 // 测试
// export const SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; // 正式环境 export const SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; // 正式环境
// export const DEVELOPMENT_SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; //开发环境 export const DEVELOPMENT_SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; //开发环境
// export const SERVER_WS_URL = "wss://tgwapi.campcenter.cn"; // websocket export const SERVER_WS_URL = "wss://tgwapi.campcenter.cn"; // websocket
// 正式 // 正式
export const SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; // 正式环境 // export const SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; // 正式环境
export const DEVELOPMENT_SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; //开发环境 // export const DEVELOPMENT_SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; //开发环境
export const SERVER_WS_URL = "wss://gwapi.campcenter.cn"; // websocket // export const SERVER_WS_URL = "wss://gwapi.campcenter.cn"; // websocket
// 测试 // 测试
// export const SERVER_URL = "http:// 8088/modules-campsite"; // 正式环境 // export const SERVER_URL = "http:// 8088/modules-campsite"; // 正式环境
......
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