From ce37640c757ccb9fb0ea02d6c538c9a844265557 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Sat, 06 Dec 2025 17:27:32 +0800
Subject: [PATCH] Merge branch 'feature/v8.0/8.0.4' into prod

---
 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