diff --git a/src/assets/bottom/btn-bg-active.png b/src/assets/bottom/btn-bg-active.png
new file mode 100644
index 0000000..b55ac8f
Binary files /dev/null and b/src/assets/bottom/btn-bg-active.png differ
diff --git a/src/assets/bottom/btn-bg.png b/src/assets/bottom/btn-bg.png
new file mode 100644
index 0000000..7c9e75d
Binary files /dev/null and b/src/assets/bottom/btn-bg.png differ
diff --git a/src/views/BottomPanel/index.vue b/src/views/BottomPanel/index.vue
index ad47edf..c88900e 100644
--- a/src/views/BottomPanel/index.vue
+++ b/src/views/BottomPanel/index.vue
@@ -1,6 +1,8 @@
@@ -10,4 +12,43 @@ defineOptions({
});
-
+
diff --git a/src/views/Main/index.vue b/src/views/Main/index.vue
index bcca8c8..96c389e 100644
--- a/src/views/Main/index.vue
+++ b/src/views/Main/index.vue
@@ -1,17 +1,22 @@
-
+
+
-
+
+
-
+
@@ -26,9 +31,38 @@ import InspectionCard from "./InspectionCard/index.vue";
import SafetyOverviewCard from "./SafetyOverviewCard/index.vue";
import Map from "./Map/index.vue";
+import RegionSelect from "../RegionSelect/index.vue";
+import { onBeforeUnmount, onMounted, ref } from "vue";
defineOptions({
name: "main",
});
+const showLeftDrawer = ref(true);
+const showRightDrawer = ref(true);
+const showBottomPanel = ref(true);
+
+onMounted(() => {
+ window.$bus.$on("open-left-panel", () => {
+ showLeftDrawer.value = true;
+ });
+ window.$bus.$on("close-left-panel", () => {
+ showLeftDrawer.value = false;
+ });
+ window.$bus.$on("open-right-panel", () => {
+ showRightDrawer.value = true;
+ });
+ window.$bus.$on("close-right-panel", () => {
+ showRightDrawer.value = false;
+ });
+ window.$bus.$on("open-bottom-panel", () => {
+ showBottomPanel.value = true;
+ });
+ window.$bus.$on("close-bottom-panel", () => {
+ showBottomPanel.value = false;
+ });
+});
+onBeforeUnmount(() => {
+ window.$bus.$all_off();
+});
diff --git a/src/views/RegionSelect/index.vue b/src/views/RegionSelect/index.vue
new file mode 100644
index 0000000..5ae329a
--- /dev/null
+++ b/src/views/RegionSelect/index.vue
@@ -0,0 +1,56 @@
+
+
+ 行政区划
+
+
+
+
+
+
+
+
+