feat(FeedbackForm): 在反馈提交中添加项目字段
refactor(CustomerDetail): 重命名并启用总通话分析功能 重构客户详情组件,将"客户诉求分析"改为"总通话分析"并启用相关功能,优化分析逻辑和UI显示 style(sale): 移除冗余标题并调整布局样式 删除客户详情区域的冗余标题,调整主布局的宽度和边距 perf(CustomerDetail): 优化分析请求和错误处理 移除调试日志,优化API请求参数和错误处理逻辑
This commit is contained in:
@@ -124,7 +124,7 @@ const handleSubmit = async () => {
|
||||
const token = localStorage.getItem('token') || '';
|
||||
|
||||
// 发送 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: {
|
||||
'Authorization': `Bearer ${token}`
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -98,9 +98,6 @@
|
||||
<main class="main-content">
|
||||
<!-- 客户详情区域 -->
|
||||
<section v-if="cardVisibility.customerDetail && selectedContact" class="detail-section">
|
||||
<div class="section-header">
|
||||
<h2>客户详情</h2>
|
||||
</div>
|
||||
<div class="section-content">
|
||||
<CustomerDetail
|
||||
ref="customerDetailRef"
|
||||
@@ -638,7 +635,6 @@ async function getCustomerCall() {
|
||||
const kpiData = computed(() => kpiDataState);
|
||||
// COMPUTED PROPERTIES
|
||||
const selectedContact = computed(() => {
|
||||
console.log(999999999,formattedCustomersList.value);
|
||||
// 优先从API数据中查找
|
||||
if (formattedCustomersList.value.length > 0) {
|
||||
return formattedCustomersList.value.find((c) => c.id === selectedContactId.value) || null;
|
||||
@@ -1077,9 +1073,9 @@ $primary: #3b82f6;
|
||||
}
|
||||
// 主要布局
|
||||
.main-layout {
|
||||
width: 100vw;
|
||||
margin: 0 auto;
|
||||
padding: 1rem;
|
||||
width: 99vw;
|
||||
margin-bottom: 1rem;
|
||||
// padding: 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
|
||||
Reference in New Issue
Block a user