From ddf60f1de7a1632e5673806838aa1ef74fd3886b Mon Sep 17 00:00:00 2001 From: guonan <guonan201020@163.com> Date: 星期二, 06 五月 2025 14:20:33 +0800 Subject: [PATCH] 修改选中区域flyTo以及标红;避险场所面片未清除;存储方案模拟区域 --- src/views/left/CitySim.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/views/left/CitySim.vue b/src/views/left/CitySim.vue index cdc19e3..f4d08b5 100644 --- a/src/views/left/CitySim.vue +++ b/src/views/left/CitySim.vue @@ -59,6 +59,7 @@ v-if="simStore.selectTab == '閲嶇偣鍖哄煙浠跨湡'" > <el-select + @change="changeGeom" v-model="forms.geom" placeholder="Select" style="max-width: 600px" @@ -141,6 +142,7 @@ import { getRegionData } from "@/api/trApi"; import { storeToRefs } from "pinia"; import dayjs from "dayjs"; +import { EventBus } from "@/eventBus"; // 寮曞叆浜嬩欢鎬荤嚎 const simStore = SimAPIStore(); const { selectTab } = storeToRefs(simStore); @@ -197,9 +199,17 @@ hours: null, }); +const flyHeight = ref(100000); + +// 灏嗛�変腑鍖哄煙浼犻�掔粰gisView鏂囦欢锛屽仛鏍囩孩flyTo鏄剧ず const changeGeom = (val) => { - console.log(val,'aaaaaaaaaaaaaaa') -} + if (selectTab.value == "琛屾斂鍖哄垝浠跨湡") { + flyHeight.value = 100000; + } else { + flyHeight.value = 5000; + } + EventBus.emit("select-geom", { geom: val.value, flyHeight: flyHeight.value }); +}; const { calculateHoursDifference } = inject("calculateHours"); @@ -209,12 +219,13 @@ const addSimCheme = async () => { await simStore.addSimCheme(forms); + resetForm(); + EventBus.emit("close-selectArea"); }; // 閲嶇疆琛ㄥ崟 const resetForm = () => { forms.geom = ""; - forms.eares = "瀛欒儭娌�"; forms.rainfall = null; forms.duration = null; forms.intensity = null; -- Gitblit v1.9.3