From 2447985cb2935f91bb743215795961c7696eebd0 Mon Sep 17 00:00:00 2001 From: lbw_9527443 <780139497@qq.com> Date: Mon, 15 Sep 2025 11:29:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor(views):=20=E7=A7=BB=E9=99=A4=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=A1=B5=E9=9D=A2=E5=B9=B6=E6=B8=85=E7=90=86=E6=A8=A1?= =?UTF-8?q?=E6=8B=9F=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除不再使用的缓存测试页面 CacheTest.vue 清理 MemberDetails.vue 中的模拟录音数据,准备接入真实API --- .../maneger/components/MemberDetails.vue | 30 +-- my-vue-app/src/views/test/CacheTest.vue | 173 ------------------ 2 files changed, 1 insertion(+), 202 deletions(-) delete mode 100644 my-vue-app/src/views/test/CacheTest.vue diff --git a/my-vue-app/src/views/maneger/components/MemberDetails.vue b/my-vue-app/src/views/maneger/components/MemberDetails.vue index ad86043..e5875d2 100644 --- a/my-vue-app/src/views/maneger/components/MemberDetails.vue +++ b/my-vue-app/src/views/maneger/components/MemberDetails.vue @@ -228,35 +228,7 @@ const formatAmount = (amount) => { // 获取成员录音列表 const getRecordingsForMember = (member) => { // 模拟录音数据,实际项目中应该从API获取 - const recordings = [ - { - id: 1, - title: '客户咨询 - 张先生', - date: '2024-01-15 14:30', - duration: '12:35', - type: 'consultation', - typeLabel: '咨询', - fileUrl: '/recordings/test_recording.m4a' // 使用测试文件 - }, - { - id: 2, - title: '跟进回访 - 李女士', - date: '2024-01-15 10:15', - duration: '8:42', - type: 'followup', - typeLabel: '回访', - fileUrl: '/recordings/test_recording.m4a' // 使用测试文件 - }, - { - id: 3, - title: '成交确认 - 王总', - date: '2024-01-14 16:20', - duration: '15:18', - type: 'deal', - typeLabel: '成交', - fileUrl: '/recordings/test_recording.m4a' // 使用测试文件 - } - ] + const recordings = [] // 根据成员ID返回对应的录音,这里简化处理 return recordings.slice(0, Math.min(3, member?.calls || 0)) diff --git a/my-vue-app/src/views/test/CacheTest.vue b/my-vue-app/src/views/test/CacheTest.vue deleted file mode 100644 index 17072be..0000000 --- a/my-vue-app/src/views/test/CacheTest.vue +++ /dev/null @@ -1,173 +0,0 @@ - - - 缓存系统测试页面 - - - 缓存统计信息 - - 总缓存数量: {{ cacheStats.totalCount }} - 有效缓存数量: {{ cacheStats.validCount }} - 过期缓存数量: {{ cacheStats.expiredCount }} - 缓存时长: {{ cacheStats.duration }} - - - - - 缓存操作 - - 刷新统计 - 清除所有缓存 - 清除过期缓存 - - - - - 缓存详情 - - - 有效缓存列表: - - - {{ cache.key }} - 存活时间: {{ cache.age }} - - - - - 暂无有效缓存 - - - - - - - - - \ No newline at end of file
总缓存数量: {{ cacheStats.totalCount }}
有效缓存数量: {{ cacheStats.validCount }}
过期缓存数量: {{ cacheStats.expiredCount }}
缓存时长: {{ cacheStats.duration }}
暂无有效缓存