import { AttrConditionTypes } from '@zgfe/business-lib'; import { DatePickerTypes } from '@zgfe/business-lib/es/datePicker/types'; import { ReactNode } from 'react'; import { AnalysisMode, FormDataProps, start } from './modules/topPanel/types'; /** * 属性选择器 默认值 */ export interface bizAttributeSelectorValueProp { propCategory?: string; prop_category?: string; dimension_sub?: string; dimensionSub?: string; label?: string; is_hidden?: string; isHidden?: string; real_time?: string; event_id?: string; eventId?: string; category?: string; value?: number | string; key?: number | string; } export interface eventProps { /** * @description 事件id */ id?: number; /** * @description 事件name */ name?: string; /** * @description 事件属性筛选 */ filters?: AttrConditionTypes.GroupValue; /** * @description 事件属性细分 */ dimension?: bizAttributeSelectorValueProp; /** * @description 关联属性开关 */ relevancy?: boolean; } export interface SearchValue { allData?: FormDataProps; /** * @description 事件id */ id?: number; /** * @description 事件name */ name?: string; /** * @description 平台 */ platform?: number; /** * @description 图表类型 * @default 'line' */ chartType?: EventChartTypes; /** * @description 用户群id */ userGroup?: number[]; user_group?: number[]; /** * 事件、属性、属性细分 */ /** * @description 维度类型 */ analysisIndex?: string; /** * @description 维度名称 */ analysisAttr?: string; /** * @description 显示设置 */ displaySetup?: string[]; /** * @description 日期 * @default 最近一天 */ time?: DatePickerTypes.Value; /** * @description 属性细分 */ dimension?: bizAttributeSelectorValueProp; /** * @description 事件属性筛选 */ filters?: AttrConditionTypes.GroupValue; /** * @description 关联属性-开始 * */ associatedPreAttr?: bizAttributeSelectorValueProp; associated_pre_attr?: bizAttributeSelectorValueProp; /** * @description 关联属性-结束 */ associated_next_attr?: bizAttributeSelectorValueProp; associatedNextAttr?: bizAttributeSelectorValueProp; /** * @description 开始事件 */ start?: start; /** * @description 结束事件 */ end?: start; /** * @description 分类 */ module?: string; /** * 分析模型 */ analysisModel?: AnalysisMode; /** * 分析主体 */ analysisSubject?: { subjectId: number; subjectName: string; subjectAlias?: string; unit: string; }; } export type EventChartTypes = 'line' | 'bar' | 'pie' | 'map' | 'boxplot'; /** * 图表选择类型 */ export interface ChartItemProp { label?: string; value: EventChartTypes; icon?: ReactNode; disabled?: boolean; } export interface ChartData { appData: { series?: { names: string[]; values: number[][]; total: number[]; }[]; x_axis?: string[]; }; } export interface ResponseDataProps { appData: any; xAxis?: string[]; x_axis?: string[]; series: SeriesProps[]; tongbi?: number[]; huanbi?: number[]; total?: number[]; yesterDay?: string[]; } /** * series value */ export interface SeriesProps { names?: string[]; values?: number[][] | number[]; total?: number[]; } export interface TableChildrenProps { name: string; values: number[]; } export declare const IntervalContext: import("react").Context; export interface IntervalDrillParams { /** * @description 用户数量 */ count: number; /** * @description 查询接口 */ url: string; /** * @description 查询对象 */ params?: Record; }