feat: 新增商业化新账统计与出海财务运营驾驶舱,支持运营官(COO)与财务官(CFO)双重视角穿透
这个提交包含在:
@@ -198,7 +198,7 @@
|
||||
|
||||
// 3. Webhook 联动通知状态面板注入
|
||||
function updateWebhookPanel(eventDetail) {
|
||||
if (!window.location.pathname.includes('/crm/leads')) {
|
||||
if (!window.location.pathname.includes('/crm/leads') && !window.location.pathname.includes('/crm/pipeline')) {
|
||||
return;
|
||||
}
|
||||
let panel = document.getElementById('btp20-webhook-panel');
|
||||
@@ -332,6 +332,10 @@
|
||||
item.email.toLowerCase().includes(kw)
|
||||
);
|
||||
}
|
||||
if (parsedBody.cardId !== undefined && parsedBody.cardId !== null && parsedBody.cardId !== '') {
|
||||
const cId = Number(parsedBody.cardId);
|
||||
filtered = filtered.filter(item => item.cardId === cId);
|
||||
}
|
||||
|
||||
respond(this, JSON.stringify({
|
||||
code: 1000,
|
||||
@@ -490,9 +494,25 @@
|
||||
}, 40);
|
||||
}
|
||||
|
||||
// 页面加载完成后展示初始面板
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
setTimeout(updateWebhookPanel, 500);
|
||||
});
|
||||
// 页面加载完成后展示初始面板并在商机看板维持联动面板
|
||||
function ensurePanel() {
|
||||
if (window.location.pathname.includes('/crm/pipeline')) {
|
||||
updateWebhookPanel({
|
||||
targetUrl: 'https://api.omnicard.ai/webhook/lead-flow',
|
||||
leadName: 'John Doe',
|
||||
leadCompany: 'Acme Global Corp',
|
||||
fromStatus: 'new',
|
||||
toStatus: 'hot',
|
||||
signature: '7f8a3c9b1d5e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8f0a2b4c6d8e0f2a',
|
||||
httpStatus: 200,
|
||||
attempts: 1,
|
||||
time: '2026-09-21 01:32:15'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener('DOMContentLoaded', ensurePanel);
|
||||
setInterval(ensurePanel, 1000);
|
||||
window.updateWebhookPanel = updateWebhookPanel;
|
||||
})();
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户