riku
2025-03-07 2592dc279ec82bf3649a4dbe644c6416263a10ef
src/views/satellitetelemetry/SatelliteTelemetry.vue
@@ -1,26 +1,7 @@
<template>
  <SatelliteMixTool :group-id="3"></SatelliteMixTool>
  <el-row justify="space-between">
  <el-row class="wrap">
    <el-col span="2">
      <!-- <div class="p-events-auto">
        <el-button
          type="primary"
          class="el-button-custom"
          size="small"
          @click="previousGrid"
        >
          上一个
        </el-button>
        <el-button
          type="primary"
          class="el-button-custom"
          size="small"
          @click="nextGrid"
        >
          下一个
        </el-button>
      </div> -->
      <el-row>
        <SatelliteManage
          v-show="show"
@@ -29,10 +10,6 @@
          :loading="loading"
          @search="onSearch"
          @row-click="handleRowClick"
          @show-rank="handleRankClick"
          @show-data="handleDataClick"
          @change-color="handleColorClick"
          @change-opacity="handleOpacityClick"
        ></SatelliteManage>
      </el-row>
    </el-col>
@@ -44,10 +21,20 @@
          @click="() => (show = !show)"
        ></CardButton>
      </el-row>
        <el-row class="flex-col">
          <GridStyleTool
            @show-rank="handleRankClick"
            @show-data="handleDataClick"
            @change-color="handleColorClick"
            @change-opacity="handleOpacityClick"
          ></GridStyleTool>
        </el-row>
    </el-col>
  </el-row>
  <SatelliteDataMix class="data-mix" @mix-data="handleMixDataClick">
  </SatelliteDataMix>
    <GridTool></GridTool>
  </el-row>
  <!-- <SatelliteDataMix class="data-mix" @mix-data="handleMixDataClick">
  </SatelliteDataMix> -->
  <!-- <el-row class="historical" justify="center">
    <SatelliteAnimation
@@ -68,6 +55,7 @@
import SatelliteManage from './component/SatelliteManage.vue';
import SatelliteDataMix from './component/SatelliteDataMix.vue';
import SatelliteMixTool from './component/SatelliteMixTool.vue';
import GridStyleTool from './component/GridStyleTool.vue';
import { SatelliteProxy } from './SatelliteProxy';
import { useFetchData } from '@/composables/fetchData';
import { useSatelliteGridStore } from '@/stores/satellite-grid';
@@ -155,7 +143,7 @@
    // });
  });
  satelliteProxy.setGridEvent('click', (e) => {
    const polygon = e.target
    const polygon = e.target;
    const { gridCell } = polygon.getExtData();
    const cellIndex = gridCell.cellIndex;
    const gridDataDetail =
@@ -168,7 +156,10 @@
}
function drawGrid(gridDataDetail) {
  satelliteProxy.drawGrid({ gridDataDetail: gridDataDetail });
  satelliteProxy.drawGrid({
    gridDataDetail: gridDataDetail,
    useDataTxtColor: true
  });
}
function handleRowClick(row) {
@@ -186,12 +177,13 @@
function handleColorClick(isStandardColor) {
  satelliteProxy.drawGrid({
    gridDataDetail: satelliteGridStore.selectedGridDataDetail,
    useCustomColor: !isStandardColor
    useCustomColor: !isStandardColor,
    useDataTxtColor: true
  });
}
function handleOpacityClick(isOpacity) {
  satelliteProxy.changeGridOpacity({ isOpacity });
function handleOpacityClick(value) {
  satelliteProxy.changeGridOpacity({ opacityValue: value });
}
function handleMixDataClick(gridData) {