|
@@ -319,7 +319,7 @@
|
|
|
if (props.dataSource['stationtype'] !== 'redis') {
|
|
|
resultXAxisPropType.value = 'ttime';
|
|
|
historyList = (params) => defHttp.get({ url: '/safety/ventanalyMonitorData/listdays', params });
|
|
|
- const datas = await historyList({
|
|
|
+ const datas1 = await historyList({
|
|
|
ttime_begin: newHistoryParams.ttime_begin,
|
|
|
ttime_end: newHistoryParams.ttime_end,
|
|
|
strtype: device.deviceType,
|
|
@@ -328,14 +328,27 @@
|
|
|
pageSize: pageSize.value,
|
|
|
pageNo: currentPage.value,
|
|
|
column: 'createTime',
|
|
|
+ deviceNum: 'Fan1',
|
|
|
});
|
|
|
- res = datas['datalist']['records'];
|
|
|
+ const datas2 = await historyList({
|
|
|
+ ttime_begin: newHistoryParams.ttime_begin,
|
|
|
+ ttime_end: newHistoryParams.ttime_end,
|
|
|
+ strtype: device.deviceType,
|
|
|
+ gdeviceid: newDeviceId,
|
|
|
+ skip: historyParams.skip,
|
|
|
+ pageSize: pageSize.value,
|
|
|
+ pageNo: currentPage.value,
|
|
|
+ column: 'createTime',
|
|
|
+ deviceNum: 'Fan2',
|
|
|
+ });
|
|
|
+ res = datas1['datalist']['records'];
|
|
|
+ const res2 = datas2['datalist']['records'];
|
|
|
if (res && res.length > 0) {
|
|
|
- resultDataSource.value = res.map((item) => Object.assign(item, item.readData));
|
|
|
+ resultDataSource.value = res.map((item, index) => Object.assign(item, item.readData, res2[index]['readData']));
|
|
|
} else {
|
|
|
resultDataSource.value = [];
|
|
|
}
|
|
|
- total.value = datas['datalist'].total;
|
|
|
+ total.value = datas1['datalist'].total;
|
|
|
} else {
|
|
|
historyList = (params) => defHttp.post({ url: '/monitor/history/getHistoryData', params });
|
|
|
resultXAxisPropType.value = 'time';
|
|
@@ -348,6 +361,7 @@
|
|
|
strtype: device.deviceType,
|
|
|
interval: historyParams.interval,
|
|
|
column: 'createTime',
|
|
|
+ deviceNum: 'Fan2',
|
|
|
});
|
|
|
if (res && res.records && res.records.length > 0) {
|
|
|
resultDataSource.value = res.records.map((item) => Object.assign(item, item.readData));
|