Browse Source

路宁注氮新增模块bug修改-提交

lxh 9 months ago
parent
commit
cf8324e7b2
1 changed files with 5 additions and 6 deletions
  1. 5 6
      src/views/vent/monitorManager/ceshi/index.vue

+ 5 - 6
src/views/vent/monitorManager/ceshi/index.vue

@@ -115,12 +115,12 @@
                     </template>
                 </a-tab-pane>
                 <a-tab-pane key="2" tab="瓦斯抽放">
-                    <MonitorTable ref="monitorTable" :columnsType="`${deviceType1}_monitor`" :dataSource="dataSource"
+                    <MonitorTable ref="monitorTable" :columnsType="`${deviceType}_monitor`" :dataSource="dataSource"
                         design-scope="device_monitor" :isShowPagination="false"
-                        :isShowActionColumn="isHaveAction.includes(deviceType1.split('_')[0]) ? false : true"
+                        :isShowActionColumn="isHaveAction.includes(deviceType.split('_')[0]) ? false : true"
                         :is-show-select="false" title="设备监测" :form-config="undefined" :scroll="{ y: 360 }">
                         <template #filterCell="{ column, record }">
-                            <template v-if="deviceType1.startsWith('gate')">
+                            <template v-if="deviceType.startsWith('gate')">
                                 <template v-if="record.frontGateOpenCtrl == 1 || record.frontGateOpenCtrl === true">
                                     <a-tag
                                         v-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == 0 && record.frontGateClose == 0"
@@ -158,7 +158,7 @@
                                         color="default">打开</a-tag>
                                 </template>
                             </template>
-                            <template v-if="deviceType1.startsWith('windrect')">
+                            <template v-if="deviceType.startsWith('windrect')">
                                 <a-tag v-if="column.dataIndex === 'sign'"
                                     :color="record.sign == '0' ? '#95CF65' : record.sign == 1 ? '#4590EA' : '#9876AA'">
                                     {{ record.sign == '0' ? '高位' : record.sign == 1 ? '中位' : '低位' }}</a-tag>
@@ -171,7 +171,7 @@
                                     <Progress v-else :percent="Number(record.isRun)" size="small" status="active" />
                                 </template>
                             </template>
-                            <template v-if="deviceType1.startsWith('safetymonitor')">
+                            <template v-if="deviceType.startsWith('safetymonitor')">
                                 <div v-if="!record.devicename && column.dataIndex === 'devicename'">-</div>
                                 <div v-if="!record.V && column.dataIndex === 'V'">-</div>
                                 <div v-if="!record.PointUnit && column.dataIndex === 'PointUnit'">-</div>
@@ -214,7 +214,6 @@ import { usePermission } from '/@/hooks/web/usePermission';
 const { hasPermission } = usePermission();
 const activeKey = ref('1'); // tab key
 const deviceType = ref('safetymonitor'); // 监测设备类型
-const deviceType1 = ref('safetymonitor'); // 监测设备类型
 const dataSource = shallowRef([]); // 实时监测数据
 const monitorTable = ref();
 const playerList = ref([])