dedsudiyu 1 рік тому
батько
коміт
c69782567f
1 змінених файлів з 8 додано та 1 видалено
  1. 8 1
      src/views/newEvacuationBigData.vue

+ 8 - 1
src/views/newEvacuationBigData.vue

@@ -149,8 +149,9 @@
                        v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
                        :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
                   <img style="cursor: pointer;z-index:999;position: absolute;bottom:2px;right:2px;width:14px;height:36px;"
+                       v-if="item.subBottle"
                        @click.stop="(event)=>lookGasBottle(event,item)"
-                       :src="gasBottleAlarm_a">
+                       :src="item.planType?gasBottleAlarm_b:gasBottleAlarm_a">
                   <!--实验室人数-->
                   <!--<div v-if="item.online!=null" class="user-num-box" :class="item.doorList[0].toward == 'top'?'user-num-two':'user-num-one'">-->
                     <!--<img src="@/assets/ZDimages/bigData3_2/icon_pmt_ry.png">-->
@@ -1981,8 +1982,11 @@
             let roomList = [];
             for(let o=0;o<self.mapList.length;o++){
               if(self.mapList[o].type == 1){
+                let num = 0;
                 for(let i=0;i<newList.length;i++){
                   if(newList[i].subId == self.mapList[o].subId){
+                    self.mapList[o].planType = true;
+                    num++
                     roomList.push(
                       {
                         buildId : self.mapList[o].buildId,
@@ -2004,6 +2008,9 @@
                     );
                   }
                 }
+                if(num == 0){
+                  self.mapList[o].planType = false;
+                }
                 /*
                 if(num != 0){
                   self.mapList[o].planType = true;