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