|
|
@@ -1081,6 +1081,35 @@ export default { |
|
|
|
}, |
|
|
|
//切换时间 |
|
|
|
tabtimetap(index) { |
|
|
|
if (index == 0) { |
|
|
|
this.customtime = [] |
|
|
|
} |
|
|
|
|
|
|
|
if (index == 4) { |
|
|
|
let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; |
|
|
|
let startDate = `${new Date(starTime).getFullYear()}-${ |
|
|
|
new Date(starTime).getMonth() + 1 |
|
|
|
}-${new Date(starTime).getDate()}`; |
|
|
|
let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; |
|
|
|
let endDate = `${new Date(endTime).getFullYear()}-${ |
|
|
|
new Date(endTime).getMonth() + 1 |
|
|
|
}-${new Date(endTime).getDate()}`; |
|
|
|
|
|
|
|
this.customtime = [startDate, endDate]; |
|
|
|
} |
|
|
|
|
|
|
|
if (index == 6) { |
|
|
|
let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 30; |
|
|
|
let startDate = `${new Date(starTime).getFullYear()}-${ |
|
|
|
new Date(starTime).getMonth() + 1 |
|
|
|
}-${new Date(starTime).getDate()}`; |
|
|
|
let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; |
|
|
|
let endDate = `${new Date(endTime).getFullYear()}-${ |
|
|
|
new Date(endTime).getMonth() + 1 |
|
|
|
}-${new Date(endTime).getDate()}`; |
|
|
|
|
|
|
|
this.customtime = [startDate, endDate]; |
|
|
|
} |
|
|
|
this.statDateStart = ""; |
|
|
|
this.statDateEnd = ""; |
|
|
|
this.dateType = index; |
|
|
|