From 4fa650b5846a3c2f971bb9b1de960a52114210f3 Mon Sep 17 00:00:00 2001 From: zxyroyy <1442470094@qq.com> Date: Fri, 26 Jun 2026 10:08:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AD=A5=EF=BC=9A=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E4=BC=9A=E6=98=BE=E7=A4=BA=E6=89=80=E6=9C=89=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E6=80=BB=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DisasterChainPointComponent.vue | 3 ++- src/views/home/rainstorm/RainstormView.vue | 22 ++++++++++++------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/component/rain-earthquake/DisasterChainPointComponent.vue b/src/component/rain-earthquake/DisasterChainPointComponent.vue index 9fbad9c..f202a2e 100644 --- a/src/component/rain-earthquake/DisasterChainPointComponent.vue +++ b/src/component/rain-earthquake/DisasterChainPointComponent.vue @@ -17,7 +17,7 @@ v-show="statusStore.uiComponents.disasterChainPointShow.show" >
- 灾害链影响点列表 + 灾害链影响点列表({{ props.totalDataCount ?? props.tableDataList.length }})
@@ -92,6 +92,7 @@ tableDataList: Point[]; tableColumns: { title: string; key: string }[]; pageOption: PaginationType; + totalDataCount?: number; // 所有数据的总数 }>(); // 接收父组件方法 diff --git a/src/views/home/rainstorm/RainstormView.vue b/src/views/home/rainstorm/RainstormView.vue index 75d291c..d769d3f 100644 --- a/src/views/home/rainstorm/RainstormView.vue +++ b/src/views/home/rainstorm/RainstormView.vue @@ -8,16 +8,17 @@ @@ -85,7 +86,7 @@ PointType, HiddenDangerPointTypeMap, } from '@/types/common/DisasterType.ts'; - import { onBeforeMount, watch, provide } from 'vue'; + import {onBeforeMount, watch, provide, computed} from 'vue'; import { useRoute } from 'vue-router'; const route = useRoute(); @@ -113,6 +114,11 @@ setTableDatas, } = useDisasterChainTable(); + // 所有数据的总数(所有类型的脉冲点总和) + const allDataCount = computed(() => { + return aroundAnalysisState.pulsePoints.value?.length || 0; + }); + onBeforeMount(() => { // 设置下拉选项 setSelectOptions([