From c418842beff52d3f268a189522de415c0440d9a3 Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Wed, 26 Jul 2023 15:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=B9=B4=E6=9C=88=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/HomeView.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 25b184d..6aa5a79 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -151,9 +151,6 @@ export default { yygra:[], // bwg bwgra:[], - - // 当前请求类型 - crqt:"daily", day_num: 0, week_num: 0, @@ -172,12 +169,11 @@ export default { // }, mounted() { // 客流趋势 - // this.getDataIn() + this.btgetdata(this.klselt) // 各场馆客流趋势 this.getGcgNumDatas() //统计日月年进馆总数 this.getStat(); - // this.getHomeBarData(); this.getInfoDatas(); }, @@ -190,6 +186,7 @@ export default { case 'd': nrq = "daily"; break; case 'm': nrq = "monthly"; break; case 'y': nrq = "yearly"; break; + default:nrq="daily";break; } //return nrq; this.getDataIn(nrq) @@ -197,7 +194,6 @@ export default { // 获取不同时期的数据 getDataIn(reqType){ - //const reqType = this.crqt // btApi.allGroupTimeNum({ 'granularity': reqType }).then(res => { const kldata = res.data.data.allTimeData