|
|
@@ -1,12 +1,21 @@
|
|
|
<template>
|
|
|
<div class="home">
|
|
|
- <mapDiv :showMarket="showMarket" :darkType="darkType" style="width:100%;height:89vh;padding: 0 0 0 0" ref="mapElm"></mapDiv>
|
|
|
- <countPage style="position: absolute;left: 1vw;z-index: 1000;top: 1vh;"></countPage>
|
|
|
- <lineEcharts style="position: absolute;left: 1vw;z-index: 1000;top: 30vh;"></lineEcharts>
|
|
|
- <messageTable style="position: absolute;left: 1vw;z-index: 1000;top: 59vh;"></messageTable>
|
|
|
- <pieEcharts style="position: absolute;right: 1vw;z-index: 1000;top: 1vh;"></pieEcharts>
|
|
|
- <stationPie style="position: absolute;right: 1vw;z-index: 1000;top: 30vh;"></stationPie>
|
|
|
- <warnTable style="position: absolute;right: 1vw;z-index: 1000;top: 59vh;"></warnTable>
|
|
|
+ <div style="display: flex;flex-direction: row;width: 100%;">
|
|
|
+ <div style="display: flex;flex-direction: column;width: 24%;">
|
|
|
+ <countPage style="width: 100%;"></countPage>
|
|
|
+ <lineEcharts style="width: 100%;margin-top: 1vh;"></lineEcharts>
|
|
|
+ <messageTable style="width: 100%;margin-top: 1vh;"></messageTable>
|
|
|
+ </div>
|
|
|
+ <div style="width: 50%;margin-left: 1%;">
|
|
|
+ <mapDiv :showMarket="showMarket" :darkType="darkType" style="width:100%;height:86vh;padding: 0 0 0 0"
|
|
|
+ ref="mapElm"></mapDiv>
|
|
|
+ </div>
|
|
|
+ <div style="width:24%;margin-left: 1%;">
|
|
|
+ <pieEcharts></pieEcharts>
|
|
|
+ <stationPie style="width: 100%;margin-top: 1vh;"></stationPie>
|
|
|
+ <warnTable style="width: 100%;margin-top: 1vh;"></warnTable>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -21,8 +30,8 @@ import stationPie from '@/components/HomeStatics/stationPie.vue';
|
|
|
import warnTable from '@/components/HomeStatics/warnTable.vue';
|
|
|
|
|
|
|
|
|
-const showMarket =ref(true);
|
|
|
-const darkType =ref(true);
|
|
|
+const showMarket = ref(true);
|
|
|
+const darkType = ref(true);
|
|
|
|
|
|
onMounted(() => {
|
|
|
let protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://'
|
|
|
@@ -34,12 +43,13 @@ const goTarget = (url: string) => {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style scoped lang="scss">
|
|
|
+<style lang="scss">
|
|
|
.home {
|
|
|
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
- padding: 0 0 0 0 !important;
|
|
|
+ padding: 1% 1% 1% 1% !important;
|
|
|
+ background-color: #eff1f3;
|
|
|
|
|
|
blockquote {
|
|
|
padding: 10px 20px;
|
|
|
@@ -108,4 +118,7 @@ const goTarget = (url: string) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+.app-main {
|
|
|
+ background-color: #eff1f3 !important
|
|
|
+}
|
|
|
</style>
|