|
@ -1,6 +1,6 @@ |
|
|
<template> |
|
|
<template> |
|
|
<LeftPanel> |
|
|
<LeftPanel> |
|
|
<Drawer style="width: 458px"> |
|
|
<Drawer style="width: 458px" v-if="showLeftDrawer"> |
|
|
<ProjectCountCard /> |
|
|
<ProjectCountCard /> |
|
|
<MonitoringCard /> |
|
|
<MonitoringCard /> |
|
|
<InspectionCard /> |
|
|
<InspectionCard /> |
|
@ -12,11 +12,11 @@ |
|
|
<div class="top"></div> |
|
|
<div class="top"></div> |
|
|
<div class="bottom"></div> |
|
|
<div class="bottom"></div> |
|
|
</div> |
|
|
</div> |
|
|
<Drawer style="width: 460px"> |
|
|
<Drawer style="width: 460px" v-if="showRightDrawer"> |
|
|
<SafetyOverviewCard /> |
|
|
<SafetyOverviewCard /> |
|
|
</Drawer> |
|
|
</Drawer> |
|
|
</RightPanel> |
|
|
</RightPanel> |
|
|
<BottomPanel></BottomPanel> |
|
|
<BottomPanel v-if="showBottomPanel"></BottomPanel> |
|
|
<Map></Map> |
|
|
<Map></Map> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -32,9 +32,37 @@ import SafetyOverviewCard from "./SafetyOverviewCard/index.vue"; |
|
|
|
|
|
|
|
|
import Map from "./Map/index.vue"; |
|
|
import Map from "./Map/index.vue"; |
|
|
import RegionSelect from "../RegionSelect/index.vue"; |
|
|
import RegionSelect from "../RegionSelect/index.vue"; |
|
|
|
|
|
import { onBeforeUnmount, onMounted, ref } from "vue"; |
|
|
defineOptions({ |
|
|
defineOptions({ |
|
|
name: "main", |
|
|
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(); |
|
|
|
|
|
}); |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped></style> |
|
|
<style scoped></style> |
|
|