|
@@ -69,7 +69,7 @@
|
|
|
// import { testConfigBDDust } from './configurable.data.bd';
|
|
|
// import { getToken } from '/@/utils/auth';
|
|
|
|
|
|
- const { configs, fetchConfigs } = useInitConfigs();
|
|
|
+ const { configs, devicesTypes, fetchConfigs } = useInitConfigs();
|
|
|
const { mainTitle, data, updateData } = useInitPage('保德煤矿粉尘灾害预警系统');
|
|
|
let interval: number | undefined;
|
|
|
// function hideLoading() {
|
|
@@ -80,18 +80,12 @@
|
|
|
// configs.value = testConfigBDDust;
|
|
|
|
|
|
getDisHome({
|
|
|
- dataList: configs.value
|
|
|
- .map((e) => e.deviceType)
|
|
|
- .concat('dustAllMineWarn')
|
|
|
- .join(','),
|
|
|
+ dataList: devicesTypes.value.concat('dustAllMineWarn').join(','),
|
|
|
}).then(updateData);
|
|
|
});
|
|
|
setInterval(() => {
|
|
|
getDisHome({
|
|
|
- dataList: configs.value
|
|
|
- .map((e) => e.deviceType)
|
|
|
- .concat('dustAllMineWarn')
|
|
|
- .join(','),
|
|
|
+ dataList: devicesTypes.value.concat('dustAllMineWarn').join(','),
|
|
|
}).then(updateData);
|
|
|
}, 60000);
|
|
|
});
|