|
@@ -66,24 +66,24 @@
|
|
|
import ModuleBD from './components/ModuleBD.vue';
|
|
|
import VentModal from '/@/components/vent/micro/ventModal.vue';
|
|
|
import { getDisHome } from './configurable.api';
|
|
|
- import { testConfigWZFire } from './configurable.data.wz';
|
|
|
+ // import { testConfigWZFire } from './configurable.data.wz';
|
|
|
// import { getToken } from '/@/utils/auth';
|
|
|
|
|
|
- const { configs, devicesTypes } = useInitConfigs();
|
|
|
+ const { configs, devicesTypes, fetchConfigs } = useInitConfigs();
|
|
|
const { mainTitle, data, updateData, updateEnhancedConfigs } = useInitPage('王庄煤矿火灾智能监测系统');
|
|
|
let interval: number | undefined;
|
|
|
// function hideLoading() {
|
|
|
// loading.value = false;
|
|
|
// }
|
|
|
onMounted(() => {
|
|
|
- // fetchConfigs('WZ_fire').then(() => {
|
|
|
- configs.value = testConfigWZFire;
|
|
|
- updateEnhancedConfigs(configs.value);
|
|
|
+ fetchConfigs('WZ_fire').then(() => {
|
|
|
+ // configs.value = testConfigWZFire;
|
|
|
+ updateEnhancedConfigs(configs.value);
|
|
|
|
|
|
- getDisHome({
|
|
|
- dataList: devicesTypes.value.concat('fireAllMineWarn').join(','),
|
|
|
- }).then(updateData);
|
|
|
- // });
|
|
|
+ getDisHome({
|
|
|
+ dataList: devicesTypes.value.concat('fireAllMineWarn').join(','),
|
|
|
+ }).then(updateData);
|
|
|
+ });
|
|
|
setInterval(() => {
|
|
|
getDisHome({
|
|
|
dataList: devicesTypes.value.concat('fireAllMineWarn').join(','),
|