This commit is contained in:
parent
e897d9de4b
commit
588f026e5f
|
|
@ -1689,6 +1689,7 @@ export default {
|
||||||
this.webSocket = new WebSocket(
|
this.webSocket = new WebSocket(
|
||||||
this.idCardReaderForm.idCardReaderAddress,
|
this.idCardReaderForm.idCardReaderAddress,
|
||||||
)
|
)
|
||||||
|
|
||||||
const _this = this
|
const _this = this
|
||||||
this.webSocket.onopen = function (evt) {
|
this.webSocket.onopen = function (evt) {
|
||||||
console.log('连接成功', evt)
|
console.log('连接成功', evt)
|
||||||
|
|
@ -1780,7 +1781,10 @@ export default {
|
||||||
|
|
||||||
// 断开websocket连接
|
// 断开websocket连接
|
||||||
closeWebSocket() {
|
closeWebSocket() {
|
||||||
this.webSocket.close()
|
if (this.isConnected) {
|
||||||
|
this.webSocket.close()
|
||||||
|
}
|
||||||
|
this.webSocket = null
|
||||||
},
|
},
|
||||||
|
|
||||||
// 人脸照片验证
|
// 人脸照片验证
|
||||||
|
|
@ -1829,7 +1833,6 @@ export default {
|
||||||
})
|
})
|
||||||
|
|
||||||
this.getLotProjectSelectList()
|
this.getLotProjectSelectList()
|
||||||
this.createWebSocket()
|
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
|
|
||||||
|
|
@ -247,6 +247,10 @@ export default {
|
||||||
this.queryDetailsId = ''
|
this.queryDetailsId = ''
|
||||||
this.dialogConfig.outerVisible = true
|
this.dialogConfig.outerVisible = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.addOrEditFormContentRef.createWebSocket()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue