|
@@ -6,7 +6,7 @@ import { useInfiniteScroll } from '@vueuse/core';
|
|
|
import SvgIcon from '@/components/SvgIcon.vue';
|
|
|
import { useRequest } from '@/hooks/request';
|
|
|
import { getDevWorkRealTimeData, getDevWorkTypeCount, queryDevicesList } from '@/api';
|
|
|
-import { getFixedNum } from '@/utils';
|
|
|
+import { getFixedNum, timeSorter } from '@/utils';
|
|
|
import { DeviceRunningStatus, DeviceStatusQuery } from '@/constants';
|
|
|
import { DevParamChillerUnit, DevParamCtrlCabinet } from '@/constants/device-params';
|
|
|
|
|
@@ -159,6 +159,13 @@ const getDeviceList = () => {
|
|
|
if (isDeviceChillerUnit) {
|
|
|
Object.assign(deviceRealTimeData.value[item.deviceId], chillerUnitExtraParams);
|
|
|
}
|
|
|
+
|
|
|
+ const times = deviceParamMapList
|
|
|
+ .filter((item) => item.time)
|
|
|
+ .map((item) => item.time)
|
|
|
+ .sort(timeSorter);
|
|
|
+
|
|
|
+ deviceRealTimeData.value[item.deviceId].time = times[times.length - 1];
|
|
|
});
|
|
|
|
|
|
deviceList.value.push(...records);
|