赞
踩
<el-form-item label="完结时间" prop="end_at" class="coursename">
<el-date-picker
v-model="ruleForm.end_at"
type="date"
placeholder="请选择完结日期"
class="date"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
>
</el-date-picker>
<el-checkbox label="自动完结"></el-checkbox>
</el-form-item>
end_at: [
{
type: "date",
required: true,
message: "请选择完结日期",
trigger: "change",
},
],
将检验规则中的 type :date改为String或直接去掉
end_at: [
{
type: "String",
required: true,
message: "请选择完结日期",
trigger: "change",
},
],
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。