|
@@ -68,6 +68,27 @@
|
|
|
<img src="@/assets/green.png" alt="" width="35px" 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
|
|
@@ -119,6 +140,7 @@
|
|
|
|
|
|
<script>
|
|
|
import VueDragResize from 'vue-drag-resize'
|
|
|
+import LiquidLevel from '@/components/LiquidLevel'
|
|
|
import { getSbPositionTree, fetchSbPosition, querySbPosition } from '@/api/sb/position'
|
|
|
import { queryRemoteOpc, updateRemoteOpc } from '@/api/remote/opc'
|
|
|
import BaseChartInfo from './modules/BaseChartInfo.vue'
|
|
@@ -128,6 +150,7 @@ export default {
|
|
|
components: {
|
|
|
VueDragResize,
|
|
|
BaseChartInfo,
|
|
|
+ LiquidLevel,
|
|
|
BaseForm
|
|
|
},
|
|
|
data () {
|