feat(calls): 电话 tab 保留通用 8 列(按 channel 分离列集)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -220,47 +220,49 @@ onMounted(load)
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</template>
|
</template>
|
||||||
<el-table-column label="时间" width="160">
|
<template v-if="callType === 'phone_call'">
|
||||||
<template #default="{ row }">
|
<el-table-column label="时间" width="160">
|
||||||
{{ formatTime(row.start_call_time ?? timeCell(row, 'startCallTime')) }}
|
<template #default="{ row }">
|
||||||
</template>
|
{{ formatTime(row.start_call_time ?? timeCell(row, 'startCallTime')) }}
|
||||||
</el-table-column>
|
</template>
|
||||||
<el-table-column label="员工" min-width="130">
|
</el-table-column>
|
||||||
<template #default="{ row }">
|
<el-table-column label="员工" min-width="130">
|
||||||
{{ row.user_id_name || row.user_id || '--' }}
|
<template #default="{ row }">
|
||||||
</template>
|
{{ row.user_id_name || row.user_id || '--' }}
|
||||||
</el-table-column>
|
</template>
|
||||||
<el-table-column label="号码" min-width="130">
|
</el-table-column>
|
||||||
<template #default="{ row }">
|
<el-table-column label="号码" min-width="130">
|
||||||
{{ row.call_number || row.sim_phone || '--' }}
|
<template #default="{ row }">
|
||||||
</template>
|
{{ row.call_number || row.sim_phone || '--' }}
|
||||||
</el-table-column>
|
</template>
|
||||||
<el-table-column label="方向" width="80">
|
</el-table-column>
|
||||||
<template #default="{ row }">{{ callDirectionLabel(row.incoming_call) }}</template>
|
<el-table-column label="方向" width="80">
|
||||||
</el-table-column>
|
<template #default="{ row }">{{ callDirectionLabel(row.incoming_call) }}</template>
|
||||||
<el-table-column label="类型" width="100">
|
</el-table-column>
|
||||||
<template #default="{ row }">{{ callTypeLabel(row.channel) }}</template>
|
<el-table-column label="类型" width="100">
|
||||||
</el-table-column>
|
<template #default="{ row }">{{ callTypeLabel(row.channel) }}</template>
|
||||||
<el-table-column label="时长" width="90" align="right">
|
</el-table-column>
|
||||||
<template #default="{ row }">{{ formatCallDuration(row.call_duration) }}</template>
|
<el-table-column label="时长" width="90" align="right">
|
||||||
</el-table-column>
|
<template #default="{ row }">{{ formatCallDuration(row.call_duration) }}</template>
|
||||||
<el-table-column label="状态" width="90">
|
</el-table-column>
|
||||||
<template #default="{ row }">{{ callStatusLabel(row.call_status) }}</template>
|
<el-table-column label="状态" width="90">
|
||||||
</el-table-column>
|
<template #default="{ row }">{{ callStatusLabel(row.call_status) }}</template>
|
||||||
<el-table-column label="录音" width="100" align="center">
|
</el-table-column>
|
||||||
<template #default="{ row }">
|
<el-table-column label="录音" width="100" align="center">
|
||||||
<el-button
|
<template #default="{ row }">
|
||||||
v-if="row.record_file || cell(row, 'recordFile')"
|
<el-button
|
||||||
size="small"
|
v-if="row.record_file || cell(row, 'recordFile')"
|
||||||
type="primary"
|
size="small"
|
||||||
link
|
type="primary"
|
||||||
@click.stop="playRecord(row)"
|
link
|
||||||
>
|
@click.stop="playRecord(row)"
|
||||||
播放录音
|
>
|
||||||
</el-button>
|
播放录音
|
||||||
<span v-else style="color: #c0c4cc">--</span>
|
</el-button>
|
||||||
</template>
|
<span v-else style="color: #c0c4cc">--</span>
|
||||||
</el-table-column>
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</template>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<div class="yk-calls__pager">
|
<div class="yk-calls__pager">
|
||||||
|
|||||||
Reference in New Issue
Block a user