feat: 实现卡片可见性管理并优化多个组件功能
- 在UserDropdown组件中添加卡片名称映射 - 为sale.vue、seniorManager.vue、topone.vue和secondTop.vue添加卡片可见性控制 - 在CustomerDetail.vue中添加通话数据检查逻辑 - 将https.js中的API基础路径切换为生产环境
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
<button
|
||||
@click="startSopAnalysis"
|
||||
class="analysis-button sop-button"
|
||||
:disabled="isSopAnalysisLoading"
|
||||
:disabled="isSopAnalysisLoading || !hasCallData"
|
||||
>
|
||||
{{ isSopAnalysisLoading ? 'SOP分析中...' : 'SOP通话分析' }}
|
||||
{{ isSopAnalysisLoading ? 'SOP分析中...' : (hasCallData ? 'SOP通话分析' : '暂无通话数据') }}
|
||||
</button>
|
||||
<!-- <button
|
||||
@click="startDemandAnalysis"
|
||||
@@ -157,6 +157,11 @@ const formattedDemandAnalysis = computed(() => {
|
||||
return md.render(demandAnalysisResult.value);
|
||||
});
|
||||
|
||||
// 计算属性:检查是否有通话数据
|
||||
const hasCallData = computed(() => {
|
||||
return props.callRecords && props.callRecords.length > 0;
|
||||
});
|
||||
|
||||
// 监听selectedContact变化,重置所有分析结果
|
||||
watch(() => props.selectedContact, (newContact) => {
|
||||
if (newContact) {
|
||||
|
||||
Reference in New Issue
Block a user