图标引用iconfont
https://www.cnblogs.com/zhaozhenzhen/p/10721712.html
字符串时间转换成date并比较
timePare: function(staytime,num){
staytime = staytime.setDate(staytime.getDate()+ num);
staytime = new Date(staytime);
return staytime
},
strToDate: function(value){
let s_date = ""
if(value){
s_date = new Date(Date.parse(value.replace(/-/g, "/")));
}
return s_date
},
ymaDate: function(value){
let yma = ""
if (value){
var year = value.getFullYear();
var month = value.getMonth()+1, month = month < 10 ? '0' + month : month;
var day = value.getDate(), day =day < 10 ? '0' + day : day;
yma = year + '-' + month + '-' + day;
}
return yma
},
进行比较
ymaDate(strToDate(scope.row.notices[0].dt)) === ymaDate(new Date()) ||