telephone-clients 3.0.104-39 → 3.0.104-40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -142,8 +142,6 @@
|
|
|
142
142
|
};
|
|
143
143
|
this.$webSocket.onCallState = (event) => {
|
|
144
144
|
console.log('国信websocaket返回得数据:')
|
|
145
|
-
console.log(event)
|
|
146
|
-
console.log(JSON.stringify(event))
|
|
147
145
|
const json = event;
|
|
148
146
|
// 弹屏通知
|
|
149
147
|
const id = json.id;
|
|
@@ -181,16 +179,16 @@
|
|
|
181
179
|
}
|
|
182
180
|
this.showip = !this.showip
|
|
183
181
|
},
|
|
184
|
-
created() {
|
|
185
|
-
|
|
186
|
-
},
|
|
182
|
+
// created() {
|
|
183
|
+
// window.addEventListener('beforeunload', this.handleBeforeUnload);
|
|
184
|
+
// },
|
|
187
185
|
methods: {
|
|
188
|
-
handleBeforeUnload(){
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
},
|
|
186
|
+
// handleBeforeUnload(){
|
|
187
|
+
// if(this.$webSocket){
|
|
188
|
+
// this.zhimang();
|
|
189
|
+
// this.$webSocket.closeWebsocket()
|
|
190
|
+
// }
|
|
191
|
+
// },
|
|
194
192
|
changeGroup(){
|
|
195
193
|
let name = this.groupName == '话务分组' ? '值班分组':'话务分组'
|
|
196
194
|
this.$showMessage(`确定要更改分组为${name}吗?`, ['confirm', 'cancel']).then(res=>{
|
|
@@ -315,13 +313,20 @@
|
|
|
315
313
|
}
|
|
316
314
|
},
|
|
317
315
|
},
|
|
318
|
-
|
|
316
|
+
destroyed () {
|
|
319
317
|
//国信置忙代表登出
|
|
320
318
|
if(this.$webSocket){
|
|
321
319
|
this.zhimang();
|
|
322
320
|
this.$webSocket.closeWebsocket()
|
|
323
321
|
}
|
|
324
|
-
}
|
|
322
|
+
},
|
|
323
|
+
// beforeDestroy() {
|
|
324
|
+
// //国信置忙代表登出
|
|
325
|
+
// if(this.$webSocket){
|
|
326
|
+
// this.zhimang();
|
|
327
|
+
// this.$webSocket.closeWebsocket()
|
|
328
|
+
// }
|
|
329
|
+
// }
|
|
325
330
|
}
|
|
326
331
|
</script>
|
|
327
332
|
<style lang="less">
|
|
@@ -104,11 +104,13 @@ import ReconnectingWebSocket from './reconnecting-websocket.min'
|
|
|
104
104
|
|
|
105
105
|
// 发送消息给服务器
|
|
106
106
|
function wsMsgSend(msg) {
|
|
107
|
+
console.log('国信发送订阅1')
|
|
107
108
|
if (!window.WebSocket) {
|
|
108
109
|
return;
|
|
109
110
|
}
|
|
110
|
-
|
|
111
|
+
console.log('国信发送订阅2')
|
|
111
112
|
if (self.socket.readyState == WebSocket.OPEN) {
|
|
113
|
+
console.log('国信发送订阅3')
|
|
112
114
|
// //tag;
|
|
113
115
|
self.socket.send(msg);
|
|
114
116
|
}
|