From 7eb2abf43167d9db3fca2e7958b90ff1bea0cead Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期一, 03 三月 2025 13:54:31 +0800 Subject: [PATCH] 污染溯源模块编写中 --- src/stores/grid-info.js | 34 ++++++++-------------------------- 1 files changed, 8 insertions(+), 26 deletions(-) diff --git a/src/stores/grid-info.js b/src/stores/grid-info.js index 7abfcbb..c193329 100644 --- a/src/stores/grid-info.js +++ b/src/stores/grid-info.js @@ -1,29 +1,11 @@ -// import { ref } from 'vue'; -// import { defineStore } from 'pinia'; -// import { useFetchData } from '@/composables/fetchData'; -// import sceneInfoApi from '@/api/sceneInfoApi'; -// import { useToolboxStore } from '@/stores/toolbox'; +import { ref } from 'vue'; +import { defineStore } from 'pinia'; -// const toolboxStore = useToolboxStore(); +// 璧拌埅璁惧 +export const useGridStore = defineStore('grid', () => { + const selectedSatelliteProxy = undefined; -// // 璧拌埅璁惧 -// export const useGridStore = defineStore('grid', () => { -// const selectedGrid = ref(undefined); + const selectedGridCellAndDataDetail = ref(undefined); -// function searchScene(lng, lat) { -// // if (toolboxStore.sceneSearchStatus) { -// return fetchData(() => { -// return sceneInfoApi -// .searchByCoordinate(lng, lat, radius.value * 1000) -// .then((res) => { -// sceneList.value = res.data.filter((v) => { -// return v.typeId != 19 && v.typeId != 20; -// }); -// return res; -// }); -// }); -// // } -// } - -// return { radius, sceneList, loading, searchScene }; -// }); + return { selectedSatelliteProxy, selectedGridCellAndDataDetail }; +}); -- Gitblit v1.9.3