Browse Source

修复调用错误

master
453530270@qq.com 2 years ago
parent
commit
cd4faea3c5
  1. 19
      src/views/WhView.vue

19
src/views/WhView.vue

@ -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>
Loading…
Cancel
Save