|
@@ -249,6 +249,9 @@
|
|
|
class="w100"
|
|
|
>
|
|
|
<template #empty> 暂无数据 </template>
|
|
|
+ <template #operation="{ row }">
|
|
|
+ <el-button link type="primary" @click="onPlayRecord(row)" title="播放录音" v-if="row.callId"> 播放录音 </el-button>
|
|
|
+ </template>
|
|
|
</ProTable>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
@@ -492,6 +495,9 @@
|
|
|
class="w100"
|
|
|
>
|
|
|
<template #empty> 暂无数据 </template>
|
|
|
+ <template #operation="{ row }">
|
|
|
+ <el-button link type="primary" @click="onPlayRecord(row)" title="播放录音" v-if="row.callId"> 播放录音 </el-button>
|
|
|
+ </template>
|
|
|
</ProTable>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
@@ -805,6 +811,8 @@ const columns = ref<any[]>([
|
|
|
return <span>{formatDate(scope.row.visitTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
},
|
|
|
},
|
|
|
+
|
|
|
+ { prop: 'operation', label: '回访录音', fixed: 'right', width: 90, align: 'center' },
|
|
|
]);
|
|
|
// 设为未接通
|
|
|
const notConnected = () => {
|
|
@@ -820,6 +828,10 @@ const notConnected = () => {
|
|
|
state.loading = false;
|
|
|
});
|
|
|
};
|
|
|
+// 回访历史播放录音
|
|
|
+const onPlayRecord = (row: any) => {
|
|
|
+ playRecordRef.value.playRecord(row.callId);
|
|
|
+};
|
|
|
defineExpose({
|
|
|
openDialog,
|
|
|
closeDialog,
|