guonan
8 天以前 d06f7ad0231d5fb029ab8520bf442590d3bab20b
src/store/simulation.js
@@ -1,7 +1,11 @@
// stores/ui.js
import { defineStore } from 'pinia'
import { ref } from 'vue'
import { showDeviceDetail } from "@/store";
export const useSimStore = defineStore('simulation', () => {
    // 断面数据
    const crossSection = ref([])
    const openDia = ref(true)
    // 历史回放列表
    const rePlayList = ref([])
    // 北京市所有村的code
@@ -16,6 +20,8 @@
    const DeviceShowSwitch = ref(false)
    const DangerShowSwitch = ref(false)
    const DangerPoint = ref([])
    // 泥位计
    const selectNWJ = ref()
    // 监测设备列表
    const devices = ref([])
    const navigationShow = ref(true)
@@ -48,6 +54,8 @@
    const rainFalls = ref()
    // 降雨单位
    const intensityUnit = ref()
    // 方案下水深流速等数据
    let schemWaterInfo = ref([])
    const setSelectedScheme = (scheme) => {
        selectedScheme.value = scheme;
@@ -150,7 +158,6 @@
    const startMNPG = () => {
        init()
        isShowEarth.value = false
    }
    const setBackToHome = (value) => {
@@ -159,6 +166,7 @@
    // 导航点击
    const handleNavClick = (index) => {
        showDeviceDetail.value = false;
        switch (index) {
            case 1:
                startYHGL()
@@ -213,8 +221,12 @@
        userSelectedLayers,
        devices,
        frameNum,
        schemWaterInfo,
        layerDate,
        rePlayList,
        selectNWJ,
        openDia,
        crossSection,
        // 方案相关方法
        setSchemCard,