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