fix(common-tools): 关键词共享按后端真实返回接统计四段与日志字段

/stats-grouped 是四段各自 GROUP BY(对齐桌面版弹窗),前端原先按
「国家×一级类目」交叉表建模 ⇒ 弹窗恒为暂无数据;/logs 返回 userName/time
而表格读 operator/createdAt ⇒ 两列恒为占位符。改为 API 层映射 + 四段渲染,
日志去掉后端不产出的「说明」列。
This commit is contained in:
2026-10-23 23:00:33 +08:00
parent 807ecaabe1
commit de4465730f
4 changed files with 193 additions and 406 deletions
@@ -15,7 +15,7 @@ import ElementPlus from 'element-plus'
import KeywordSharePage from '@/pages/common/KeywordSharePage.vue'
// API 层整模块 mock:纯函数(normalizeKeywordStatsGrouped)保留真实现,
// API 层整模块 mock:纯函数(buildKeywordStatsSections / mapKeywordShareLogs)保留真实现,
// 网络函数按用例给桩。页面经 shared/api/types/modules/keyword-share 调用。
const api = vi.hoisted(() => ({
fetchKeywordShareFilters: vi.fn(),