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.RAINSTORM"
|
|
|
|
|
:key="route.fullPath"
|
|
|
|
|
/>
|
2026-04-13 19:27:32 +08:00
|
|
|
|
2026-04-14 16:00:39 +08:00
|
|
|
<!-- 灾害链影响列表组件 -->
|
2026-04-13 19:27:32 +08:00
|
|
|
<DisasterChainPointComponent
|
2026-04-18 16:40:04 +08:00
|
|
|
v-if="
|
2026-05-07 13:11:15 +08:00
|
|
|
statusStore.appLoadingCompleted &&
|
|
|
|
|
statusStore.uiComponents.disasterChainPointShow.loading
|
2026-04-18 16:40:04 +08:00
|
|
|
"
|
2026-06-12 10:39:27 +08:00
|
|
|
:select-options="disasterChainTableStore.selectOptions"
|
|
|
|
|
:table-data-list="disasterChainTableStore.tableDatas"
|
|
|
|
|
:table-columns="disasterChainTableStore.tableColumns"
|
|
|
|
|
:page-option="disasterChainTableStore.paginationConfig"
|
|
|
|
|
@change-conditions="disasterChainTableStore.changeConditions"
|
|
|
|
|
@change-current-page="disasterChainTableStore.changeCurrentPage"
|
2026-04-13 19:27:32 +08:00
|
|
|
/>
|
2026-04-13 20:55:32 +08:00
|
|
|
|
2026-04-14 16:00:39 +08:00
|
|
|
<!-- 左侧按钮组件 -->
|
2026-04-18 16:40:04 +08:00
|
|
|
<LeftButtonComponent
|
|
|
|
|
v-if="
|
2026-05-07 13:11:15 +08:00
|
|
|
statusStore.appLoadingCompleted &&
|
|
|
|
|
statusStore.uiComponents.leftButton.loading
|
2026-04-18 16:40:04 +08:00
|
|
|
"
|
|
|
|
|
:button-list="leftButtonInfo"
|
|
|
|
|
/>
|
2026-04-14 16:33:23 +08:00
|
|
|
|
2026-05-06 17:44:30 +08:00
|
|
|
<!-- 左侧图例组件 -->
|
|
|
|
|
<LeftLegendComponent
|
|
|
|
|
v-if="
|
2026-05-07 13:11:15 +08:00
|
|
|
statusStore.appLoadingCompleted &&
|
|
|
|
|
statusStore.uiComponents.leftLegend.loading
|
2026-05-06 17:44:30 +08:00
|
|
|
"
|
|
|
|
|
/>
|
|
|
|
|
|
2026-04-14 16:33:23 +08:00
|
|
|
<!-- 右侧按钮组件 -->
|
2026-04-18 16:40:04 +08:00
|
|
|
<RightButtonComponent
|
|
|
|
|
v-if="
|
2026-05-07 13:11:15 +08:00
|
|
|
statusStore.appLoadingCompleted &&
|
|
|
|
|
statusStore.uiComponents.rightButton.loading
|
2026-04-18 16:40:04 +08:00
|
|
|
"
|
|
|
|
|
:button-list="rightButtonInfo"
|
|
|
|
|
/>
|
2026-04-15 22:41:06 +08:00
|
|
|
|
|
|
|
|
<!-- 控制显示组件 -->
|
|
|
|
|
<ControlShowComponent :constrol-show-list="controlPanel" />
|
2026-04-18 16:40:04 +08:00
|
|
|
|
|
|
|
|
<!-- 控制显示详情组件 -->
|
|
|
|
|
<ControlShowDetailComponent />
|
2026-04-21 19:50:57 +08:00
|
|
|
|
|
|
|
|
<!-- 功能组件 -->
|
|
|
|
|
<FunctionComponent />
|
2026-05-06 19:22:10 +08:00
|
|
|
|
|
|
|
|
<!-- 步骤组件 -->
|
|
|
|
|
<StepComponent />
|
2026-04-13 10:30:03 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import BasicComponent from '@/component/rain-earthquake/BasicComponent.vue';
|
2026-04-15 22:41:06 +08:00
|
|
|
import ControlShowComponent from '@/component/rain-earthquake/ControlShowComponent.vue';
|
2026-04-18 16:40:04 +08:00
|
|
|
import ControlShowDetailComponent from '@/component/rain-earthquake/ControlShowDetailComponent.vue';
|
2026-04-13 19:27:32 +08:00
|
|
|
import DisasterChainPointComponent from '@/component/rain-earthquake/DisasterChainPointComponent.vue';
|
2026-04-21 19:50:57 +08:00
|
|
|
import FunctionComponent from '@/component/rain-earthquake/FunctionComponent.vue';
|
2026-04-14 16:00:39 +08:00
|
|
|
import LeftButtonComponent from '@/component/rain-earthquake/LeftButtonComponent.vue';
|
2026-05-06 17:44:30 +08:00
|
|
|
import LeftLegendComponent from '@/component/rain-earthquake/LeftLegendComponent.vue';
|
2026-04-14 16:33:23 +08:00
|
|
|
import RightButtonComponent from '@/component/rain-earthquake/RightButtonComponent.vue';
|
2026-05-06 19:22:10 +08:00
|
|
|
import StepComponent from '@/component/rain-earthquake/StepComponent.vue';
|
2026-04-13 20:55:32 +08:00
|
|
|
import { useRainDisasterChain } from '@/hooks/rainstorm/useRainDisasterChain';
|
2026-06-12 10:39:27 +08:00
|
|
|
import { useDisasterChainTableStore } from '@/stores/useDisasterChainTableStore';
|
2026-04-18 16:40:04 +08:00
|
|
|
import { useStatusStore } from '@/stores/useStatusStore';
|
2026-06-12 10:39:27 +08:00
|
|
|
import { DisasterType, PointType } from '@/types/common/DisasterType.ts';
|
|
|
|
|
import { onBeforeMount } from 'vue';
|
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-06-12 10:39:27 +08:00
|
|
|
const { leftButtonInfo, rightButtonInfo, controlPanel } =
|
|
|
|
|
useRainDisasterChain();
|
2026-05-07 13:11:15 +08:00
|
|
|
|
|
|
|
|
const statusStore = useStatusStore();
|
2026-06-12 10:39:27 +08:00
|
|
|
|
|
|
|
|
const disasterChainTableStore = useDisasterChainTableStore();
|
|
|
|
|
|
|
|
|
|
onBeforeMount(() => {
|
|
|
|
|
// 设置相关数据
|
|
|
|
|
disasterChainTableStore.selectOptions = [
|
|
|
|
|
{ value: PointType.LANDSLIDE, label: '滑坡' },
|
|
|
|
|
{ value: PointType.DEBRIS_FLOW, label: '泥石流' },
|
|
|
|
|
{ value: PointType.FLASH_FLOOD, label: '山洪' },
|
|
|
|
|
{ value: PointType.WATER_LOGGING, label: '内涝' },
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
disasterChainTableStore.tableColumns = [
|
|
|
|
|
{ title: '名称', key: 'disasterName' },
|
|
|
|
|
{ title: '位置', key: 'position' },
|
|
|
|
|
{ title: '规模等级', key: 'scaleGrade' },
|
|
|
|
|
{ title: '险情等级', key: 'riskGrade' },
|
|
|
|
|
];
|
|
|
|
|
});
|
2026-04-13 19:27:32 +08:00
|
|
|
</script>
|
|
|
|
|
|
2026-04-13 10:30:03 +08:00
|
|
|
<style scoped></style>
|