|
@@ -240,7 +240,6 @@
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
const DHWsInstance = DHWs.getInstance()
|
|
const DHWsInstance = DHWs.getInstance()
|
|
this.ws = DHWsInstance
|
|
this.ws = DHWsInstance
|
|
- console.log(this.ws)
|
|
|
|
this.ws.addEventListener('connectStateChange', data => {
|
|
this.ws.addEventListener('connectStateChange', data => {
|
|
if (data) {
|
|
if (data) {
|
|
console.log('连接成功')
|
|
console.log('连接成功')
|
|
@@ -340,16 +339,13 @@
|
|
]
|
|
]
|
|
this.setPos()
|
|
this.setPos()
|
|
_this.ws.createCtrl(params).then(res => {
|
|
_this.ws.createCtrl(params).then(res => {
|
|
- console.log(res)
|
|
|
|
this.customizeTree(tvListJson)
|
|
this.customizeTree(tvListJson)
|
|
}).catch(e => {
|
|
}).catch(e => {
|
|
console.log(e)
|
|
console.log(e)
|
|
})
|
|
})
|
|
_this.ws.on('createCtrlResult', (res) => {
|
|
_this.ws.on('createCtrlResult', (res) => {
|
|
- console.log(res)
|
|
|
|
this.customizeTree(tvListJson)
|
|
this.customizeTree(tvListJson)
|
|
_this.ws.on('createCtrlResult', (res) => {
|
|
_this.ws.on('createCtrlResult', (res) => {
|
|
- console.log(res)
|
|
|
|
this.customizeTree(tvListJson)
|
|
this.customizeTree(tvListJson)
|
|
})
|
|
})
|
|
})
|
|
})
|