guonan
2025-06-06 cf4ed06dea0076e518319de24c5120bb3fe0dae9
src/store/simulation.js
@@ -23,12 +23,12 @@
    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()
    // 降雨单位
@@ -58,8 +58,6 @@
        rightRiverShow.value = false
        showPreview.value = false
        deviceShow.value = false
        showResultAssess.value = false
        showDangerAssess.value = false
        schemCard.value = []
    }
@@ -102,24 +100,31 @@
        init()
        flyToHomeView()
        locationShow.value = true
        isShowEarth.value = true
    }
    const startZHJC = () => {
        init()
        flyToHomeView()
        functionShow.value = true
        deviceShow.value = true
        isShowEarth.value = true
    }
    const startMNFZ = () => {
        init()
        flyToHomeView()
        leftShow.value = true
        // rightRiverShow.value = true
        isShowEarth.value = false
    }
    const startMNPG = () => {
        init()
        // showResultAssess.value = true
        // showDangerAssess.value = true
        isShowEarth.value = false
    }
    const setBackToHome = (value) => {
@@ -162,9 +167,7 @@
        weatherShow,
        barShow,
        deviceShow,
        showResultAssess,
        showLayerTree,
        showDangerAssess,
        schemCard,
        backToHome,
        rainFalls,
@@ -172,6 +175,7 @@
        DangerPoint,
        DeviceShowSwitch,
        DangerShowSwitch,
        isShowEarth,
        // 方案相关方法
        setSchemCard,