修改大屏页面字体边距

This commit is contained in:
范佳 2026-03-30 15:36:12 +08:00
parent bcbba17ab3
commit cf0ab0dca5
4 changed files with 55 additions and 9 deletions

View File

@ -38,8 +38,8 @@ defineProps({
gap: 8px; gap: 8px;
.title { .title {
margin-left: 45px; margin-left: 35px;
font-size: 18px; font-size: 14px;
font-weight: bold; font-weight: bold;
color: #fff; color: #fff;
} }

View File

@ -75,6 +75,7 @@
<div class="left"> <div class="left">
<left <left
@openImpactDetail="openDialog('impactPoint')"
@openWarningInfo="openDialog('warningInfo')" @openWarningInfo="openDialog('warningInfo')"
@openImpactPoint="openDialog('impactPoint')" @openImpactPoint="openDialog('impactPoint')"
@openWarningSituation="openDialog('warningSituation')" @openWarningSituation="openDialog('warningSituation')"
@ -92,7 +93,13 @@
</div> </div>
<!-- 地图中心 --> <!-- 地图中心 -->
<div class="center"> <div class="center">
<MapCenter /> <!-- 地图底层 -->
<div class="map-layer">
<!-- <MapCenter /> -->
</div>
<!-- 地图遮罩层 -->
<div class="map-mask" aria-hidden="true"></div>
</div> </div>
<div class="bottom"> <div class="bottom">
<bottom></bottom> <bottom></bottom>
@ -230,7 +237,9 @@
</template> </template>
<script setup> <script setup>
import { ref } from "vue"; import { ref, onMounted } from "vue";
import useMapStore from '@/map/stores/mapStore'
import { useMapBase } from '../cockpit/composables/useMapBase'
import left from "./left.vue"; import left from "./left.vue";
import right from "./right.vue"; import right from "./right.vue";
import bottom from "./bottom.vue"; import bottom from "./bottom.vue";
@ -307,6 +316,25 @@ const openConfirm = (config) => {
// //
const showCenterCard = ref(false); const showCenterCard = ref(false);
// ==================== ====================
const mapStore = useMapStore()
/**
* 加载地图的业务底图与聚焦中心点
*/
const mapBase = useMapBase(mapStore)
// ==================== ====================
/**
* 组件挂载后初始化地图
*/
onMounted(() => {
//
mapBase.loadBaseData()
})
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -407,6 +435,24 @@ const showCenterCard = ref(false);
z-index: -1; z-index: -1;
} }
/* 地图底层 - 填满整个容器 */
.map-layer {
position: absolute;
inset: 0;
z-index: 0;
/* 不设置 pointer-events让地图保持可交互 */
}
/* 地图遮罩层 - 覆盖在地图之上 */
.map-mask {
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
/* 不阻挡交互 */
background: url(../../assets/RiskWarning_img/遮罩层.png) no-repeat center/cover;
}
// //
.corner { .corner {
position: absolute; position: absolute;

View File

@ -372,7 +372,7 @@ const cellStyle = () => ({
} }
.title { .title {
font-size: vw(16); font-size: vw(12);
font-weight: bold; font-weight: bold;
color: #fff; color: #fff;
} }

View File

@ -342,7 +342,7 @@ const majorEvent = "0";
} }
.title { .title {
font-size: vw(16); font-size: vw(12);
font-weight: bold; font-weight: bold;
color: #fff; color: #fff;
} }