|
@@ -164,9 +164,12 @@
|
|
|
async function getDataSource(systemID) {
|
|
|
const res = await list({ devicetype: 'sys', systemID });
|
|
|
const result = res.msgTxt;
|
|
|
+ safetyMonitorData.value = [];
|
|
|
+ fanlocalMonitorData.value = [];
|
|
|
+ windowMonitorData.value = [];
|
|
|
result.forEach((item) => {
|
|
|
if (item.type.startsWith('safetymonitor')) {
|
|
|
- safetyMonitorData.value = item.datalist;
|
|
|
+ safetyMonitorData.value.push(...item.datalist);
|
|
|
}
|
|
|
if (item.type.startsWith('fanlocal')) {
|
|
|
item.datalist.forEach((e) => {
|
|
@@ -174,10 +177,10 @@
|
|
|
e.FanfHz = f1Run ? e.readData.Fan1_Frequency : e.readData.Fan2_Frequency;
|
|
|
e.FanRun = f1Run ? '1#风机' : '2#风机';
|
|
|
});
|
|
|
- fanlocalMonitorData.value = item.datalist;
|
|
|
+ fanlocalMonitorData.value.push(...item.datalist);
|
|
|
}
|
|
|
if (item.type.startsWith('window')) {
|
|
|
- windowMonitorData.value = item.datalist;
|
|
|
+ windowMonitorData.value.push(...item.datalist);
|
|
|
}
|
|
|
});
|
|
|
}
|