1.dom

<el-form :model="expiredRule" ref="agreementForm" :rules="rules" label-width="114px"> <el-form-item label=" date" prop="expiredRule.expiredAt"> <el-date-picker @focus="getClear" v-model="expiredRule.expiredAt" type="date" Value format=" YYYY-MM-DD HH: MM: SS "placeholder=" Please select expiration date "> </el-date-picker> </el-form-item> </el-form>Copy the code

2. Important: ‘expiredrule. expiredAt’ should be enclosed in quotes

Rules: {' expireDrule. expiredAt': [{required: true, message: 'please select date ', trigger: 'change'}]},Copy the code