From d4c6081f34b6da26bc6e070167d9c24ea2b0af6a Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Mon, 1 Jul 2024 13:41:01 +0800 Subject: [PATCH] =?UTF-8?q?task#14196=EF=BC=8Cdata=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=9B=AE=E5=89=8D=E5=8F=AA=E6=9C=896=E6=9C=88=E4=BB=BD?= =?UTF-8?q?=EF=BC=8C=E6=97=A5=E6=9C=9F=E5=86=99=E6=AD=BB6=E6=9C=88?= =?UTF-8?q?=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/kpi/kpiIndex.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/kpi/kpiIndex.vue b/src/views/kpi/kpiIndex.vue index 4e823763..2d68f164 100644 --- a/src/views/kpi/kpiIndex.vue +++ b/src/views/kpi/kpiIndex.vue @@ -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 = []