|
@@ -1,9 +1,9 @@
|
|
|
<!-- eslint-disable vue/multi-word-component-names -->
|
|
|
<template>
|
|
|
<div class="company-home">
|
|
|
- <!-- <div style="width: 100%; height: 100%; position: absolute; left: 0; top: 0; z-index: 0">
|
|
|
+ <div style="width: 100%; height: 100%; position: absolute; left: 0; top: 0; z-index: 0">
|
|
|
<VentModal />
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
<div v-if="!route.query.embed" class="top-bg">
|
|
|
<!-- <img style="width: 300px; height: 40px; position: fixed; left: 5px; top: 5px" src="./meeee.png" /> -->
|
|
|
<div class="main-title">{{ mainTitle }}</div>
|
|
@@ -74,24 +74,28 @@
|
|
|
import ModuleOriginal from './components/ModuleOriginal.vue';
|
|
|
import ModuleCommon from './components/ModuleCommon.vue';
|
|
|
// import { useRoute } from 'vue-router';
|
|
|
- // import VentModal from '/@/components/vent/micro/ventModal.vue';
|
|
|
+ import VentModal from '/@/components/vent/micro/ventModal.vue';
|
|
|
import { getHomeData } from './configurable.api';
|
|
|
import { useRoute } from 'vue-router';
|
|
|
- import { testConfigVent } from './configurable.data';
|
|
|
+ // import { testConfigVent } from './configurable.data';
|
|
|
+ import { useGlobSetting } from '/@/hooks/setting';
|
|
|
|
|
|
- const { configs, isOriginal, isCommon } = useInitConfigs();
|
|
|
- const { mainTitle, enhancedConfigs, hiddenList, data, updateData, updateEnhancedConfigs } = useInitPage('智能通风管控系统');
|
|
|
+ const { title } = useGlobSetting();
|
|
|
+ const { configs, isOriginal, isCommon, fetchConfigs } = useInitConfigs();
|
|
|
+ const { mainTitle, enhancedConfigs, hiddenList, data, updateData, updateEnhancedConfigs } = useInitPage(title);
|
|
|
const route = useRoute();
|
|
|
let interval: number | undefined;
|
|
|
|
|
|
onMounted(() => {
|
|
|
- configs.value = testConfigVent;
|
|
|
- updateEnhancedConfigs(configs.value);
|
|
|
+ fetchConfigs('demo_page').then((res) => {
|
|
|
+ configs.value = res;
|
|
|
+ updateEnhancedConfigs(configs.value);
|
|
|
|
|
|
- getHomeData({}).then(updateData);
|
|
|
- setInterval(() => {
|
|
|
getHomeData({}).then(updateData);
|
|
|
- }, 60000);
|
|
|
+ setInterval(() => {
|
|
|
+ getHomeData({}).then(updateData);
|
|
|
+ }, 60000);
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
onUnmounted(() => {
|