|
@@ -115,13 +115,15 @@ async function onClick(node) {
|
|
|
selected.isFolder = node.isFolder;
|
|
|
if (node.pid != 'root') {
|
|
|
if (node.isFolder) {
|
|
|
- let types
|
|
|
+ let types, devicetype
|
|
|
if (node.itemValue.indexOf('&') != -1) {
|
|
|
types = node.itemValue.substring(node.itemValue.indexOf('&') + 1)
|
|
|
+ devicetype = node.itemValue.substring(0, node.itemValue.indexOf('&'))
|
|
|
} else {
|
|
|
types = ''
|
|
|
+ devicetype = ''
|
|
|
}
|
|
|
- let res = await getDevice({ ids: types })
|
|
|
+ let res = await getDevice({ ids: types, devicetype: devicetype })
|
|
|
if (res.msgTxt.length != 0) {
|
|
|
res.msgTxt[0].datalist.forEach(el => {
|
|
|
el.pid = node.id
|
|
@@ -140,7 +142,7 @@ async function onClick(node) {
|
|
|
await getVideoAddrs()
|
|
|
getVideo()
|
|
|
} else {
|
|
|
- await getVideoAddrsSon(node.deviceID)
|
|
|
+ await getVideoAddrsSon(node.deviceID)
|
|
|
getVideo()
|
|
|
}
|
|
|
|