fix: 更新API基础路径并优化SOP分析功能
- 将API基础路径从192.168.15.54更新为192.168.15.60 - 优化CustomerDetail组件中的SOP分析按钮状态控制 - 在SalesTimelineWithTaskList组件中添加直播发言展示功能 - 重构RawDataCards组件的查看原文逻辑,触发SOP分析并显示通话记录
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<button
|
||||
@click="startSopAnalysis"
|
||||
class="analysis-button sop-button"
|
||||
:disabled="true"
|
||||
:disabled="isSopAnalysisLoading"
|
||||
>
|
||||
{{ isSopAnalysisLoading ? 'SOP分析中...' : 'SOP通话分析' }}
|
||||
</button>
|
||||
@@ -280,23 +280,15 @@ ${callInfoText}
|
||||
};
|
||||
|
||||
// SOP通话分析
|
||||
const startSopAnalysis = async () => {
|
||||
const startSopAnalysis = async (recordContext) => {
|
||||
if (!props.selectedContact) return;
|
||||
|
||||
isSopAnalysisLoading.value = true;
|
||||
sopAnalysisResult.value = '';
|
||||
|
||||
const query = `请对客户 ${props.selectedContact.name} 进行SOP通话分析:
|
||||
|
||||
基于标准销售流程(SOP),分析以下方面:
|
||||
1. 通话质量评估
|
||||
2. 销售流程执行情况
|
||||
3. 客户响应度分析
|
||||
4. 沟通效果评价
|
||||
5. 改进建议
|
||||
|
||||
客户当前状态:${props.selectedContact.salesStage || '未知'}
|
||||
健康度:${props.selectedContact.health || '未知'}%`;
|
||||
const query = callData.value
|
||||
|
||||
console.log(888888, recordContext);
|
||||
|
||||
try {
|
||||
await chatService.sendMessage(
|
||||
|
||||
Reference in New Issue
Block a user