28 lines
674 B
TypeScript
28 lines
674 B
TypeScript
export type DimensionType =
|
|
| "all"
|
|
| "order_by_user_name"
|
|
| "order_by_group_name"
|
|
| "order_by_project_name"
|
|
| "order_by_project_type"
|
|
|
|
export const dimensionOpts = [
|
|
{ label: "全部", value: "all" },
|
|
{ label: "用户名", value: "order_by_user_name" },
|
|
{ label: "用户组", value: "order_by_group_name" },
|
|
{ label: "项目名称", value: "order_by_project_name" },
|
|
{ label: "项目类型", value: "order_by_project_type" },
|
|
]
|
|
|
|
export type MetricColumn = {
|
|
key: string
|
|
title: string
|
|
}
|
|
|
|
export type GroupedData = {
|
|
all: any[]
|
|
order_by_group_name: any[]
|
|
order_by_project_name: any[]
|
|
order_by_project_type: any[]
|
|
order_by_user_name: any[]
|
|
}
|