瀏覽代碼

reactor:104 历史回访记录需增加回访录音;

zhangchong 5 月之前
父節點
當前提交
4095b2a81e
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      src/views/business/visit/components/Visit-detail.vue

+ 12 - 0
src/views/business/visit/components/Visit-detail.vue

@@ -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,