feat(agent): 坐席端左栏会话状态 Tab 顺序调整 + 默认显示待处理 (#134)

**改动**
- `src/frontend-agent/src/components/conversation/ConversationList.vue`
  - `filterTags` 数组顺序倒置:`[全部, 待处理, 进行中, 已完成]` → `[待处理, 进行中, 已完成, 全部]`
  - `activeFilter` 初始值 `'all'` → `'pending'`(坐席日常首选入口)
- `docs/07-项目管理/任务说明书/任务说明书-134-坐席端左栏会话状态Tab顺序调整+默认显示待处理.md`(新增)

**未改**
- 不动 store(`myConversations` / `colleagueConversations` / `historyConversations` 划分准确)
- 不动 `applyFilters` 逻辑(status 映射正确:pending→queued、active→serving/ai_handling、done→resolved)
- 不动 ConversationItem.vue / 样式 / backend API
- 不重命名 `activeFilter` 的 key(保持 `'pending' | 'active' | 'done' | 'all'` 后向兼容)

**部署**
- 构建:`npm run build` 6.20s 通过,新 main chunk `index-BK_U7e10.js`(旧 `index-BDGZ_gcJ.js`),Workspace chunk 唯一 `D44-5RYv.js`
- 打包:`packages/frontend-agent-dist-0803-133.tar.gz` 576,913B(25 个文件,0 累积污染)
- jumpserver-V2 全程免登录(cache 19.7h 内有效)
- 备份链:`/opt/wecom-it-desk/frontend-agent/dist.bak.0803_pre133`

**验证**
- 服务端(curl 绕用户/CDN 缓存):HTTP 200 + main JS hash 变更 + Workspace=1 + 备份存在 
- 浏览器无痕模式:用户 2026-08-03 17:48 确认"显示已更新"(默认激活"待处理" + Tab 顺序倒置)
- v1.2 原型与实际页面 Tab 顺序一致 

**任务编号修正**
- 起草时用了 #133,但该编号已被当日另一任务 `voice_asr.py POST /asr auth 加固` 占用
- 沿用 #132 后下一个空号 → 实际为 **#134**
This commit is contained in:
Simon
2026-08-03 17:49:42 +08:00
parent a20606f328
commit 566bb46cd4
2 changed files with 189 additions and 5 deletions
@@ -106,12 +106,11 @@ interface FilterTag {
}
const filterTags: FilterTag[] = [
{ key: 'all', label: '全部' },
{ key: 'pending', label: '待处理' },
{ key: 'active', label: '进行中' },
{ key: 'done', label: '已完成' },
]
{ key: 'all', label: '全部' },
] // ⚠️ #133 v1.2:「全部」移至末位
// ============================================================================
// 状态
// ============================================================================
@@ -122,8 +121,8 @@ const conversationStore = useConversationStore()
/** 搜索关键词 */
const searchKeyword = ref('')
/** 当前筛选标签 */
const activeFilter = ref<string>('all')
/** 当前筛选标签#133 v1.2:默认进入"待处理" */
const activeFilter = ref<string>('pending')
// ============================================================================
// 计算属性