initWebsocketRydw(id) {
console.log('123jia', id)
if (id) {
//rocess.env.VUE_APP_BASE_WEBSCOKET_RYDW 为
this.Socket = new WebSocket(process.env.VUE_APP_BASE_WEBSCOKET_RYDW + '/' + id)
// this.Socket.onopen = res => {
// console.log('scoket打开成功', res)
// }
// this.Socket.onclose = res => {
// console.log('Socket已关闭!')
// }
// console.log('11', this.Socket.readyState)
// var _this = this
// this.Socket.addEventListener('open', function() {
// _this.Socket.send(JSON.stringify({ type: 11 }))
// })
// this.Socket.onmessage = res => {
// const data = JSON.parse(res.data)
// if (data.type === 11) {
// console.log('11jiajia', data)
// _this.peopleInfo = data.data
// // this.totalCount = data.data.allNum
// // this.areaData = data.data.groupList
// // _this.toPage()
// }
// }
// this.Socket.onerror = res => {
// this.initWebsocketRydw(11)
// }
} else {
// this.Socket.close()
}
},