task#14196,data数据目前只有6月份,日期写死6月份
This commit is contained in:
@ -241,8 +241,8 @@ export default {
|
||||
},
|
||||
// 初始化获取当月日期
|
||||
initDate() {
|
||||
this.startTime = dayjs(new Date()).format('YYYY-MM') + '-01'
|
||||
this.endTime = dayjs(new Date()).format('YYYY-MM') + '-' + this.getDayLen()
|
||||
this.startTime = '2024-06-01' //dayjs(new Date()).format('YYYY-MM') + '-01'
|
||||
this.endTime = '2024-06-30'//dayjs(new Date()).format('YYYY-MM') + '-' + this.getDayLen()
|
||||
},
|
||||
// 获取当月天数
|
||||
getDayLen() {
|
||||
@ -364,19 +364,20 @@ export default {
|
||||
statisticsType: 1,
|
||||
supplierId:1128,
|
||||
});
|
||||
// console.log("res", res)
|
||||
this.indexData=res.data;
|
||||
} else if ([1, 2].includes(this.active)) {
|
||||
await getStatisticsKpi({
|
||||
startTime: this.startTime + ' 00:00:00',
|
||||
endTime: this.endTime + ' 23:59:59',
|
||||
statisticsType: 1
|
||||
statisticsType: this.active===1 ? 1 : 2,
|
||||
supplierId:1128,
|
||||
})
|
||||
} else if ([3, 4].includes(this.active)) {
|
||||
await getDriverStatisticsKpi({
|
||||
startTime: this.startTime + ' 00:00:00',
|
||||
endTime: this.endTime + ' 23:59:59',
|
||||
statisticsType: 1
|
||||
statisticsType: this.active===3 ? 1 : 2,
|
||||
supplierId:1128,
|
||||
})
|
||||
} else if ([5, 6, 7, 8, 9].includes(this.active)) {
|
||||
this.detailList = []
|
||||
|
Reference in New Issue
Block a user