From 8a7e27b58fe5a0a4cc140a73cba4394dd259db9a Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 20 Feb 2023 17:09:23 +0800 Subject: [PATCH] bug --- .../AppLearningStatistics/AppLearningStatistics.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/project/qujing/app/AppLearningStatistics/AppLearningStatistics.vue b/project/qujing/app/AppLearningStatistics/AppLearningStatistics.vue index c1982715..813858d2 100644 --- a/project/qujing/app/AppLearningStatistics/AppLearningStatistics.vue +++ b/project/qujing/app/AppLearningStatistics/AppLearningStatistics.vue @@ -233,7 +233,6 @@ methods: { onChange () { - console.log(22) this.getStatisticsKeyData() this.getStatisticsHot() this.getStatisticsUse() @@ -243,8 +242,8 @@ this.instance.post(`/app/appexaminationinfo/statisticsKeyData`, null, { params: { ...this.search1, - beginDate: this.search1.date[0], - endDate: this.search1.date[1], + beginDate: this.search1.date ? this.search1.date[0] : '', + endDate: this.search1.date ? this.search1.date[1] : '', areaId: this.areaId } }).then(res => { @@ -258,8 +257,8 @@ this.instance.post(`/app/appwechatuserqujing/statisticsUse`, null, { params: { ...this.search4, - beginDate: this.search4.date[0], - endDate: this.search4.date[1], + beginDate: this.search4.date ? this.search4.date[0] : '', + endDate: this.search4.date ? this.search4.date[1] : '', areaId: this.areaId } }).then(res => { @@ -276,8 +275,8 @@ size: 20, areaId: this.areaId, type: this.type, - beginDate: this.search2.date[0], - endDate: this.search2.date[1] + beginDate: this.search2.date ? this.search2.date[0] : '', + endDate: this.search2.date ? this.search2.date[1] : '', } }).then(res => { if (res.code == 0) {