|
@@ -8,7 +8,7 @@
|
|
|
<template v-else-if="activeKey == '1' && deviceType">
|
|
|
<MonitorTable ref="monitorTable" :columnsType="`${deviceType}_monitor`" :dataSource="dataSource"
|
|
|
design-scope="device_monitor" :isShowPagination="false" :isShowActionColumn="true" title="设备监测"
|
|
|
- :form-config="deviceType == 'safetymonitor' ? formConfig : undefined" :scroll="scroll">
|
|
|
+ :form-config="deviceType == 'safetymonitor' ? formConfig : undefined" >
|
|
|
<template #filterCell="{ column, record }">
|
|
|
<template v-if="deviceType.startsWith('gate')">
|
|
|
<template v-if="record.frontGateOpenCtrl == 1 || record.frontGateOpenCtrl === true">
|
|
@@ -93,7 +93,7 @@
|
|
|
<div class="tab-item">
|
|
|
<HistoryTable ref="historyTable" v-if="activeKey == '2'" :columns-type="`${deviceType}`"
|
|
|
:device-type="deviceType" :device-list-api="getDeviceList.bind(null, { devicekind: deviceType })"
|
|
|
- designScope="device-history" :scroll="scroll" @change="changeHis" />
|
|
|
+ designScope="device-history" @change="changeHis" />
|
|
|
</div>
|
|
|
<!-- 图表 -->
|
|
|
<!-- <div v-if="alive" style="width:100%;height:280px;margin: 20px 0px;">
|
|
@@ -118,14 +118,14 @@
|
|
|
<div class="tab-item">
|
|
|
<AlarmHistoryTable ref="alarmHistoryTable" v-if="activeKey == '3'" columns-type="alarm"
|
|
|
:device-type="deviceType" :device-list-api="getDeviceList.bind(null, { devicekind: deviceType })"
|
|
|
- :scroll="scroll" designScope="alarm-history" />
|
|
|
+ designScope="alarm-history" />
|
|
|
</div>
|
|
|
</a-tab-pane>
|
|
|
<a-tab-pane key="4" tab="操作历史" v-if="deviceType !== 'safetymonitor'">
|
|
|
<div class="tab-item">
|
|
|
<HandlerHistoryTable ref="handlerHistoryTable" v-if="activeKey == '4'" columns-type="operatorhistory"
|
|
|
:device-type="deviceType" :device-list-api="getDeviceList.bind(null, { devicekind: deviceType })"
|
|
|
- :scroll="scroll" designScope="operator-history" />
|
|
|
+ designScope="operator-history" />
|
|
|
</div>
|
|
|
</a-tab-pane>
|
|
|
</a-tabs>
|
|
@@ -228,7 +228,7 @@ function getMonitor(flag?) {
|
|
|
};
|
|
|
|
|
|
async function getDataSource() {
|
|
|
- const res = await list({ devicetype: deviceType.value, pagetype: 'normal' })
|
|
|
+ const res = await list({ devicetype: deviceType.value, filterParams: { dataTypeName: '', strinstallpos: '' } })
|
|
|
if (res.msgTxt.length > 0) {
|
|
|
dataSource.value = res.msgTxt[0].datalist || [];
|
|
|
dataSource.value.filter((data: any) => {
|
|
@@ -270,6 +270,7 @@ onUnmounted(() => {
|
|
|
|
|
|
.tabs-box {
|
|
|
width: calc(100% - 12px) !important;
|
|
|
+ height: 100% !important;
|
|
|
bottom: 3px !important;
|
|
|
}
|
|
|
|
|
@@ -438,6 +439,10 @@ onUnmounted(() => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .@{ventSpace}-tabs-content{
|
|
|
+ height: 100% !important;
|
|
|
+ }
|
|
|
+
|
|
|
.@{ventSpace}-tabs-tab.@{ventSpace}-tabs-tab-active .@{ventSpace}-tabs-tab-btn {
|
|
|
color: aqua;
|
|
|
}
|