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)
@@ -152,7 +158,6 @@
    const startMNPG = () => {
        init()
        isShowEarth.value = false
    }
    const setBackToHome = (value) => {
@@ -161,6 +166,7 @@
    // 导航点击
    const handleNavClick = (index) => {
        showDeviceDetail.value = false;
        switch (index) {
            case 1:
                startYHGL()
@@ -218,6 +224,9 @@
        schemWaterInfo,
        layerDate,
        rePlayList,
        selectNWJ,
        openDia,
        crossSection,
        // 方案相关方法
        setSchemCard,