|
@@ -26,12 +26,12 @@
|
|
|
<uni-forms-item name="studentNo" label="学号" required>
|
|
|
<uni-easyinput placeholder="请填写学号" v-model="formData.studentNo" :inputBorder="false" type="text"></uni-easyinput>
|
|
|
</uni-forms-item>
|
|
|
- <!-- <uni-forms-item name="emergencyContactName" label="紧急联系人姓名" required>
|
|
|
+ <uni-forms-item name="emergencyContactName" label="紧急联系人姓名">
|
|
|
<uni-easyinput placeholder="请填写紧急联系人姓名" v-model="formData.emergencyContactName" :inputBorder="false" type="text"></uni-easyinput>
|
|
|
</uni-forms-item>
|
|
|
- <uni-forms-item name="emergencyContactPhone" label="紧急联系人手机号" required>
|
|
|
+ <uni-forms-item name="emergencyContactPhone" label="紧急联系人手机号">
|
|
|
<uni-easyinput placeholder="请填写紧急联系人手机号" v-model="formData.emergencyContactPhone" :inputBorder="false" type="number"></uni-easyinput>
|
|
|
- </uni-forms-item> -->
|
|
|
+ </uni-forms-item>
|
|
|
</uni-forms>
|
|
|
<view class="f-horizon-center">
|
|
|
<button type="primary" size="default" class="send-button" @click="submit">保 存</button>
|
|
@@ -56,8 +56,8 @@ const formData = ref({ // 必填项目
|
|
|
schoolClassId: null,
|
|
|
schoolClassName: null,
|
|
|
studentNo: null,
|
|
|
- // emergencyContactName: null,
|
|
|
- // emergencyContactPhone: null,
|
|
|
+ emergencyContactName: null,
|
|
|
+ emergencyContactPhone: null,
|
|
|
})
|
|
|
|
|
|
// 获取学生基本信息
|
|
@@ -131,11 +131,7 @@ const formRules = {
|
|
|
},
|
|
|
studentNo: {
|
|
|
rules: [{required: true, errorMessage: '请填写学号' }]
|
|
|
- },
|
|
|
- // emergencyContactName: {
|
|
|
- // rules: [{required: true, errorMessage: '请填写紧急联系人姓名' }]
|
|
|
- // },
|
|
|
- // emergencyContactPhone: mobile,
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const schoolClassIdRef = ref()
|