Commit 49cb4861 authored by 刘斌's avatar 刘斌

fix: 完善校验

parent e75d47cb
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
// noinspection JSUnusedGlobalSymbols // noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import // Generated by unplugin-auto-import
// biome-ignore lint: disable // biome-ignore lint: disable
export {} export {};
declare global { declare global {
const showFailToast: typeof import('vant/es').showFailToast const showFailToast: typeof import('vant/es').showFailToast;
const showSuccessToast: typeof import('vant/es').showSuccessToast const showSuccessToast: typeof import('vant/es').showSuccessToast;
const showToast: typeof import('vant/es').showToast const showToast: typeof import('vant/es').showToast;
} }
...@@ -6,20 +6,20 @@ ...@@ -6,20 +6,20 @@
// Generated by unplugin-vue-components // Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399 // Read more: https://github.com/vuejs/core/pull/3399
export {} export {};
/* prettier-ignore */ /* prettier-ignore */
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
VanButton: typeof import('vant/es')['Button'] VanButton: typeof import('vant/es')['Button'];
VanCellGroup: typeof import('vant/es')['CellGroup'] VanCellGroup: typeof import('vant/es')['CellGroup'];
VanDatePicker: typeof import('vant/es')['DatePicker'] VanDatePicker: typeof import('vant/es')['DatePicker'];
VanField: typeof import('vant/es')['Field'] VanField: typeof import('vant/es')['Field'];
VanForm: typeof import('vant/es')['Form'] VanForm: typeof import('vant/es')['Form'];
VanPicker: typeof import('vant/es')['Picker'] VanPicker: typeof import('vant/es')['Picker'];
VanPopup: typeof import('vant/es')['Popup'] VanPopup: typeof import('vant/es')['Popup'];
VanRadio: typeof import('vant/es')['Radio'] VanRadio: typeof import('vant/es')['Radio'];
VanRadioGroup: typeof import('vant/es')['RadioGroup'] VanRadioGroup: typeof import('vant/es')['RadioGroup'];
VanUploader: typeof import('vant/es')['Uploader'] VanUploader: typeof import('vant/es')['Uploader'];
} }
} }
...@@ -45,12 +45,14 @@ ...@@ -45,12 +45,14 @@
name="ethnicity" name="ethnicity"
label="民族" label="民族"
placeholder="请输入民族" placeholder="请输入民族"
:rules="[{ required: true, message: '请输入民族' }]"
/> />
<van-field <van-field
v-model="form.nativePlace" v-model="form.nativePlace"
name="nativePlace" name="nativePlace"
label="籍贯" label="籍贯"
placeholder="请输入籍贯" placeholder="请输入籍贯"
:rules="[{ required: true, message: '请输入籍贯' }]"
/> />
<van-field <van-field
v-model="form.maritalStatus" v-model="form.maritalStatus"
...@@ -73,9 +75,10 @@ ...@@ -73,9 +75,10 @@
placeholder="请选择政治面貌" placeholder="请选择政治面貌"
readonly readonly
is-link is-link
:rules="[{ required: true, message: '请选择政治面貌' }]"
@click="showPoliticalPicker = true" @click="showPoliticalPicker = true"
/> />
<van-field name="photo" label="照片"> <van-field name="photo" label="照片" :rules="[{ required: true, message: '请上传照片' }]">
<template #input> <template #input>
<van-uploader <van-uploader
v-model="form.photoList" v-model="form.photoList"
...@@ -109,6 +112,7 @@ ...@@ -109,6 +112,7 @@
name="emergencyContact" name="emergencyContact"
label="紧急联系人" label="紧急联系人"
placeholder="请输入紧急联系人" placeholder="请输入紧急联系人"
:rules="[{ required: true, message: '请输入紧急联系人' }]"
/> />
<van-field <van-field
v-model="form.emergencyContactPhone" v-model="form.emergencyContactPhone"
...@@ -129,6 +133,7 @@ ...@@ -129,6 +133,7 @@
rows="2" rows="2"
autosize autosize
placeholder="请输入家庭地址" placeholder="请输入家庭地址"
:rules="[{ required: true, message: '请输入家庭地址' }]"
/> />
<van-field <van-field
v-model="form.householdRegistrationAddress" v-model="form.householdRegistrationAddress"
...@@ -138,6 +143,7 @@ ...@@ -138,6 +143,7 @@
rows="2" rows="2"
autosize autosize
placeholder="请输入户口所在地" placeholder="请输入户口所在地"
:rules="[{ required: true, message: '请输入户口所在地' }]"
/> />
</van-cell-group> </van-cell-group>
......
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