Browse Source

修正年月点击不生效的效果

master
453530270@qq.com 3 years ago
parent
commit
c418842bef
  1. 8
      src/views/HomeView.vue

8
src/views/HomeView.vue

@ -151,9 +151,6 @@ export default {
yygra:[], yygra:[],
// bwg // bwg
bwgra:[], bwgra:[],
//
crqt:"daily",
day_num: 0, day_num: 0,
week_num: 0, week_num: 0,
@ -172,12 +169,11 @@ export default {
// }, // },
mounted() { mounted() {
// //
// this.getDataIn() this.btgetdata(this.klselt)
// //
this.getGcgNumDatas() this.getGcgNumDatas()
// //
this.getStat(); this.getStat();
// this.getHomeBarData();
this.getInfoDatas(); this.getInfoDatas();
}, },
@ -190,6 +186,7 @@ export default {
case 'd': nrq = "daily"; break; case 'd': nrq = "daily"; break;
case 'm': nrq = "monthly"; break; case 'm': nrq = "monthly"; break;
case 'y': nrq = "yearly"; break; case 'y': nrq = "yearly"; break;
default:nrq="daily";break;
} }
//return nrq; //return nrq;
this.getDataIn(nrq) this.getDataIn(nrq)
@ -197,7 +194,6 @@ export default {
// //
getDataIn(reqType){ getDataIn(reqType){
//const reqType = this.crqt
// //
btApi.allGroupTimeNum({ 'granularity': reqType }).then(res => { btApi.allGroupTimeNum({ 'granularity': reqType }).then(res => {
const kldata = res.data.data.allTimeData const kldata = res.data.data.allTimeData

Loading…
Cancel
Save