|
@@ -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
|