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