问题解决了!
将生日输入的代码: <el-date-picker v-model="formData.Birth" placeholder="请选择" type="datetime" value-format="yyyy-MM-dd HH
ss" v-validate="{data
ormData.Birth,maxLength:10,dataType:'datetime',nullMsg:'患者出生日期不能为空!',ignoreHidden:true}" ></el-date-picker>
改写为:
<el-form-item label="患者出生日期*" >
<el-date-picker
v-model="formData.Birth"
placeholder="请选择"
type="date" value-format="yyyy-MM-dd"
:picker-options="{}"
v-validate="{
data: formData.Birth,
rules: {
required: {
message: '患者出生日期不能为空!',
trigger: 'blur'
},
},
ignoreHidden: true
}"
>