|
@@ -7,16 +7,16 @@
|
|
|
<a-row class="company-content" :gutter="10">
|
|
|
<a-col v-for="(item, i) in shownBillboards" :key="`svvhbi-${i}`" :span="6">
|
|
|
<BaseCard :title="item.orgname" @open="openHandler(item.ip)">
|
|
|
- <component :is="COMPONENTS_MAP.get(billboardType)" :data="item" />
|
|
|
+ <component :is="componentMap[billboardType]" :data="item" />
|
|
|
</BaseCard>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
<div v-if="showBtn" style="position: absolute; top: 0; left: 0">
|
|
|
- <a-button @click="billboardType = 'dust'">切换粉尘看板</a-button>
|
|
|
- <a-button @click="billboardType = 'fire'">切换火灾看板</a-button>
|
|
|
- <a-button @click="billboardType = 'file'">切换文件看板</a-button>
|
|
|
- <a-button @click="billboardType = 'ventilate'">切换风扇看板</a-button>
|
|
|
- <a-button @click="billboardType = 'gas'">切换瓦斯看板</a-button>
|
|
|
+ <a-button @click="billboardType = 'DustStatus'">切换粉尘看板</a-button>
|
|
|
+ <a-button @click="billboardType = 'FireStatus'">切换火灾看板</a-button>
|
|
|
+ <a-button @click="billboardType = 'FileOverview'">切换文件看板</a-button>
|
|
|
+ <a-button @click="billboardType = 'VentilationStatus'">切换风扇看板</a-button>
|
|
|
+ <a-button @click="billboardType = 'GasStatus'">切换瓦斯看板</a-button>
|
|
|
</div>
|
|
|
<ArrowButton point-to="left" class="company__arrow_left" @click="changeCurrentPage(-1)" />
|
|
|
<ArrowButton point-to="right" class="company__arrow_right" @click="changeCurrentPage(1)" />
|
|
@@ -26,15 +26,28 @@
|
|
|
import { computed, onMounted, ref } from 'vue';
|
|
|
import BaseCard from './components/BaseCard.vue';
|
|
|
import ArrowButton from './components/ArrowButton.vue';
|
|
|
- import { BillboardType, COMPONENTS_MAP } from './billboard.data';
|
|
|
+ import { BillboardType } from './billboard.data';
|
|
|
import { useRoute } from 'vue-router';
|
|
|
import { getSummary } from './billboard.api';
|
|
|
import { useSSO } from '/@/hooks/vent/useSSO';
|
|
|
+ import DustStatus from './components/DustStatus.vue';
|
|
|
+ import FileOverview from './components/FileOverview.vue';
|
|
|
+ import FireStatus from './components/FireStatus.vue';
|
|
|
+ import VentilationStatus from './components/VentilationStatus.vue';
|
|
|
+ import GasStatus from './components/GasStatus.vue';
|
|
|
// import mapComponent from './components/3Dmap/index.vue';
|
|
|
|
|
|
const route = useRoute();
|
|
|
const { open } = useSSO();
|
|
|
|
|
|
+ const componentMap = {
|
|
|
+ DustStatus,
|
|
|
+ FileOverview,
|
|
|
+ VentilationStatus,
|
|
|
+ GasStatus,
|
|
|
+ FireStatus,
|
|
|
+ };
|
|
|
+
|
|
|
const mainTitle = '煤炭集团';
|
|
|
|
|
|
// 看板相关的基础配置
|
|
@@ -62,7 +75,7 @@
|
|
|
currentPage.value = Math.max((currentPage.value + pagecount) % totalPage.value, 1);
|
|
|
}
|
|
|
|
|
|
- const billboardType = ref('dust');
|
|
|
+ const billboardType = ref('DustStatus');
|
|
|
const showBtn = ref(true);
|
|
|
|
|
|
// 页面跳转
|