|
|
@ -375,21 +375,18 @@ export default { |
|
|
this.libinfoData() |
|
|
this.libinfoData() |
|
|
|
|
|
|
|
|
// websocket |
|
|
// websocket |
|
|
this.getsckdata() |
|
|
// this.getsckdata() |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
// 三馆人数概况 |
|
|
// 三馆人数概况 |
|
|
sgrsStat() { |
|
|
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 => { |
|
|
homeApi.tsgTrends().then(res => { |
|
|
const tdata = res.data.data; |
|
|
const tdata = res.data.data; |
|
|
|
|
|
// 总计进馆情况 |
|
|
|
|
|
this.tdjg = tdata.today.incount |
|
|
|
|
|
this.tmjg = tdata.month.incount |
|
|
|
|
|
this.tyjg = tdata.year.incount |
|
|
// //24小时的情况 |
|
|
// //24小时的情况 |
|
|
const sgdata = tdata.hour24 |
|
|
const sgdata = tdata.hour24 |
|
|
this.gktsg = sgdata[0].incount |
|
|
this.gktsg = sgdata[0].incount |
|
|
@ -1086,8 +1083,8 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
beforeUnmount() { |
|
|
// beforeUnmount() { |
|
|
hws.close(); |
|
|
// hws.close(); |
|
|
} |
|
|
// } |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |