fix(ui): 微信群scope换列(群信息)+WA语音加操作列(播放/长语音)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
浅念
2026-08-15 16:01:56 +08:00
parent bcacf80a7b
commit 2cdbdf7283
+17 -4
View File
@@ -307,11 +307,18 @@ onMounted(load)
<div class="yk-cell__sub">来源:{{ cell(row, 'from') || '--' }}</div>
</template>
</el-table-column>
<el-table-column label="客户信息" min-width="150">
<!-- 客户信息(好友 scope) / 群信息(群 scope) — 云客微信好友/微信群两 tab 各自的列 -->
<el-table-column :label="voiceScope === 'group' ? '群信息' : '客户信息'" min-width="150">
<template #default="{ row }">
<el-button v-if="cell(row, 'talkerNickName')" link type="primary" size="small" @click.stop="viewCallCustomer(row)">{{ cell(row, 'talkerNickName') }}</el-button>
<span v-else>--</span>
<div class="yk-cell__sub">{{ row.call_number || cell(row, 'talker') || '--' }}</div>
<template v-if="voiceScope === 'group'">
<div>{{ cell(row, 'roomName') || cell(row, 'talker') || '--' }}</div>
<div class="yk-cell__sub">{{ cell(row, 'roomId') || '--' }}</div>
</template>
<template v-else>
<el-button v-if="cell(row, 'talkerNickName')" link type="primary" size="small" @click.stop="viewCallCustomer(row)">{{ cell(row, 'talkerNickName') }}</el-button>
<span v-else>--</span>
<div class="yk-cell__sub">{{ row.call_number || cell(row, 'talker') || '--' }}</div>
</template>
</template>
</el-table-column>
<el-table-column label="员工微信" min-width="150">
@@ -375,6 +382,12 @@ onMounted(load)
</div>
</template>
</el-table-column>
<el-table-column label="操作" width="150" fixed="right" align="center">
<template #default="{ row }">
<el-button v-if="row.record_media_hash || row.record_file || cell(row, 'ossFileName')" link type="primary" size="small" @click.stop="playRecord(row)">播放录音</el-button>
<el-button link type="primary" size="small" @click.stop="openVoiceClip(row)">查看长语音</el-button>
</template>
</el-table-column>
</template>
<template v-if="callType === 'phone_call'">
<el-table-column label="时间" width="160">