lxh hai 8 meses
pai
achega
115648aa69
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/views/vent/monitorManager/camera/index.vue

+ 2 - 2
src/views/vent/monitorManager/camera/index.vue

@@ -158,7 +158,7 @@ async function onClick(node) {
 //点击详情跳转
 function onDetail(node) {
   let str = listArr[0].children.filter(v => v.id == node.pid)[0].itemValue
-  let type=str.indexOf('&')!=-1 ? str.substring(0,str.indexOf('&')) : ''
+  let type = str.indexOf('&') != -1 ? str.substring(0, str.indexOf('&')) : ''
   console.log(type, 'type--------')
   switch (type) {
     case 'pulping'://注浆
@@ -168,7 +168,7 @@ function onDetail(node) {
       router.push('/monitorChannel/monitor-window?id=' + node.deviceID)
       break;
     case 'gate'://自动风门
-      router.push('/monitorChannel/monitor-gate?id=' + node.deviceID)
+      router.push('/monitorChannel/monitor-gate?id=' + node.deviceID + '&deviceType=' + node.deviceType)
       break;
     case 'fanlocal'://局部风机
       router.push('/monitorChannel/monitor-fanlocal?id=' + node.deviceID + '&deviceType=fanlocal')