| | |
| | | </el-row> --> |
| | | </template> |
| | | <script setup> |
| | | import { map, onMapMounted } from '@/utils/map/index_old'; |
| | | import calculate from '@/utils/map/calculate'; |
| | | import marks from '@/utils/map/marks'; |
| | | import grid from '@/utils/map/grid'; |
| | | |
| | | import { ref, onMounted } from 'vue'; |
| | | import gridApi from '@/api/gridApi'; |
| | | import SatelliteManage from './component/SatelliteManage.vue'; |
| | | import SatelliteDataMix from './component/SatelliteDataMix.vue'; |
| | | import SatelliteMixTool from './component/SatelliteMixTool.vue'; |
| | | import moment from 'moment'; |
| | | import GridStyleTool from './component/GridStyleTool.vue'; |
| | | import { SatelliteProxy } from './SatelliteProxy'; |
| | | import { useFetchData } from '@/composables/fetchData'; |
| | |
| | | |
| | | const gridStore = useGridStore(); |
| | | gridStore.selectedSatelliteProxy = satelliteProxy; |
| | | gridStore.pushGridClz(satelliteProxy); |
| | | |
| | | const sceneStore = useSceneStore(); |
| | | const satelliteGridStore = useSatelliteGridStore(); |
| | | |
| | |
| | | }); |
| | | } |
| | | |
| | | function drawGrid(gridDataDetail) { |
| | | satelliteProxy.drawGrid({ |
| | | gridDataDetail: gridDataDetail, |
| | | useDataTxtColor: true |
| | | function drawGrid(useCustomColor) { |
| | | satelliteProxy.changeVisibility({ |
| | | showGridViews: false, |
| | | showDataTxt: false, |
| | | showRankTxt: false |
| | | }); |
| | | satelliteProxy.drawTagGrid({ |
| | | tag: satelliteGridStore.selectedGridData.id, |
| | | gridDataDetail: satelliteGridStore.selectedGridDataDetail, |
| | | useCustomColor, |
| | | useDataTxtColor: true, |
| | | extData: { |
| | | name: `卫星遥测数据 - ${moment(satelliteGridStore.selectedGridData).format('YYYY-MM-DD')}` |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function handleRowClick(row) { |
| | | satelliteGridStore.fetchGridDataDetail(row, drawGrid); |
| | | satelliteGridStore.fetchGridDataDetail(row, () => { |
| | | drawGrid(); |
| | | }); |
| | | } |
| | | |
| | | function handleRankClick(rankVisible) { |
| | |
| | | } |
| | | |
| | | function handleColorClick(isStandardColor) { |
| | | satelliteProxy.drawGrid({ |
| | | gridDataDetail: satelliteGridStore.selectedGridDataDetail, |
| | | useCustomColor: !isStandardColor, |
| | | useDataTxtColor: true |
| | | }); |
| | | drawGrid(!isStandardColor); |
| | | } |
| | | |
| | | function handleOpacityClick(value) { |