function calcCurrentDays(type){
const data = {}
const m = moment().month()+1<10?`0${moment().month()+1}`: moment().month()+1
const y = moment().year()
const d = moment().daysInMonth()
if(type === 'month'){
data.startTime = moment(`${y}${m}01`).format('X')
data.endTime = moment(`${y}${m}${d}`).format('X')
}else if(type === 'week'){
data.startTime = moment().startOf('week').format('X')
data.endTime = moment().endOf('week').format('X')
}else if(type==='year'){
console.log(moment().year())
data.startTime = moment(`${y}0101`).format('X')
data.endTime = moment(`${y}1231`).format('X')
}
console.log(data)
return data
}