diff --git a/src/component/rain-earthquake/ControlShowDetailComponent.vue b/src/component/rain-earthquake/ControlShowDetailComponent.vue
index e77f142..cc6b315 100644
--- a/src/component/rain-earthquake/ControlShowDetailComponent.vue
+++ b/src/component/rain-earthquake/ControlShowDetailComponent.vue
@@ -70,6 +70,20 @@
useStatusStore().infrastructureLayers.showTrafficRoad.loading
"
/>
+
+
+
+
diff --git a/src/component/rain-earthquake/detail-panels/HighwayComponent.vue b/src/component/rain-earthquake/detail-panels/HighwayComponent.vue
new file mode 100644
index 0000000..6cb1b71
--- /dev/null
+++ b/src/component/rain-earthquake/detail-panels/HighwayComponent.vue
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
diff --git a/src/component/rain-earthquake/detail-panels/NationRoadComponent.vue b/src/component/rain-earthquake/detail-panels/NationRoadComponent.vue
new file mode 100644
index 0000000..7e88acc
--- /dev/null
+++ b/src/component/rain-earthquake/detail-panels/NationRoadComponent.vue
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
diff --git a/src/hooks/earthquake/useEarthquakeDisasterChain.ts b/src/hooks/earthquake/useEarthquakeDisasterChain.ts
index eed2a83..1ac683e 100644
--- a/src/hooks/earthquake/useEarthquakeDisasterChain.ts
+++ b/src/hooks/earthquake/useEarthquakeDisasterChain.ts
@@ -249,17 +249,13 @@ export const useEarthquakeDisasterChain = () => {
name: '显示高速',
statusStore: statusStore.infrastructureLayers,
statusKey: 'showHighway' as const,
- callback: (status: unknown) => {
- console.log('显示高速', status);
- },
+ callback: layerControl.clickHighway,
},
{
name: '显示国道',
statusStore: statusStore.infrastructureLayers,
statusKey: 'showMainRoad' as const,
- callback: (status: unknown) => {
- console.log('显示国道', status);
- },
+ callback: layerControl.clickNationRoad,
},
{
name: '显示水库',
diff --git a/src/hooks/rain-earthquake/useLayerControl.ts b/src/hooks/rain-earthquake/useLayerControl.ts
index f42c78c..70454b5 100644
--- a/src/hooks/rain-earthquake/useLayerControl.ts
+++ b/src/hooks/rain-earthquake/useLayerControl.ts
@@ -83,6 +83,20 @@ export const useLayerControl = () => {
useStatusStore().infrastructureLayers.showTrafficRoad.loading = true;
};
+ /**
+ * 显示高速
+ */
+ const clickHighway = () => {
+ useStatusStore().infrastructureLayers.showHighway.loading = true;
+ };
+ /**
+ * 显示国道
+ */
+ const clickNationRoad = () => {
+ useStatusStore().infrastructureLayers.showMainRoad.loading = true;
+ };
+
+
return {
clickHiddenDangerPoint,
clickHospital,
@@ -93,6 +107,8 @@ export const useLayerControl = () => {
clickSchool,
clickPopulationGrid,
clickWaterPipe,
- clickTrafficRoad
+ clickTrafficRoad,
+ clickHighway,
+ clickNationRoad
};
};
diff --git a/src/hooks/rainstorm/useRainDisasterChain.ts b/src/hooks/rainstorm/useRainDisasterChain.ts
index 80661ec..ef6d51f 100644
--- a/src/hooks/rainstorm/useRainDisasterChain.ts
+++ b/src/hooks/rainstorm/useRainDisasterChain.ts
@@ -272,17 +272,13 @@ export const useRainDisasterChain = () => {
name: '显示高速',
statusStore: statusStore.infrastructureLayers,
statusKey: 'showHighway' as const,
- callback: (status: unknown) => {
- console.log('显示高速', status);
- },
+ callback: layerControl.clickHighway,
},
{
name: '显示国道',
statusStore: statusStore.infrastructureLayers,
statusKey: 'showMainRoad' as const,
- callback: (status: unknown) => {
- console.log('显示国道', status);
- },
+ callback: layerControl.clickNationRoad,
},
{
name: '显示水库',