//历史10天日期
format:function(time, format){
var t = new Date(time);
var tf =function(i){
return (i<10?'0':'')+i;
};
return format.replace(/yyyy|MM|dd/g, function(a){
switch(a){
case 'yyyy':
return tf(t.getFullYear());
case 'MM':
return tf(t.getMonth()+1);
case 'dd':
return tf(t.getDate());
}
});
},
const mintmes=(new Date().getTime() - 9 * 1000 * 24 * 60 * 60)
myTime = this.format(mintmes,'yyyy-MM-dd')
this.minDate=new Date(myTime)