CRM_26-03-31#story#8372,服务商KPI看板设置埋点及支持数据导出需求--中心组

This commit is contained in:
2026-03-26 14:34:41 +08:00
parent c05bdb361b
commit 030417ba9c

View File

@@ -352,15 +352,17 @@ export default {
await this.getUserInfo(); await this.getUserInfo();
this.enterTime = dayjs().format('YYYY-MM-DD HH:mm:ss'); this.enterTime = dayjs().format('YYYY-MM-DD HH:mm:ss');
}, },
async beforeDestroy() { beforeDestroy() {
await this.setLogHandler({ if( this.source == 'App' ) {
supplierId: this.currentSupplierId, // 服务商 id this.setLogHandler({
userId: this.userId, // userId supplierId: this.currentSupplierId, // 服务商 id
source: '服务商KPI', userId: this.userId, // userId
event: this.source, // 区分 App 还是 system source: '服务商KPI',
openTime: this.enterTime, // log 时间,其中 阅读时长是由 enter 和 leave 的时间计算而来 event: this.source, // 区分 App 还是 system
leaveTime: dayjs().format('YYYY-MM-DD HH:mm:ss'), openTime: this.enterTime, // log 时间,其中 阅读时长是由 enter 和 leave 的时间计算而来
}); leaveTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
});
}
}, },
methods: { methods: {
async getUserInfo() { async getUserInfo() {