2026-04-13 10:30:03 +08:00
|
|
|
<template>
|
|
|
|
|
<div>
|
2026-04-14 16:00:39 +08:00
|
|
|
<!-- 基础组件 -->
|
2026-04-13 10:30:03 +08:00
|
|
|
<BasicComponent
|
|
|
|
|
:disaster-type="DisasterType.EARTHQUAKE"
|
|
|
|
|
:key="route.fullPath"
|
|
|
|
|
/>
|
2026-04-14 08:08:01 +08:00
|
|
|
|
2026-04-14 16:00:39 +08:00
|
|
|
<!-- 灾害链影响列表组件 -->
|
2026-04-14 08:08:01 +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-14 16:00:39 +08:00
|
|
|
<!-- 图例组件 -->
|
2026-04-14 08:08:01 +08:00
|
|
|
<LegendComponent :legend-list="legendList" :cols-num="2" />
|
2026-04-14 16:00:39 +08:00
|
|
|
|
|
|
|
|
<!-- 左侧按钮组件 -->
|
|
|
|
|
<LeftButtonComponent :button-list="leftButtonInfo" />
|
2026-04-13 10:30:03 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import BasicComponent from '@/component/rain-earthquake/BasicComponent.vue';
|
2026-04-14 08:08:01 +08:00
|
|
|
import DisasterChainPointComponent from '@/component/rain-earthquake/DisasterChainPointComponent.vue';
|
2026-04-14 16:00:39 +08:00
|
|
|
import LeftButtonComponent from '@/component/rain-earthquake/LeftButtonComponent.vue';
|
2026-04-14 08:08:01 +08:00
|
|
|
import LegendComponent from '@/component/rain-earthquake/LegendComponent.vue';
|
|
|
|
|
import { useEarthquakeDisasterChain } from '@/hooks/earthquake/useEarthquakeDisasterChain';
|
|
|
|
|
import { useEarthquakeLegend } from '@/hooks/earthquake/useEarthquakeLegend';
|
|
|
|
|
import { DisasterType } from '@/types/common/DisasterType.ts';
|
|
|
|
|
import { watch } from 'vue';
|
2026-04-13 10:30:03 +08:00
|
|
|
import { useRoute } from 'vue-router';
|
|
|
|
|
|
|
|
|
|
const route = useRoute();
|
2026-04-14 08:08:01 +08:00
|
|
|
|
|
|
|
|
const {
|
|
|
|
|
conditions,
|
|
|
|
|
selectOptions,
|
|
|
|
|
tableDatas,
|
|
|
|
|
tableColumns,
|
|
|
|
|
paginationConfig,
|
2026-04-14 16:00:39 +08:00
|
|
|
leftButtonInfo,
|
2026-04-14 08:08:01 +08:00
|
|
|
changeConditions,
|
|
|
|
|
changeCurrentPage,
|
|
|
|
|
} = useEarthquakeDisasterChain();
|
|
|
|
|
|
|
|
|
|
const { legendList } = useEarthquakeLegend();
|
|
|
|
|
|
|
|
|
|
// 监听条件变化
|
|
|
|
|
watch(
|
|
|
|
|
conditions,
|
|
|
|
|
() => {
|
|
|
|
|
console.log('条件改变');
|
|
|
|
|
},
|
|
|
|
|
{ deep: true }
|
|
|
|
|
);
|
2026-04-13 10:30:03 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped></style>
|