|
@@ -4,6 +4,7 @@ import SearchItemWrapper from '@/components/SearchItemWrapper';
|
|
|
import AudioPlayer from '@/components/AudioPlayer';
|
|
|
import useTableHeight from '@/composables/useTableHeight';
|
|
|
import CallView from '@/components/CallView';
|
|
|
+import dayjs from 'dayjs';
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const { tableContainer, tableMaxHeight } = useTableHeight();
|
|
@@ -75,14 +76,18 @@ const handleBatchDownload = () => {
|
|
|
if ( !timeBegin ) {
|
|
|
return proxy.$modal.msgError("请选择通话发起时间");
|
|
|
}
|
|
|
+ const now = dayjs();
|
|
|
+ const formattedDateTime = now.format('YYYYMMDDHHmmss');
|
|
|
+ const milliseconds = now.millisecond();
|
|
|
+ const fullFormattedString = `jmsyy${formattedDateTime}${milliseconds}`;
|
|
|
proxy.getDownload("/business/record/downloadBatchByCondition", {
|
|
|
...queryParams.value, timeBeginReq: timeBegin, timeEndReq: timeEnd
|
|
|
- }, `${new Date().getTime()}.zip`);
|
|
|
+ }, `${fullFormattedString}.zip`);
|
|
|
}
|
|
|
|
|
|
// 单独下载
|
|
|
-const handleDownload = ({ id }) => {
|
|
|
- proxy.getDownload("/business/record/downloadById", { id }, `${new Date().getTime()}.wav`);
|
|
|
+const handleDownload = ({ id, sessionId }) => {
|
|
|
+ proxy.getDownload("/business/record/downloadById", { id }, `${sessionId}.wav`);
|
|
|
}
|
|
|
|
|
|
const getList = () => {
|
|
@@ -191,7 +196,7 @@ onMounted(() => {
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="sessionId" label="通话ID" align="center" width="150" />
|
|
|
+ <el-table-column prop="sessionId" label="通话ID" align="center" width="200" />
|
|
|
<el-table-column prop="timeBegin" label="通话发起时间" align="center" width="180" />
|
|
|
<el-table-column prop="timeEnd" label="通话结束时间" align="center" width="180" />
|
|
|
<el-table-column prop="times" label="通话时长" align="center" />
|
|
@@ -202,8 +207,8 @@ onMounted(() => {
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="serviceCategoryText" label="服务类型" align="center" width="120"/>
|
|
|
- <el-table-column prop="userName" label="客服名称" align="center" />
|
|
|
+ <el-table-column prop="serviceCategoryText" label="服务类型" align="center" width="140"/>
|
|
|
+ <el-table-column prop="userName" label="客服名称" align="center" width="140"/>
|
|
|
<el-table-column prop="handle" label="操作" align="center" fixed="right" width="150">
|
|
|
<template #default="scope">
|
|
|
<div class="flex justify-center space-x-[20px]">
|
|
@@ -224,7 +229,7 @@ onMounted(() => {
|
|
|
direction="rtl"
|
|
|
:before-close="handleClose"
|
|
|
class="voice-drawer"
|
|
|
- size="800"
|
|
|
+ size="900"
|
|
|
>
|
|
|
<div>
|
|
|
<CallView :data="callDetails" noInit @on-end="handleVoiceParsed" v-model="isTransitionVoiceStatus"></CallView>
|