UNPKG

@aliretail/react-materials-components

Version:
48 lines (40 loc) 2.38 kB
--- title: MarketingOperationLog-API order: 3 category: UI description: MarketingOperationLog 组件描述 screenshot: https://gw.alicdn.com/imgextra/i2/O1CN01yW3hCD1M8CnqeKFlq_!!6000000001389-2-tps-90-90.png --- ## API | 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 | | ------------- | -------------------------------------------------------------------------------------------- | ---- | ------ | ------ | ---- | | appCode | 根据活动 id 获取操作日志列表的应用 code,如果同时设置了 url,优先获取 appCode | | string | | | | apiCode | 根据活动 id 获取操作日志列表的接口 code | | string | | | | url | 根据活动 id 获取操作日志列表的完整接口地址 | | string | | params | 除了接口请求参数配置 apiCode、appCode、url, 根据活动 id 获取操作日志列表的请求接口的额外参数 | | object | | | | detailAppCode | 根据操作 id 获取详细操作记录应用 code,如果没有填写默认使用 appCode | | string | | | | detailApiCode | 根据操作 id 获取详细操作记录接口 code | | string | | | | detailUrl | 根据操作 id 获取详细操作记录完整接口地址 | | string | | | ## 接口支持格式 ### 操作日志列表 ```ts export interface IDetailTableItem { id: string; // 唯一ID traceId: string; // traceId operateTime: string; // 操作时间 operatePerson: string; // 操作账号 ip: string; // 机器ip eventType: string; // 操作时机 } ``` ### 详细操作记录 ```ts export interface IExpandedTableItem { id: string; // 唯一ID fieldName: string; // 属性ID(商品或sku是participateId,活动id或活动详情id) beforeValue: string; // 原字段(多值) afterValue: string; // 新字段(多值) operateObject: string; // 操作对象(商品/SKU/活动/活动详情) operateType: string; // 操作类型 } ```