whj 1 年間 前
コミット
e6a817c812
2 ファイル変更24 行追加1 行削除
  1. 0 1
      src/views/opc/Opc.vue
  2. 24 0
      src/views/opc/OpcInfo.vue

+ 0 - 1
src/views/opc/Opc.vue

@@ -84,7 +84,6 @@
           <a-tooltip>
             <template slot="title">
               {{ item.description }} <br />
-              液位: 34
             </template>
             <LiquidLevel :value="{value:'34',max:100,label:item.description}" />
           </a-tooltip>

+ 24 - 0
src/views/opc/OpcInfo.vue

@@ -78,6 +78,27 @@
               height="35px">
           </a-tooltip>
         </VueDragResize>
+        <VueDragResize
+          v-if="item.type===5"
+          :isActive="item.isActive"
+          :w="30"
+          :h="120"
+          :minh="20"
+          :x="item.imgXPosition"
+          :y="item.imgYPosition"
+          :isDraggable="item.isActive"
+          :isResizable="item.isActive"
+          :stickSize="5"
+          @dragging="handleOpt(item)"
+          @dragstop="resizeImg">
+          <a-tooltip>
+            <template slot="title">
+              {{ item.description }} <br />
+              液位: 34
+            </template>
+            <LiquidLevel :value="{value:'34',max:100,label:item.description}" />
+          </a-tooltip>
+        </VueDragResize>
       </div>
     </div>
     <!-- <a-drawer
@@ -129,6 +150,8 @@
 
 <script>
 import VueDragResize from 'vue-drag-resize'
+import LiquidLevel from '@/components/LiquidLevel'
+
 import { getSbPositionTree, fetchSbPosition, querySbPosition } from '@/api/sb/position'
 import {
   updateRemoteOpc,
@@ -143,6 +166,7 @@ export default {
   components: {
     RemoteOpcList,
     VueDragResize,
+    LiquidLevel,
     RemoteOpcWarn,
     Detail,
     DetailLog