2026-04-13 10:30:03 +08:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<BasicComponent
|
|
|
|
|
:disaster-type="DisasterType.RAINSTORM"
|
|
|
|
|
:key="route.fullPath"
|
|
|
|
|
/>
|
2026-04-13 19:27:32 +08:00
|
|
|
|
2026-04-13 20:55:32 +08:00
|
|
|
<!-- 直接使用钩子返回的数据 -->
|
2026-04-13 19:27:32 +08:00
|
|
|
<DisasterChainPointComponent
|
|
|
|
|
:select-options="selectOptions"
|
|
|
|
|
:table-data-list="tableDatas"
|
|
|
|
|
:table-columns="tableColumns"
|
|
|
|
|
:page-option="paginationConfig"
|
|
|
|
|
@change-conditions="changeConditions"
|
|
|
|
|
@change-current-page="changeCurrentPage"
|
|
|
|
|
/>
|
2026-04-13 20:55:32 +08:00
|
|
|
|
|
|
|
|
<LegendComponent :legend-list="legendList" :cols-num="2" />
|
2026-04-13 10:30:03 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import BasicComponent from '@/component/rain-earthquake/BasicComponent.vue';
|
2026-04-13 19:27:32 +08:00
|
|
|
import DisasterChainPointComponent from '@/component/rain-earthquake/DisasterChainPointComponent.vue';
|
2026-04-13 20:55:32 +08:00
|
|
|
import LegendComponent from '@/component/rain-earthquake/LegendComponent.vue';
|
|
|
|
|
import { useRainDisasterChain } from '@/hooks/rainstorm/useRainDisasterChain';
|
|
|
|
|
import { useRainLegend } from '@/hooks/rainstorm/useRainLegend';
|
|
|
|
|
import { DisasterType } from '@/types/common/DisasterType';
|
2026-04-13 10:30:03 +08:00
|
|
|
import { useRoute } from 'vue-router';
|
|
|
|
|
|
|
|
|
|
const route = useRoute();
|
2026-04-13 19:27:32 +08:00
|
|
|
|
2026-04-13 20:55:32 +08:00
|
|
|
const {
|
|
|
|
|
selectOptions,
|
|
|
|
|
tableDatas,
|
|
|
|
|
tableColumns,
|
|
|
|
|
paginationConfig,
|
|
|
|
|
changeConditions,
|
|
|
|
|
changeCurrentPage,
|
|
|
|
|
} = useRainDisasterChain();
|
|
|
|
|
|
|
|
|
|
const { legendList } = useRainLegend();
|
2026-04-13 19:27:32 +08:00
|
|
|
</script>
|
|
|
|
|
|
2026-04-13 10:30:03 +08:00
|
|
|
<style scoped></style>
|