时间相关转换
Timestamp(date,type) {
const zeroDate = new Date(date);
if(type === 'startTime'){
zeroDate.setHours(0, 0, 0, 0);
}
if(type === 'endTime'){
zeroDate.setHours(23, 59, 59, 999);
}
return zeroDate.getTime();
},
//**时间戳转时间*/
timestampToTime(timestamp,type) {
if(!timestamp){
return '';
}
var date = new Date(timestamp)
var Y = date.getFullYear() + '-'