From 2cb7fb5ed332bc92e8164da8cc8754d32c8adcd9 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 27 Nov 2025 09:38:34 +0800
Subject: [PATCH] Merge branch 'feature/v8.0/8.0.4' into test

---
 src/views/tickets/component/SearchBox.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/views/tickets/component/SearchBox.vue b/src/views/tickets/component/SearchBox.vue
index 90293a6..05d7d21 100644
--- a/src/views/tickets/component/SearchBox.vue
+++ b/src/views/tickets/component/SearchBox.vue
@@ -115,6 +115,9 @@
 const aiTypeList = inject('aiTypeList')
 
 watch(activeTab, (newTab, oldTab) => {
+  if (newTab === 'all') {
+    searchForm.status = ''
+  }
   if(newTab === 'WAIT_AUDIT') {
     searchForm.status = '1'
   }
@@ -124,7 +127,8 @@
   if(newTab === 'PASS') {
     searchForm.status = '3'
   }
-}, { immediate: true })
+  emit('search', searchForm);
+})
 
 // 周期
 const cycles = ref(['每天', '周一', '周二', '周三', '周四', '周五', '周六', '周末', '周天', '工作日'])
@@ -172,7 +176,9 @@
   searchForm.deal_time = ""
   searchForm.file_id = ""
   searchForm.key_word = ""
-  searchForm.status = ''
+  if (activeTab.value === 'all') {
+    searchForm.status = ''
+  }
   searchForm.rep_fre_type = ''
   dateRange.value = ''
   searchForm.create_start_date = null

--
Gitblit v1.9.3