| | |
| | | const weatherShow = ref(false) |
| | | const barShow = ref(false) |
| | | const deviceShow = ref(false) |
| | | const showResultAssess = ref(false) |
| | | const showLayerTree = ref(true) |
| | | const showDangerAssess = ref(false) |
| | | const schemCard = ref([]) |
| | | const backToHome = ref(false) |
| | | const selectedScheme = ref(null) |
| | | // 模拟仿真图例 |
| | | const isShowEarth = ref(false) |
| | | // 降雨数据列表 |
| | | const rainFalls = ref() |
| | | // 降雨单位 |
| | |
| | | rightRiverShow.value = false |
| | | showPreview.value = false |
| | | deviceShow.value = false |
| | | showResultAssess.value = false |
| | | showDangerAssess.value = false |
| | | schemCard.value = [] |
| | | } |
| | | |
| | |
| | | init() |
| | | flyToHomeView() |
| | | locationShow.value = true |
| | | isShowEarth.value = true |
| | | |
| | | } |
| | | |
| | | const startZHJC = () => { |
| | | init() |
| | | functionShow.value = true |
| | | deviceShow.value = true |
| | | isShowEarth.value = true |
| | | |
| | | } |
| | | |
| | | const startMNFZ = () => { |
| | | init() |
| | | leftShow.value = true |
| | | // rightRiverShow.value = true |
| | | isShowEarth.value = false |
| | | |
| | | } |
| | | |
| | | const startMNPG = () => { |
| | | init() |
| | | // showResultAssess.value = true |
| | | // showDangerAssess.value = true |
| | | isShowEarth.value = false |
| | | |
| | | } |
| | | |
| | | const setBackToHome = (value) => { |
| | |
| | | weatherShow, |
| | | barShow, |
| | | deviceShow, |
| | | showResultAssess, |
| | | showLayerTree, |
| | | showDangerAssess, |
| | | schemCard, |
| | | backToHome, |
| | | rainFalls, |
| | |
| | | DangerPoint, |
| | | DeviceShowSwitch, |
| | | DangerShowSwitch, |
| | | isShowEarth, |
| | | |
| | | // 方案相关方法 |
| | | setSchemCard, |
| | |
| | | <template> |
| | | <div id="gis-view" ref="mapRef"></div> |
| | | <!-- 切换底图影像 --> |
| | | <div @click="handleShow" class="diqiu"> |
| | | <div |
| | | @click="handleShow" |
| | | class="diqiu" |
| | | :class="{ 'shift-right': simStore.isShowEarth }" |
| | | > |
| | | <img src="@/assets/img/screen/dq.png" alt="" /> |
| | | </div> |
| | | <div v-show="picShow" class="earthBox"> |
| | | <div |
| | | v-show="picShow" |
| | | class="earthBox" |
| | | :class="{ 'shift-right': simStore.isShowEarth }" |
| | | > |
| | | <div |
| | | v-for="(item, index) in views" |
| | | :key="index" |
| | |
| | | import { getDistrictCount, getDistrictCountByCity } from "@/api/index"; |
| | | import { useRoute } from "vue-router"; |
| | | import { EventBus } from "@/eventBus"; // 引入事件总线 |
| | | import { useSimStore } from "@/store/simulation"; |
| | | const simStore = useSimStore(); |
| | | |
| | | const views = [ |
| | | { label: "地图", value: "map", icon: "地图.png" }, |
| | |
| | | .item-container.active .label { |
| | | background-color: rgba(33, 137, 103, 0.8); |
| | | } |
| | | |
| | | .diqiu.shift-right { |
| | | right: 10%; |
| | | } |
| | | .earthBox.shift-right { |
| | | right: 13%; |
| | | } |
| | | </style> |