Parcourir la source

视屏墙更新

lxh il y a 8 mois
Parent
commit
28750eec32
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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) {
 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--------')
   console.log(type, 'type--------')
   switch (type) {
   switch (type) {
     case 'pulping'://注浆
     case 'pulping'://注浆