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 = '';
}
},