//时间戳的处理
filters: {
formatDate:function(value) {
if (!value){
return "---"
}else{
let date = new Date(value);
let month = date.getMonth() + 1;
let hours = date.getHours();
if (hours < 10)
hours = "0" + hours;
let minutes = date.getMinutes();
if (minutes < 10)
minutes = "0" + minutes;
let time = date.getFullYear() + "年" + month + "月" + date.getDate() +
"日" + hours +"点" + minutes +"分" ;
// + hours + ":" + minutes
return time;
}
}
},