| | |
| | | import { defineStore } from 'pinia' |
| | | import { ref } from 'vue' |
| | | export const useSimStore = defineStore('simulation', () => { |
| | | // 目录树选中 |
| | | const userSelectedLayers = ref([]) |
| | | |
| | | // 隐患点列表 |
| | | const DangerPoint = ref([]) |
| | | const DeviceShowSwitch = ref(false) |
| | | const DangerShowSwitch = ref(false) |
| | | const DangerPoint = ref([]) |
| | | // 监测设备列表 |
| | | const devices = ref([]) |
| | | const navigationShow = ref(true) |
| | |
| | | } |
| | | } |
| | | |
| | | const updateSelectedLayers = (keys) => { |
| | | userSelectedLayers.value = keys; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | DangerShowSwitch, |
| | | waterLegendData, |
| | | isShowEarth, |
| | | userSelectedLayers, |
| | | devices, |
| | | |
| | | // 方案相关方法 |
| | |
| | | startMNFZ, |
| | | startMNPG, |
| | | handleNavClick, |
| | | updateSelectedLayers |
| | | } |
| | | }) |