瀏覽代碼

增加就地点位图片z-index=100

hfxc226 2 年之前
父節點
當前提交
2e1b294800
共有 1 個文件被更改,包括 22 次插入2 次删除
  1. 22 2
      src/views/opc/OpcInfo.vue

+ 22 - 2
src/views/opc/OpcInfo.vue

@@ -33,7 +33,7 @@
           </a-tooltip>
         </VueDragResize>
         <VueDragResize
-          v-if="item.type===2"
+          v-if="item.type===2 && item.fetchFlag===1 "
           v-show="item.result===0||item.result===null"
           :isActive="item.isActive"
           :w="35"
@@ -49,7 +49,27 @@
             <template slot="title">
               {{ item.description }}
             </template>
-            <img src="@/assets/stop.png" alt="" width="35px" height="35px">
+            <img src="@/assets/green.png" alt="" width="35px" height="35px">
+          </a-tooltip>
+        </VueDragResize>
+        <VueDragResize
+          v-if="item.type===2 && item.fetchFlag===0 "
+          v-show="item.result===0||item.result===null"
+          :isActive="item.isActive"
+          :w="35"
+          :h="35"
+          :minh="20"
+          :x="item.imgXPosition"
+          :y="item.imgYPosition"
+          :isDraggable="item.isActive"
+          :isResizable="item.isActive"
+          :stickSize="5"
+        >
+          <a-tooltip>
+            <template slot="title">
+              {{ item.description }}
+            </template>
+            <img style="z-index: 100" src="@/assets/stop.png" alt="" width="35px" height="35px">
           </a-tooltip>
         </VueDragResize>
       </div>