From 2592dc279ec82bf3649a4dbe644c6416263a10ef Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 07 三月 2025 17:10:25 +0800
Subject: [PATCH] 各模块功能新增

---
 src/views/satellitetelemetry/component/SatelliteSearchBar.vue |   46 +++++++++++++++++++++++-----------------------
 1 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/src/views/satellitetelemetry/component/SatelliteSearchBar.vue b/src/views/satellitetelemetry/component/SatelliteSearchBar.vue
index 2533597..918112a 100644
--- a/src/views/satellitetelemetry/component/SatelliteSearchBar.vue
+++ b/src/views/satellitetelemetry/component/SatelliteSearchBar.vue
@@ -1,24 +1,21 @@
 <template>
   <!-- <el-row> -->
-    <!-- <el-col :span="20"> -->
-      <el-form label-position="right" label-width="60px" :inline="false">
-        <el-form-item label="鍖哄煙">
-          <OptionLocation2
-            :level="3"
-            :initValue="true"
-            :checkStrictly="false"
-            :allOption="true"
-            v-model="location"
-          ></OptionLocation2>
-        </el-form-item>
-        <OptionGridGroup
-          ref="gridGroupRef"
-          v-model="gridGroup"
-        ></OptionGridGroup>
-      </el-form>
-    <!-- </el-col> -->
-    <!-- <el-col :span="4"> -->
-      <!-- <el-form-item>
+  <!-- <el-col :span="20"> -->
+  <el-form label-position="right" label-width="60px" :inline="false">
+    <el-form-item label="鍖哄煙">
+      <OptionLocation2
+        :level="3"
+        :initValue="true"
+        :checkStrictly="false"
+        :allOption="true"
+        v-model="location"
+      ></OptionLocation2>
+    </el-form-item>
+    <OptionGridGroup ref="gridGroupRef" v-model="gridGroup"></OptionGridGroup>
+  </el-form>
+  <!-- </el-col> -->
+  <!-- <el-col :span="4"> -->
+  <!-- <el-form-item>
         <el-button
           :loading="loading"
           :disabled="!gridGroup"
@@ -30,25 +27,26 @@
           鏌ヨ
         </el-button>
       </el-form-item> -->
-    <!-- </el-col> -->
+  <!-- </el-col> -->
   <!-- </el-row> -->
 </template>
 <script setup>
 import { ref, watch } from 'vue';
 
 defineProps({
-  loading: Boolean,
+  loading: Boolean
 });
 
 const location = ref(undefined);
 const gridGroup = ref(undefined);
 const gridGroupRef = ref(null);
+const area = ref({});
 
 const emits = defineEmits(['search']);
 
 watch(location, (nv, ov) => {
   if (nv != ov) {
-    const area = {
+    area.value = {
       provinceCode: nv.pCode,
       provinceName: nv.pName,
       cityCode: nv.cCode,
@@ -58,7 +56,7 @@
       townCode: nv.tCode,
       townName: nv.tName
     };
-    gridGroupRef.value.fetchGridGroup(area);
+    gridGroupRef.value.fetchGridGroup(area.value, 'origin');
   }
 });
 
@@ -73,4 +71,6 @@
 function handleClick() {
   emits('search', gridGroup.value);
 }
+
+defineExpose({ area });
 </script>

--
Gitblit v1.9.3