riku
2025-02-24 d83a3ab6e99e364d45cf85a5c00367c583ef4e31
Merge branch 'master-temp' of ssh://114.215.109.124:29418/satellite-vue into master-temp
已修改2个文件
36 ■■■■■ 文件已修改
src/views/satellitetelemetry/SatelliteProxy.js 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/satellitetelemetry/SatelliteTelemetry.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/satellitetelemetry/SatelliteProxy.js
@@ -51,8 +51,19 @@
}
function clearText(mapViews) {
  if (mapViews && typeof mapViews.textViews === 'object') {
    map.remove(mapViews.textViews);
  if (mapViews) {
    if (typeof mapViews.dataTxt === 'object') {
      map.remove(mapViews.dataTxt);
    }
    if (typeof mapViews.dataLayer === 'object') {
      map.remove(mapViews.dataLayer);
    }
    if (typeof mapViews.rankTxt === 'object') {
      map.remove(mapViews.rankTxt);
    }
    if (typeof mapViews.rankLayer === 'object') {
      map.remove(mapViews.rankLayer);
    }
  }
}
src/views/satellitetelemetry/SatelliteTelemetry.vue
@@ -1,6 +1,24 @@
<template>
  <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"
@@ -44,7 +62,7 @@
import marks from '@/utils/map/marks';
import grid from '@/utils/map/grid';
import { ref } from 'vue';
import { ref, onMounted } from 'vue';
import gridApi from '@/api/gridApi';
import SatelliteManage from './component/SatelliteManage.vue';
import SatelliteDataMix from './component/SatelliteDataMix.vue';
@@ -71,6 +89,7 @@
// 查询网格信息和遥感数据组
function onSearch(options) {
  satelliteGridStore.fetchGridCell(options.id).then(() => {
    SatelliteProxy.clearText(mapViews);
    drawGrid(satelliteGridStore.gridInfo);
    // initDistrict();
    SatelliteProxy.drawDistrict('长宁区');