const date = new Date()
const year = date.getFullYear()
const month = date.getMonth() + 1
const day = date.getDate()
const date1 = new Date(date - 1000 * 60 * 60 * 24 * 30)
const year1 = date1.getFullYear()
const month1 = date1.getMonth() + 1
const day1 = date1.getDate()
startTime = year1 + "-" + (month1 < 10 ? "0" + month1 : month1) + "-" + (day1 < 10 ? "0" + day1 : day1) // 30天前的日期
endTime = `${year}-${month+1}-${day}` // 当天的日期