|
@@ -200,41 +200,6 @@
|
|
</VueDragResize>
|
|
</VueDragResize>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <!-- <a-drawer
|
|
|
|
- title="点位列表"
|
|
|
|
- placement="right"
|
|
|
|
- :closable="false"
|
|
|
|
- :width="350"
|
|
|
|
- :visible="visibleRight"
|
|
|
|
- @close="onCloseRight"
|
|
|
|
- >
|
|
|
|
- <div>
|
|
|
|
- <a-tree-select
|
|
|
|
- style="width: 60%;margin-right:10px;"
|
|
|
|
- :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
|
- :treeData="treeData"
|
|
|
|
- :treeNodeFilterProp="'title'"
|
|
|
|
- :showSearch="true"
|
|
|
|
- v-model="positionId"
|
|
|
|
- placeholder="请选择"
|
|
|
|
- @change="handleChange"
|
|
|
|
- >
|
|
|
|
- </a-tree-select>
|
|
|
|
- </div>
|
|
|
|
- <br>
|
|
|
|
- <a-table
|
|
|
|
- :columns="columns"
|
|
|
|
- :data-source="dotList"
|
|
|
|
- :pagination="{ pageSize: 100 }"
|
|
|
|
- :scroll="{ y: 650 }"
|
|
|
|
- >
|
|
|
|
- <span slot="action" slot-scope="text, record,index">
|
|
|
|
- <a @click="disposition(record,index)">配置</a>
|
|
|
|
- <a-button style="color:#ccc" v-show="record.positionFlag" type="link" icon="eye-invisible" @click="handleShow(index,0)" />
|
|
|
|
- <a-button v-show="!record.positionFlag" type="link" icon="eye" @click="handleShow(index,1)" />
|
|
|
|
- </span>
|
|
|
|
- </a-table>
|
|
|
|
- </a-drawer> -->
|
|
|
|
<div class="btn">
|
|
<div class="btn">
|
|
<a-button-group>
|
|
<a-button-group>
|
|
<a-button @click="back()">返回主页</a-button>
|
|
<a-button @click="back()">返回主页</a-button>
|
|
@@ -250,7 +215,7 @@
|
|
import VueDragResize from 'vue-drag-resize'
|
|
import VueDragResize from 'vue-drag-resize'
|
|
import LiquidLevel from '@/components/LiquidLevel'
|
|
import LiquidLevel from '@/components/LiquidLevel'
|
|
|
|
|
|
-import { getSbPositionTree, fetchSbPosition, querySbPosition } from '@/api/remote/remote-position'
|
|
|
|
|
|
+import { fetchSbPosition } from '@/api/remote/remote-position'
|
|
import {
|
|
import {
|
|
updateRemoteOpc,
|
|
updateRemoteOpc,
|
|
fetchRemoteOpc, queryRemoteOpc, queryRemoteOpcFromRedis
|
|
fetchRemoteOpc, queryRemoteOpc, queryRemoteOpcFromRedis
|
|
@@ -273,8 +238,6 @@ export default {
|
|
return {
|
|
return {
|
|
visibleRight: false,
|
|
visibleRight: false,
|
|
positionId: '',
|
|
positionId: '',
|
|
- treeData: [],
|
|
|
|
- parentId: '',
|
|
|
|
optDot: null,
|
|
optDot: null,
|
|
imgUrl: '',
|
|
imgUrl: '',
|
|
dotList: [],
|
|
dotList: [],
|
|
@@ -294,14 +257,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
- this.parentId = this.$route.query.parentId
|
|
|
|
this.positionId = this.$route.query.line
|
|
this.positionId = this.$route.query.line
|
|
this.getOpcInfo(this.positionId)
|
|
this.getOpcInfo(this.positionId)
|
|
this.getOpcInfoFromRedis(this.positionId)
|
|
this.getOpcInfoFromRedis(this.positionId)
|
|
this.getImg()
|
|
this.getImg()
|
|
- getSbPositionTree().then(res => {
|
|
|
|
- this.treeData = res.data
|
|
|
|
- })
|
|
|
|
this.timer = setInterval(() => {
|
|
this.timer = setInterval(() => {
|
|
this.getOpcInfoFromRedis(this.positionId)
|
|
this.getOpcInfoFromRedis(this.positionId)
|
|
}, 5000)
|
|
}, 5000)
|