liwei19941102 il y a 2 ans
Parent
commit
9c6edf5903
1 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. 7 7
      src/views/yunying/kdg/index.vue

+ 7 - 7
src/views/yunying/kdg/index.vue

@@ -501,13 +501,13 @@
         proxy.$refs.videoPlayer.initVideo(videoData.value[0].code)
         proxy.$refs.videoPlayer.initVideo(videoData.value[0].code)
       }, 100);
       }, 100);
     }
     }
-    // for (var index in boxData.value) {
-    //   if (boxData.value[index].box_name == value) {
-    //     //  console.log(boxData.value[index].box_lock_address)
-    //     openBox(value, boxData.value[index].box_lock_address);
-    //   }
-    // }
-    // ElMessage.success(value + "号柜远程开启成功");
+    for (var index in boxData.value) {
+      if (boxData.value[index].box_name == value) {
+        //  console.log(boxData.value[index].box_lock_address)
+        openBox(value, boxData.value[index].box_lock_address);
+      }
+    }
+    ElMessage.success(value + "号柜远程开启成功");
   }
   }
 
 
   const initData = async () => {
   const initData = async () => {