|
|
|
@ -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 |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|