From 89380e6260a75d1d3b94de687ebcc2f50d50659d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 03 Feb 2026 15:44:33 +0800
Subject: [PATCH] feat:环境变量配置调整

---
 uniapps/work-app/src/pages/work/index.vue |   32 ++++++++++++++++++++++++++++----
 1 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/uniapps/work-app/src/pages/work/index.vue b/uniapps/work-app/src/pages/work/index.vue
index 7295f81..d0a0221 100644
--- a/uniapps/work-app/src/pages/work/index.vue
+++ b/uniapps/work-app/src/pages/work/index.vue
@@ -2,7 +2,7 @@
   <div class="eventTickets" :style="{ paddingTop: topMargin + 'px' }">
 
     <div class="searchTop">
-      <up-search placeholder="请输入关键字搜索"  :animation="true"  v-model="listParams.keyword" :show-action="false" @search="handleSearch"></up-search>
+      <up-search placeholder="请输入关键字搜索"  :animation="true"  v-model="listParams.keyword" :show-action="false" @search="handleSearch" @clear="handleClear"></up-search>
     </div>
     <div class="listBox">
       <div class="tabs-container">
@@ -18,6 +18,11 @@
               <div class="itemContent">{{formatDate(item.createTime) }}</div>
             </div>
           </div>
+        </div>
+
+        <!-- 暂无数据提示 -->
+        <div class="noData" v-if="!loading && dataList.length === 0">
+          <text>暂无数据</text>
         </div>
 
         <!-- 加载提示 -->
@@ -117,11 +122,11 @@
 		tabList.value.forEach(tab=>{
 
 			if(tab.key === 'all'){
-				tab.badge.value = totalCount || 0
+        tab.badge.value = (totalCount || 0).toString()
         tab.badge.showZero = true
 
 			}else if(tab.key === 'myTickets'){
-				tab.badge.value = myCount || 0
+				tab.badge.value = (myCount || 0).toString()
         tab.badge.showZero = true
 			}
 		})
@@ -151,6 +156,15 @@
 
 // 搜索功能
 const handleSearch = () => {
+  listParams.value.current = 1
+  hasMore.value = true
+  dataList.value = []
+  getDataList()
+  getstatusCountData()
+}
+// 清除搜索
+const handleClear = () => {
+  listParams.value.keyword = ''
   listParams.value.current = 1
   hasMore.value = true
   dataList.value = []
@@ -200,7 +214,7 @@
     }
     .u-badge {
       background-color: #1d6fe9 !important;
-      margin-top: -17px !important;
+      margin-top: -14px !important;
       margin-left: -5px !important;
     }
   }
@@ -295,5 +309,15 @@
     color: #999;
     width: 100%;
   }
+
+  .noData {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    height: 300rpx;
+    font-size: 28rpx;
+    color: #999;
+    width: 100%;
+  }
 }
 </style>

--
Gitblit v1.9.3