Ver código fonte

视屏墙接口修改-提交

lxh 8 meses atrás
pai
commit
adbec026bb
1 arquivos alterados com 5 adições e 3 exclusões
  1. 5 3
      src/views/vent/monitorManager/camera/index.vue

+ 5 - 3
src/views/vent/monitorManager/camera/index.vue

@@ -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()
     }