mirror of
https://gitee.com/dromara/go-view.git
synced 2025-10-13 22:12:11 +08:00
feat: 告警增加摄像头弹窗
This commit is contained in:
parent
db5fd25c1d
commit
336d4a12d4
@ -224,9 +224,22 @@ const getVideos = (ids: number[]) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const showVideo = (obj: any) => {
|
const showVideo = (obj: any) => {
|
||||||
|
let a: {[k: string]: '' | null | boolean} = {
|
||||||
|
ip: '',
|
||||||
|
port: null,
|
||||||
|
account: '',
|
||||||
|
password: '',
|
||||||
|
channel: '',
|
||||||
|
brand: '',
|
||||||
|
plugin: '',
|
||||||
|
}
|
||||||
|
for(let k in a) {
|
||||||
|
a[k] = obj[k]
|
||||||
|
}
|
||||||
|
a.showForce = true
|
||||||
postMessageToParent({
|
postMessageToParent({
|
||||||
type: 'openVideoV2',
|
type: 'openVideoV2',
|
||||||
data: obj
|
data: a
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user