| | |
| | | // 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 |
| | |
| | | const DeviceShowSwitch = ref(false) |
| | | const DangerShowSwitch = ref(false) |
| | | const DangerPoint = ref([]) |
| | | // 泥位计 |
| | | const selectNWJ = ref() |
| | | // 监测设备列表 |
| | | const devices = ref([]) |
| | | const navigationShow = ref(true) |
| | |
| | | const startMNPG = () => { |
| | | init() |
| | | isShowEarth.value = false |
| | | |
| | | } |
| | | |
| | | const setBackToHome = (value) => { |
| | |
| | | |
| | | // 导航点击 |
| | | const handleNavClick = (index) => { |
| | | showDeviceDetail.value = false; |
| | | switch (index) { |
| | | case 1: |
| | | startYHGL() |
| | |
| | | schemWaterInfo, |
| | | layerDate, |
| | | rePlayList, |
| | | selectNWJ, |
| | | openDia, |
| | | crossSection, |
| | | |
| | | // 方案相关方法 |
| | | setSchemCard, |