lxh преди 8 месеца
родител
ревизия
28750eec32
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/views/vent/monitorManager/camera/index.vue

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

@@ -157,7 +157,8 @@ async function onClick(node) {
 
 //点击详情跳转
 function onDetail(node) {
-  let type = listArr[0].children.filter(v => v.id == node.pid)[0].itemValue
+  let str = listArr[0].children.filter(v => v.id == node.pid)[0].itemValue
+  let type=str.indexOf('&')!=-1 ? str.substring(0,str.indexOf('&')) : ''
   console.log(type, 'type--------')
   switch (type) {
     case 'pulping'://注浆