feat(FeedbackForm): 在反馈提交中添加项目字段

refactor(CustomerDetail): 重命名并启用总通话分析功能
重构客户详情组件,将"客户诉求分析"改为"总通话分析"并启用相关功能,优化分析逻辑和UI显示

style(sale): 移除冗余标题并调整布局样式
删除客户详情区域的冗余标题,调整主布局的宽度和边距

perf(CustomerDetail): 优化分析请求和错误处理
移除调试日志,优化API请求参数和错误处理逻辑
This commit is contained in:
2025-10-13 11:45:27 +08:00
parent 575a08ed3a
commit 9555bb66fd
3 changed files with 219 additions and 232 deletions

View File

@@ -124,7 +124,7 @@ const handleSubmit = async () => {
const token = localStorage.getItem('token') || ''; const token = localStorage.getItem('token') || '';
// 发送 POST 请求到后端接口 // 发送 POST 请求到后端接口
const response = await axios.post('https://mldash.nycjy.cn/api/v1/submit_feedback', {type: formData.type, content: formData.content}, { const response = await axios.post('https://mldash.nycjy.cn/api/v1/submit_feedback', {project:'mldash',type: formData.type, content: formData.content}, {
headers: { headers: {
'Authorization': `Bearer ${token}` 'Authorization': `Bearer ${token}`
} }

File diff suppressed because it is too large Load Diff

View File

@@ -98,9 +98,6 @@
<main class="main-content"> <main class="main-content">
<!-- 客户详情区域 --> <!-- 客户详情区域 -->
<section v-if="cardVisibility.customerDetail && selectedContact" class="detail-section"> <section v-if="cardVisibility.customerDetail && selectedContact" class="detail-section">
<div class="section-header">
<h2>客户详情</h2>
</div>
<div class="section-content"> <div class="section-content">
<CustomerDetail <CustomerDetail
ref="customerDetailRef" ref="customerDetailRef"
@@ -638,7 +635,6 @@ async function getCustomerCall() {
const kpiData = computed(() => kpiDataState); const kpiData = computed(() => kpiDataState);
// COMPUTED PROPERTIES // COMPUTED PROPERTIES
const selectedContact = computed(() => { const selectedContact = computed(() => {
console.log(999999999,formattedCustomersList.value);
// 优先从API数据中查找 // 优先从API数据中查找
if (formattedCustomersList.value.length > 0) { if (formattedCustomersList.value.length > 0) {
return formattedCustomersList.value.find((c) => c.id === selectedContactId.value) || null; return formattedCustomersList.value.find((c) => c.id === selectedContactId.value) || null;
@@ -1077,9 +1073,9 @@ $primary: #3b82f6;
} }
// 主要布局 // 主要布局
.main-layout { .main-layout {
width: 100vw; width: 99vw;
margin: 0 auto; margin-bottom: 1rem;
padding: 1rem; // padding: 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1rem;