dedsudiyu 2 år sedan
förälder
incheckning
a6d0d8c7d4
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      src/views/newEvacuationBigDataHome.vue

+ 4 - 4
src/views/newEvacuationBigDataHome.vue

@@ -85,8 +85,8 @@
             <i :class="index == monitorType?'el-icon-arrow-up':'el-icon-arrow-down'" @click="getMonitorUrl(index)"></i>
           </div>
           <div class="video-mx-big-box" v-show="index == monitorType"
-               v-for="(videoItem,videoIndex) in videoList" :key="videoIndex">
-            <video class="video-box" :id="videoItem.divId" ref="videoRef" :poster="videoCover"
+               v-for="(videoItem,videoIndex) in item.hardwareList" :key="videoIndex">
+            <video class="video-box" :id="videoItem" ref="videoRef" :poster="videoCover"
                    autoplay controls  muted width="366px" height="210px"></video>
           </div>
         </div>
@@ -762,7 +762,7 @@
             if(urlText.indexOf(localStorage.getItem('ipIdentify')) != -1){
               for(let i=0;i<newData.length;i++){
                 let obj = {
-                  divId:'divId'+i,
+                  divId:newData[i].deviceID,
                   hasAudio:false,
                   height:false,
                   videoUrl:newData[i].ws_flv,
@@ -776,7 +776,7 @@
                 url = url.split("rtp/");
                 let newUrl = text+'rtp/'+url[1];
                 let obj = {
-                  divId:'divId'+i,
+                  divId:newData[i].deviceID,
                   hasAudio:false,
                   height:false,
                   videoUrl:newUrl,