diff --git a/src/views/WhView.vue b/src/views/WhView.vue index 09ab4c5..7c1324d 100644 --- a/src/views/WhView.vue +++ b/src/views/WhView.vue @@ -375,21 +375,18 @@ export default { this.libinfoData() // websocket - this.getsckdata() + // this.getsckdata() }, methods: { // 三馆人数概况 sgrsStat() { - homeApi.allGroupNum({ type: 2 }).then(res => { - const tdata = res.data.returnData; - this.tdjg = tdata.day.noRepeatInNum - this.tmjg = tdata.month.noRepeatInNum - this.tyjg = tdata.year.noRepeatInNum - }); homeApi.tsgTrends().then(res => { const tdata = res.data.data; - + // 总计进馆情况 + this.tdjg = tdata.today.incount + this.tmjg = tdata.month.incount + this.tyjg = tdata.year.incount // //24小时的情况 const sgdata = tdata.hour24 this.gktsg = sgdata[0].incount @@ -1086,8 +1083,8 @@ export default { }, }, - beforeUnmount() { - hws.close(); - } + // beforeUnmount() { + // hws.close(); + // } } \ No newline at end of file