type类型为:datetime
<FormItem label="跟进时间" prop="followTime" class="normal__form--item">
<DatePicker type="datetime" v-model="formValidate.followTime" placeholder="请选择" class="item__form"
format="yyyy-MM-dd HH:mm:ss" @on-change="(value) => formValidate['followTime'] = value"
:editable="false" transfer clearable>
</DatePicker>
</FormItem>
重点加: pattern: /.+/
ruleValidate: {
followTime: [{ required: true, message: '请选择跟进时间', trigger: 'blur', pattern: /.+/ }]
}
编辑的时候需要转换
this.$set(this.formValidate, 'followTime', new Date(this.editRow.followTime))