feat: 工单系统优化 - 修复自动跳转问题并添加用户筛选功能
Build and Deploy Vue3 / build (push) Successful in 1m8s
Build and Deploy Vue3 / deploy (push) Successful in 1m28s

- 修复工单详情页定时刷新导致的自动跳转问题
- 添加用户搜索选择器,支持按用户筛选工单
- 优化用户搜索体验,使用对话框模式
- 修正API响应数据结构解析
This commit is contained in:
2026-01-07 17:21:01 +08:00
parent 1655d86f6b
commit 2ce2c1a31f
3 changed files with 262 additions and 24 deletions
+2 -1
View File
@@ -892,7 +892,8 @@ const goToUserDetail = () => {
// 定时刷新
const startAutoRefresh = () => {
refreshTimer.value = setInterval(() => {
if (ticketInfo.value?.status !== 'completed') {
// 只有当前路由仍在工单详情页且工单未完成时才刷新
if (route.path === '/ticket/detail' && route.query.id && ticketInfo.value?.status !== 'completed') {
fetchTicketDetail(false) // 定时刷新时不显示 loading
}
}, 10000)