|
@@ -94,21 +94,24 @@
|
|
|
<VueDragResize
|
|
|
v-if="item.type===5"
|
|
|
:isActive="item.isActive"
|
|
|
- :w="40"
|
|
|
- :h="170"
|
|
|
+ :w="item.imgWidth"
|
|
|
+ :h="item.imgHeight"
|
|
|
:minh="20"
|
|
|
+ :minw="20"
|
|
|
:x="item.imgXPosition"
|
|
|
:y="item.imgYPosition"
|
|
|
:isDraggable="item.isActive"
|
|
|
:isResizable="item.isActive"
|
|
|
:stickSize="5"
|
|
|
+ @resizestop="resizeImg"
|
|
|
+ @resizing="handleOpt(item)"
|
|
|
@dragging="handleOpt(item)"
|
|
|
@dragstop="resizeImg">
|
|
|
<a-tooltip>
|
|
|
<template slot="title">
|
|
|
{{ item.description }} <br />
|
|
|
</template>
|
|
|
- <LiquidLevel :value="{result:50,high:100}" />
|
|
|
+ <LiquidLevel :value="{result:50,high:100}" :width="item.imgWidth" :height="item.imgHeight" />
|
|
|
</a-tooltip>
|
|
|
</VueDragResize>
|
|
|
</div>
|
|
@@ -217,7 +220,6 @@ export default {
|
|
|
xposition: newRect.left,
|
|
|
yposition: newRect.top
|
|
|
}
|
|
|
- console.log('1222222..........................')
|
|
|
if (params.id != null) {
|
|
|
updateRemoteOpc(params).then(res => {
|
|
|
console.log(res)
|
|
@@ -229,12 +231,17 @@ export default {
|
|
|
console.log(newRect)
|
|
|
const params = {
|
|
|
...this.optDot,
|
|
|
+ imgHeight: newRect.height,
|
|
|
+ imgWidth: newRect.width,
|
|
|
imgXPosition: newRect.left,
|
|
|
imgYPosition: newRect.top
|
|
|
}
|
|
|
+ console.log(params)
|
|
|
if (params.id != null) {
|
|
|
updateRemoteOpc(params).then(res => {
|
|
|
console.log(res)
|
|
|
+ this.optDot.imgHeight = newRect.height
|
|
|
+ this.optDot.imgWidth = newRect.width
|
|
|
this.optDot = null
|
|
|
})
|
|
|
}
|