Parcourir la source

opc: dcs雨水管网单独展示

hfxc226 il y a 1 an
Parent
commit
6d901e8ab1

+ 1 - 42
src/views/opc/OpcInfoYushui.vue

@@ -200,41 +200,6 @@
         </VueDragResize>
       </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">
       <a-button-group>
         <a-button @click="back()">返回主页</a-button>
@@ -250,7 +215,7 @@
 import VueDragResize from 'vue-drag-resize'
 import LiquidLevel from '@/components/LiquidLevel'
 
-import { getSbPositionTree, fetchSbPosition, querySbPosition } from '@/api/remote/remote-position'
+import { fetchSbPosition } from '@/api/remote/remote-position'
 import {
   updateRemoteOpc,
   fetchRemoteOpc, queryRemoteOpc, queryRemoteOpcFromRedis
@@ -273,8 +238,6 @@ export default {
     return {
       visibleRight: false,
       positionId: '',
-      treeData: [],
-      parentId: '',
       optDot: null,
       imgUrl: '',
       dotList: [],
@@ -294,14 +257,10 @@ export default {
     }
   },
   created () {
-    this.parentId = this.$route.query.parentId
     this.positionId = this.$route.query.line
     this.getOpcInfo(this.positionId)
     this.getOpcInfoFromRedis(this.positionId)
     this.getImg()
-    getSbPositionTree().then(res => {
-      this.treeData = res.data
-    })
     this.timer = setInterval(() => {
       this.getOpcInfoFromRedis(this.positionId)
     }, 5000)

+ 2 - 2
src/views/remote/opc/OpcPositionForProducerYushui.vue

@@ -15,7 +15,7 @@
         </span>
         </a-col>
       </a-row>
-      <a-card-grid v-for="child in childData" v-if="child.type==2 && child.title == '雨水管网'" :key="child.key" style="cursor: pointer;width:25%;text-align:center" @click="showScreen(child)">
+      <a-card-grid v-for="child in childData" v-if="child.type==2 && child.title == '动力车间'" :key="child.key" style="cursor: pointer;width:25%;text-align:center" @click="showScreen(child)">
         {{ child.title }}
       </a-card-grid>
     </a-card>
@@ -56,7 +56,7 @@ export default {
     showScreen (position) {
       const a = document.createElement('a')
       const select = position.children[0]
-      a.href = '/opc/info?line=' + select.id + '&parentId=' + position.id
+      a.href = '/opc/infoYushui?line=' + select.id + '&parentId=' + position.id
       a.target = '_blank'
       a.click()
     },