|
@@ -4,7 +4,7 @@
|
|
|
<div class="icon" style="right:20px">
|
|
|
<a-button type="primary" icon="appstore" size="large" @click="visibleRight=true" />
|
|
|
</div>
|
|
|
- <div v-if="dotList.length>0">
|
|
|
+ <div v-if="dotList !=null && dotList.length>0">
|
|
|
<VueDragResize
|
|
|
v-for="item in dotList"
|
|
|
:key="item.id"
|
|
@@ -21,14 +21,14 @@
|
|
|
@dragstop="resize">
|
|
|
<a-tooltip>
|
|
|
<template slot="title">
|
|
|
- {{ item.result }}
|
|
|
+ {{ item.result + item.unit }}
|
|
|
</template>
|
|
|
<div class="info" @click="handleInfo(item)"> {{ item.result }}</div>
|
|
|
</a-tooltip>
|
|
|
</VueDragResize>
|
|
|
</div>
|
|
|
<a-drawer
|
|
|
- title="点位配置"
|
|
|
+ title="点位列表"
|
|
|
placement="right"
|
|
|
:closable="false"
|
|
|
:width="350"
|
|
@@ -76,7 +76,6 @@ export default {
|
|
|
components: {
|
|
|
VueDragResize,
|
|
|
BaseChartInfo
|
|
|
-
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -140,9 +139,6 @@ export default {
|
|
|
this.dotList[val].positionFlag = key
|
|
|
},
|
|
|
getOpcInfo () {
|
|
|
- fetchSbPosition({ id: this.positionId }).then(res => {
|
|
|
- this.imgUrl = res.data.opcImg
|
|
|
- })
|
|
|
queryRemoteOpc({ line: this.positionId })
|
|
|
.then((res) => {
|
|
|
this.dotList = res.data
|
|
@@ -152,6 +148,9 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
setTree (record = {}) {
|
|
|
+ fetchSbPosition({ id: this.positionId }).then(res => {
|
|
|
+ this.imgUrl = res.data.opcImg
|
|
|
+ })
|
|
|
getSbPositionTree({ opcFlag: 1 }).then(res => {
|
|
|
this.treeData = res.data
|
|
|
})
|