fix: 移除录音文件数量显示并修复API调用参数传递
移除RawDataCards.vue中不再需要的录音文件数量显示 在CustomerDetail.vue中修复axios调用参数传递方式
This commit is contained in:
@@ -95,6 +95,7 @@ import { ref, watch, computed } from 'vue';
|
||||
import { SimpleChatService } from '@/utils/ChatService.js';
|
||||
import MarkdownIt from 'markdown-it';
|
||||
import https from '@/utils/https'
|
||||
import axios from 'axios'
|
||||
|
||||
// 定义props
|
||||
const props = defineProps({
|
||||
@@ -337,6 +338,7 @@ console.log(888888,formInfoText);
|
||||
|
||||
// SOP通话分析
|
||||
const startSopAnalysis = async () => {
|
||||
console.log(888888888777777,props.selectedContact.wechat_id)
|
||||
if (!props.selectedContact) return;
|
||||
|
||||
isSopAnalysisLoading.value = true;
|
||||
@@ -361,8 +363,11 @@ ${callData.length > 0 && callData[0].record_context ? callData[0].record_context
|
||||
// console.log('SOP通话分析完成');
|
||||
// }
|
||||
// );
|
||||
const res= await https.get('http://192.168.3.112:6002/api/v1/call',{
|
||||
const res= await axios.get('http://192.168.3.112:6002/api/v1/call',
|
||||
{
|
||||
params:{
|
||||
wechat_id:props.selectedContact.wechat_id
|
||||
}
|
||||
})
|
||||
sopAnalysisResult.value = res.data.report_content;
|
||||
} catch (error) {
|
||||
|
||||
@@ -91,7 +91,6 @@
|
||||
<div class="call-header">
|
||||
<span class="call-type">用户: {{ call.user_name }}</span>
|
||||
<span class="call-duration">客户: {{ call.customer_name }}</span>
|
||||
<span class="call-time">录音文件: {{ call.record_file_addr_list?.length || 0 }} 个</span>
|
||||
</div>
|
||||
<div class="call-actions">
|
||||
<button class="action-btn download-btn" @click="downloadRecording(call)">
|
||||
|
||||
Reference in New Issue
Block a user