diff --git a/src/App.vue b/src/App.vue index 84afd47..d29e47e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -64,7 +64,6 @@ export default { mounted() { this.getTimespan(); this.getStat(); - // this.getWS() }, watch: { timeCount: { @@ -121,27 +120,6 @@ export default { } }); }, - getWS(){ - // 假设服务端ip为127.0.0.1 - let ws = new WebSocket("ws://10.97.121.2/ws"); - ws.onopen = function() { - alert("连接成功"); - let aa = { - type: 'allGroupTimeNum', - request: { - granularity: 'daily', - groupsId: '' - } - }; - ws.send(JSON.stringify(aa)); - alert("给服务端发送一个字符串:tom"); - }; - ws.onmessage = function(e) { - console.log(JSON.parse(e.data)); - alert("收到服务端的消息:" + e.data); - }; - console.log(11111) - }, autoChange(){ if(this.currentPage==0){ this.currentPage = 1; diff --git a/src/views/ty/index.vue b/src/views/ty/index.vue index 76ea207..47dea62 100644 --- a/src/views/ty/index.vue +++ b/src/views/ty/index.vue @@ -773,7 +773,7 @@ export default { idArr += "|"+item.groupId; } }) - homeApi.getAllfFlow({groupsId:idArr}).then(res=>{ + homeApi.getAllfFlow({type:1}).then(res=>{ if(!res.data){ return; } @@ -803,7 +803,7 @@ export default { // that.groupsData = []; // 场馆人次占比 - homeApi.allTygGroupTimeNum({groupsId:idArr, granularity:'daily'}).then(res=>{ + homeApi.allTygGroupTimeNum({type:1, granularity:'daily'}).then(res=>{ if(!res.data){ return; } @@ -848,7 +848,7 @@ export default { } }) - homeApi.allGroupNum({granularity:"daily",groupsId:groups}).then(res=>{ + homeApi.allGroupNum({granularity:"daily",type:1}).then(res=>{ if(!res.data){ return; } @@ -878,7 +878,7 @@ export default { } }) // 请求场馆对应的数据 - homeApi.allGcgNumDatas({groupsId:idArr}).then(res=>{ + homeApi.allGcgNumDatas({type:1}).then(res=>{ // console.log(res, '====='); if(!res.data){ return;