iview日期插件的时间格式转换
作者:互联网
<FormItem label="登记时间:">
<DatePicker type="datetimerange" @on-change="timeChange" v-model="time" placeholder="请选择" style="width: 300px"></DatePicker>
</FormItem>
timeChange () {
if (this.time.length && this.time[0] && this.time[1]) {
this.formInline.startDate = parseTime(this.time[0]);
this.formInline.endDate = parseTime(this.time[1]);
} else {
this.formInline.startDate = '';
this.formInline.endDate = '';
}
},
标签:startDate,插件,endDate,parseTime,&&,time,格式,formInline,iview 来源: https://www.cnblogs.com/wssdx/p/11660181.html