视频监控
This commit is contained in:
@@ -100,13 +100,20 @@
|
|||||||
if (item.dataType !== 'staticData' && ((item.type.indexOf('Chart') > -1) || item.type === 'display' || item.type === 'table' || item.type === 'summary')) {
|
if (item.dataType !== 'staticData' && ((item.type.indexOf('Chart') > -1) || item.type === 'display' || item.type === 'table' || item.type === 'summary')) {
|
||||||
this.getSourceData(item, index)
|
this.getSourceData(item, index)
|
||||||
}
|
}
|
||||||
if (item.type === 'monitor' && item.monitorType !== 'hik' && item.monitorType !== 'dahua') {
|
if (item.type === 'monitor' && item.monitorType === 'cmcc') {
|
||||||
this.instance.post(`${this.urlPrefix}/appzyvideoequipment/getWebSdkUrl?deviceId=${item.moniterId}`).then(res => {
|
this.instance.post(`${this.urlPrefix}/appzyvideoequipment/getWebSdkUrl?deviceId=${item.moniterId}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$set(this.componentList[index], 'src', JSON.parse(res.data).url)
|
this.$set(this.componentList[index], 'src', JSON.parse(res.data).url)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if (item.type === 'monitor' && item.monitorType === 'slw') {
|
||||||
|
this.instance.post(`${this.urlPrefix}/appzyvideoequipment/getWebSdkUrl?deviceId=${item.moniterId}`).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.$set(this.componentList[index], 'src', res.data)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user