feat(calls): 微信语音 tab 对齐云客列(通话信息/客户/员工微信/员工信息/录音/时长)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
浅念
2026-08-07 10:57:17 +08:00
parent ca3a2a2d3d
commit f4dc115129
+39 -5
View File
@@ -157,6 +157,42 @@ onMounted(load)
empty-text="暂无通话记录"
@row-click="openDrawer"
>
<template v-if="callType === 'voice_call'">
<el-table-column label="通话信息" min-width="150">
<template #default="{ row }">
<div>通话状态:{{ callStatusLabel(row.call_status) }}</div>
<div class="yk-cell__sub">类型:{{ callTypeLabel(row.channel) }}</div>
<div class="yk-cell__sub">来源:{{ cell(row, 'from') ?? '--' }}</div>
</template>
</el-table-column>
<el-table-column label="客户信息" min-width="150">
<template #default="{ row }">
<div>{{ cell(row, 'talkerNickName') || '--' }}</div>
<div class="yk-cell__sub">{{ row.call_number || cell(row, 'talker') || '--' }}</div>
</template>
</el-table-column>
<el-table-column label="员工微信" min-width="150">
<template #default="{ row }">
<div>{{ cell(row, 'userWeChatNickName') || '--' }}</div>
<div class="yk-cell__sub">{{ cell(row, 'userWeChatAlias') || cell(row, 'weChatId') || '--' }}</div>
</template>
</el-table-column>
<el-table-column label="员工信息" min-width="130">
<template #default="{ row }">
<div>{{ row.user_id_name || '--' }}</div>
<div class="yk-cell__sub">{{ cell(row, 'userPhone') || '--' }}</div>
</template>
</el-table-column>
<el-table-column label="通话录音" width="110" align="center">
<template #default="{ row }">
<el-button v-if="row.record_file || cell(row, 'recordFile')" size="small" type="primary" link @click.stop="playRecord(row)">播放</el-button>
<span v-else style="color:#c0c4cc">--</span>
</template>
</el-table-column>
<el-table-column label="通话时长" width="100" align="right">
<template #default="{ row }">{{ formatCallDuration(row.call_duration) }}</template>
</el-table-column>
</template>
<el-table-column label="时间" width="160">
<template #default="{ row }">
{{ formatTime(row.start_call_time ?? timeCell(row, 'startCallTime')) }}
@@ -301,11 +337,9 @@ onMounted(load)
font-size: 13px;
}
.yk-calls__filters {
display: flex;
gap: 8px;
align-items: center;
flex-wrap: wrap;
.yk-cell__sub {
color: #909399;
font-size: 12px;
}
.yk-calls__pager {