From 26f35d1c9bfc9ced7a32a9fc7844ff6856d09de7 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 24 Mar 2026 16:45:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9C=B0=E5=9B=BE):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E5=9C=B0=E5=90=8D=E6=98=A0=E5=B0=84=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=97=B6=EF=BC=8C=E9=A1=B5=E9=9D=A2=E7=A9=BA=E7=99=BD?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BB=A5=E5=8F=8A=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=9C=B0=E5=90=8D=E6=98=A0=E5=B0=84=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E4=BB=A5=E6=8F=90=E9=AB=98=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/parameter/map/Geometry.vue | 4 ++-- .../src/views/system/parameter/map/PlaceNameMapping.vue | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/core-frontend/src/views/system/parameter/map/Geometry.vue b/core/core-frontend/src/views/system/parameter/map/Geometry.vue index dfcbfedc13..db8368b26a 100644 --- a/core/core-frontend/src/views/system/parameter/map/Geometry.vue +++ b/core/core-frontend/src/views/system/parameter/map/Geometry.vue @@ -268,7 +268,7 @@ @@ -730,7 +730,7 @@ const placeNameMappingRef = ref() const editPlaceNameMapping = () => { placeNameMappingRef?.value.init() } -const onMapMappingChange = (mappingForm: any) => { +const onPlaceNameMappingChange = (mappingForm: any) => { if (showGeoJson.value) { const id = selectedData.value['id'] const url = '/geometry/' + id + '/mapping' diff --git a/core/core-frontend/src/views/system/parameter/map/PlaceNameMapping.vue b/core/core-frontend/src/views/system/parameter/map/PlaceNameMapping.vue index cff289c3e0..b4f54f5d3f 100644 --- a/core/core-frontend/src/views/system/parameter/map/PlaceNameMapping.vue +++ b/core/core-frontend/src/views/system/parameter/map/PlaceNameMapping.vue @@ -15,7 +15,7 @@ const props = defineProps({ } }) -const emit = defineEmits(['onMapMappingChange']) +const emit = defineEmits(['onPlaceNameMappingChange']) const { selectedData, themes } = toRefs(props) const dialogVisible = ref(false) @@ -44,6 +44,7 @@ const pageInfo = reactive({ }) const init = () => { + search.value = '' areaData.length = 0 dialogVisible.value = true const chartObj = JSON.parse(selectedData.value.geoJson) @@ -138,7 +139,7 @@ const submitForm = () => { return p }, {}) // 统一提交到上层 - emit('onMapMappingChange', mappingForm) + emit('onPlaceNameMappingChange', mappingForm) dialogVisible.value = false } onBeforeMount(() => { @@ -166,7 +167,7 @@ defineExpose({ :row-class-name="'area-map-table-row-' + themes" :data="areaData" v-loading="showLoading" - v-if="areaData && areaData.length" + v-if="areaData" >