From b330e57051e54789eb83d10dc58c4d9d10c608e1 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期三, 17 九月 2025 09:55:19 +0800
Subject: [PATCH] 2025.9.17 数据产品模块(待完成)

---
 src/components/SearchBar.vue |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/components/SearchBar.vue b/src/components/SearchBar.vue
index 83835cb..c3609f4 100644
--- a/src/components/SearchBar.vue
+++ b/src/components/SearchBar.vue
@@ -22,7 +22,7 @@
           :type="2"
           v-model:value="formSearch.scenetype"
         ></FYOptionScene>
-        <el-form-item>
+        <el-form-item v-show="btnShow">
           <el-button type="primary" @click="onSubmit">鏌ヨ</el-button>
         </el-form-item>
       </el-form>
@@ -40,6 +40,17 @@
 
 export default {
   emits: ['onSubmit'],
+  props: {
+    btnShow: {
+      type: Boolean,
+      default: true
+    },
+    init: {
+      type: Boolean,
+      default: true
+    }
+  },
+
   data() {
     return {
       topTasks: [],
@@ -62,7 +73,9 @@
         });
         this.topTasks = list;
         this.formSearch.topTaskId = list[0].value;
-        this.onSubmit();
+        if (this.init) {
+          this.onSubmit();
+        }
       });
     },
     //鏌ヨ瀛愪换鍔$粺璁′俊鎭�
@@ -81,7 +94,8 @@
   },
   mounted() {
     this.getOptions();
-  }
+  },
+  expose: ['onSubmit']
 };
 </script>
 

--
Gitblit v1.9.3