From e33993ee176e3ac53a14f911d446282548240a32 Mon Sep 17 00:00:00 2001 From: Trae AI Date: Tue, 23 Dec 2025 12:09:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=AC=E6=B5=B7=E6=B1=A0?= =?UTF-8?q?=E8=AE=A4=E9=A2=86=E5=8A=9F=E8=83=BD=E7=9A=84=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/sells.html | 14 ++++++++++---- src/main/resources/static/supply.html | 20 ++++++++++++++++---- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/src/main/resources/static/sells.html b/src/main/resources/static/sells.html index 79b0794..4532eef 100644 --- a/src/main/resources/static/sells.html +++ b/src/main/resources/static/sells.html @@ -5066,10 +5066,16 @@ if (data.success) { alert('客户认领成功!'); // 刷新公海池列表 - if (currentTab === 'departmentSeaPool') { - showDepartmentSeaPool(); - } else if (currentTab === 'organizationSeaPool') { - showOrganizationSeaPool(); + // 检查哪个公海池表格当前可见 + const departmentTable = document.getElementById('department-sea-pools-customers'); + const organizationTable = document.getElementById('organization-sea-pools-customers'); + + if (departmentTable && departmentTable.style.display === 'table-row-group') { + // 如果部门公海池表格可见,直接更新表格 + updateDepartmentSeaPoolTable(); + } else if (organizationTable && organizationTable.style.display === 'table-row-group') { + // 如果组织公海池表格可见,直接更新表格 + updateOrganizationSeaPoolTable(); } } else { alert('客户认领失败: ' + (data.message || '未知错误')); diff --git a/src/main/resources/static/supply.html b/src/main/resources/static/supply.html index 0406b3c..3cdca3a 100644 --- a/src/main/resources/static/supply.html +++ b/src/main/resources/static/supply.html @@ -5069,10 +5069,16 @@ if (data.success) { alert('客户认领成功!'); // 刷新公海池列表 - if (currentTab === 'departmentSeaPool') { - showDepartmentSeaPool(); - } else if (currentTab === 'organizationSeaPool') { - showOrganizationSeaPool(); + // 检查哪个公海池表格当前可见 + const departmentTable = document.getElementById('department-sea-pools-customers'); + const organizationTable = document.getElementById('organization-sea-pools-customers'); + + if (departmentTable && departmentTable.style.display === 'table-row-group') { + // 如果部门公海池表格可见,直接重新渲染 + renderDepartmentSeaPool(departmentSeaPoolData); + } else if (organizationTable && organizationTable.style.display === 'table-row-group') { + // 如果组织公海池表格可见,直接重新渲染 + renderOrganizationSeaPool(organizationSeaPoolData); } } else { alert('客户认领失败: ' + (data.message || '未知错误')); @@ -6183,6 +6189,9 @@ customerData[customer.id] = customer; }); + // 更新全局部门公海池数据 + departmentSeaPoolData = finalFilteredCustomers; + renderDepartmentSeaPool(finalFilteredCustomers); }); @@ -6212,6 +6221,9 @@ customerData[customer.id] = customer; }); + // 更新全局组织公海池数据 + organizationSeaPoolData = finalFilteredCustomers; + renderOrganizationSeaPool(finalFilteredCustomers); });