|
@@ -1,5 +1,8 @@
|
|
|
<template>
|
|
|
<div class="history-table">
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<BasicTable v-if="globalConfig.History_Type == 'vent'" ref="historyTable" @register="registerTable" >
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
<slot name="filterCell" v-bind="{ column, record }"></slot>
|
|
@@ -200,6 +203,11 @@
|
|
|
listField: globalConfig.History_Type == 'iot'? 'records': globalConfig.History_Type == 'records'? '': 'datalist.records',
|
|
|
totalField: globalConfig.History_Type == 'iot' ? 'total' : globalConfig.History_Type == 'total' ? 'total' : 'datalist.total',
|
|
|
},
|
|
|
+ pagination: {
|
|
|
+ current: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ pageSizeOptions: ['20', '50', '100'],
|
|
|
+ },
|
|
|
beforeFetch(params) {
|
|
|
params.strtype = props.deviceType + '*';
|
|
|
if(props.sysId){
|
|
@@ -268,24 +276,36 @@
|
|
|
componentProps: {
|
|
|
options: [
|
|
|
{
|
|
|
+ label: '1秒',
|
|
|
+ value: '1s',
|
|
|
+ },
|
|
|
+ {
|
|
|
label: '5秒',
|
|
|
- value: '1',
|
|
|
+ value: '5s',
|
|
|
},
|
|
|
{
|
|
|
label: '10秒',
|
|
|
- value: '2',
|
|
|
+ value: '10s',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '30秒',
|
|
|
+ value: '30s',
|
|
|
},
|
|
|
{
|
|
|
label: '1分钟',
|
|
|
- value: '3',
|
|
|
+ value: '1m',
|
|
|
},
|
|
|
{
|
|
|
label: '10分钟',
|
|
|
- value: '4',
|
|
|
+ value: '10m',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '30分钟',
|
|
|
+ value: '30m',
|
|
|
},
|
|
|
{
|
|
|
- label: '20分钟',
|
|
|
- value: '5',
|
|
|
+ label: '1小时',
|
|
|
+ value: '1h',
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -293,17 +313,26 @@
|
|
|
],
|
|
|
fieldMapToTime: [['tData', ['startTime', 'endTime'], 'YYYY-MM-DD HH:mm:ss']],
|
|
|
},
|
|
|
-
|
|
|
+ pagination: {
|
|
|
+ current: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ pageSizeOptions: ['20', '50', '100'],
|
|
|
+ },
|
|
|
beforeFetch(params) {
|
|
|
params.strtype = props.deviceType + '*';
|
|
|
if (props.sysId) {
|
|
|
params.sysId = props.sysId;
|
|
|
}
|
|
|
if(params.interval){
|
|
|
- params.interval = params.interval+'m'
|
|
|
+ params.interval = params.interval
|
|
|
}else{
|
|
|
params.interval = '1m'
|
|
|
}
|
|
|
+ if(props.deviceType.startsWith('location')){
|
|
|
+ params['isEmployee'] = false
|
|
|
+ }else if(props.deviceType.includes('cheliang')){
|
|
|
+ params['isEmployee'] = true
|
|
|
+ }
|
|
|
},
|
|
|
afterFetch(result) {
|
|
|
let dataSource = []
|
|
@@ -312,6 +341,7 @@
|
|
|
Object.assign(item, result['deviceId'], result['deviceName'], result['devicePos'] );
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
return dataSource;
|
|
|
},
|
|
|
},
|