You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123 lines
2.5 KiB
TypeScript
123 lines
2.5 KiB
TypeScript
export type ComputePowerPoolItem = {
|
|
name: string;
|
|
type: number; // 类别
|
|
color?: string; //
|
|
proportion: number;
|
|
pretreatmentEfficiency?: number;
|
|
bgColor?: string;
|
|
};
|
|
|
|
const groupList: Record<string, any>[] = [
|
|
{
|
|
label: "NVIDIA GeForce 4090",
|
|
type: 1
|
|
},
|
|
{
|
|
label: "瑞芯微 RK3566",
|
|
type: 0
|
|
},
|
|
{
|
|
label: "瑞芯微 RK3566",
|
|
type: 0
|
|
},
|
|
{
|
|
label: "NVIDIA GeForce 4090",
|
|
type: 1
|
|
},
|
|
{
|
|
label: "NVIDIA GeForce 4090",
|
|
type: 1
|
|
}
|
|
];
|
|
|
|
const poolsData: ComputePowerPoolItem[] = [
|
|
{
|
|
name: "焊线颜色检测",
|
|
type: 9,
|
|
proportion: 7,
|
|
pretreatmentEfficiency: 20,
|
|
color: "#014BE6",
|
|
bgColor: "linear-gradient(180deg, #015DE6 0%, #4881F6 100%)"
|
|
},
|
|
{
|
|
name: "螺纹缺陷检测",
|
|
type: 8,
|
|
proportion: 8,
|
|
pretreatmentEfficiency: 20,
|
|
color: "#FAA90B",
|
|
bgColor: "linear-gradient(180deg, #E64601 0%, #F6A648 100%)"
|
|
},
|
|
{
|
|
name: "PIN间距测量",
|
|
type: 7,
|
|
proportion: 4,
|
|
pretreatmentEfficiency: 15,
|
|
color: "#EA1281",
|
|
bgColor: "linear-gradient(180deg, #E60161 0%, #F648E5 100%)"
|
|
},
|
|
{
|
|
name: "螺纹无牙缺陷检测",
|
|
type: 6,
|
|
proportion: 7,
|
|
pretreatmentEfficiency: 20,
|
|
color: "#FA8616",
|
|
bgColor: "linear-gradient(180deg, #FA8316 0%, #FAAD16 100%)"
|
|
},
|
|
{
|
|
name: "压板缺陷检测",
|
|
type: 5,
|
|
proportion: 32,
|
|
pretreatmentEfficiency: 38,
|
|
color: "#F9DB18",
|
|
bgColor: "linear-gradient(180deg, #FFC56F 0%, #F9E006 100%)"
|
|
},
|
|
{
|
|
name: "划伤缺陷检测",
|
|
type: 4,
|
|
proportion: 8,
|
|
pretreatmentEfficiency: 38,
|
|
color: "#1CCCFA",
|
|
bgColor: "linear-gradient(180deg, #6FFFFF 0%, #06BEF9 100%)"
|
|
},
|
|
{
|
|
name: "披锋(毛刺)缺陷检测",
|
|
type: 3,
|
|
proportion: 12,
|
|
pretreatmentEfficiency: 38,
|
|
color: "#9E26EE",
|
|
bgColor: "linear-gradient(180deg, #FF2494 0%, #8D27FF 100%)"
|
|
},
|
|
{
|
|
name: "工件尺寸测量",
|
|
type: 2,
|
|
proportion: 7,
|
|
pretreatmentEfficiency: 38,
|
|
color: "#6F50F6",
|
|
bgColor: "linear-gradient(180deg, #6B55F6 0%, #8C38F8 100%)"
|
|
},
|
|
{
|
|
name: "打孔不良检测",
|
|
type: 1,
|
|
proportion: 5,
|
|
pretreatmentEfficiency: 38,
|
|
color: "#24ED75",
|
|
bgColor: "linear-gradient(180deg, #43EA80 0%, #38F8D4 100%)"
|
|
},
|
|
{
|
|
name: "空闲算力",
|
|
type: 0,
|
|
proportion: 10,
|
|
pretreatmentEfficiency: 0,
|
|
color: "#DCDCDC",
|
|
bgColor: "linear-gradient(90deg, #7B7979 0%, #C1C1C1 100%)"
|
|
}
|
|
];
|
|
|
|
export const powerGroupListData = {
|
|
data: groupList
|
|
};
|
|
|
|
export const powerPoolsListData = {
|
|
data: poolsData
|
|
};
|