Riku
2025-03-02 de6fd089b37613808e5a3bef38ecc0761f7456e0
src/views/satellitetelemetry/component/SatelliteSearchBar.vue
@@ -1,6 +1,6 @@
<template>
  <el-row>
    <el-col :span="20">
  <!-- <el-row> -->
    <!-- <el-col :span="20"> -->
      <el-form label-position="right" label-width="60px" :inline="false">
        <el-form-item label="区域">
          <OptionLocation2
@@ -16,9 +16,9 @@
          v-model="gridGroup"
        ></OptionGridGroup>
      </el-form>
    </el-col>
    <el-col :span="4">
      <el-form-item>
    <!-- </el-col> -->
    <!-- <el-col :span="4"> -->
      <!-- <el-form-item>
        <el-button
          :loading="loading"
          :disabled="!gridGroup"
@@ -29,15 +29,15 @@
        >
          查询
        </el-button>
      </el-form-item>
    </el-col>
  </el-row>
      </el-form-item> -->
    <!-- </el-col> -->
  <!-- </el-row> -->
</template>
<script setup>
import { ref, watch } from 'vue';
defineProps({
  loading: Boolean
  loading: Boolean,
});
const location = ref(undefined);
@@ -63,8 +63,9 @@
});
watch(gridGroup, (nv, ov) => {
  // 首次进入自动触发一次查询事件
  if (ov == undefined && nv != ov) {
  // 自动触发一次查询事件
  // if (ov == undefined && nv != ov) {
  if (nv != ov) {
    handleClick();
  }
});