Browse Source

移除不使用的函数

lite
453530270@qq.com 3 years ago
parent
commit
fd98c27dce
  1. 2
      src/App.vue
  2. 29
      src/views/cultrue/index.vue
  3. 1
      src/views/ty/index.vue

2
src/App.vue

@ -59,7 +59,7 @@ export default {
mounted() {
this.getTimespan();
this.getStat();
this.getWS()
// this.getWS()
},
methods: {
//

29
src/views/cultrue/index.vue

@ -857,33 +857,7 @@ export default {
})
},
//
getTsgInfoDatas() {
let that = this
homeApi.allTsgInfoDatas().then(res => {
// get allTimeData
const tmpdata = res.data.data
// console.log(tmpdata);
// console.log(typeof(tmpdata.today.incount));
// this.todayNum = this.toLocaleString(tmpdata.today.incount)
// this.monthNum = this.toLocaleString(tmpdata.month.incount)
// this.yearNum = this.toLocaleString(tmpdata.year.incount)
// console.log(this.todayNum, this.monthNum, this.yearNum);
// this.day_num = tmpdata.day.noRepeatInNum
// this.week_num_num = tmpdata.week.noRepeatInNum
// this.mon_num = tmpdata.month.noRepeatInNum
// this.year_num = tmpdata.year.noRepeatInNum
// let btdata = new Array();
// let bvdata = new Array();
// tmpdata.foreach(function(item,index){
// console.log(item);
// console.log(index);
// });
});
},
toLocaleString(num) {
const arr = num.toString().split('').reverse()
//
@ -916,6 +890,9 @@ export default {
// console.log(res, '=====');
that.data24h = res.data.data.dvalue;
that.data24hX = res.data.data.dkeys;
// ZONGRENSH
});
});
},

1
src/views/ty/index.vue

@ -938,6 +938,7 @@ export default {
that.weekNum = rtdata.week.noRepeatInNum
that.monthNum = rtdata.month.noRepeatInNum
that.yearNum = rtdata.year.noRepeatInNum
//
});
},

Loading…
Cancel
Save