✨ feat:【algorithmConfig组件】更改AlgorithmConfigProps,增加title字段,algorithmTableDataSource的类型字段新增模板Id、算法启用状态、算法id、算法名称、算法配置等字段;
This commit is contained in:
parent
794d9cb805
commit
8366383350
@ -35,12 +35,14 @@ export interface AlgorithmConfigProps {
|
|||||||
drawListener?: (data: any) => void;
|
drawListener?: (data: any) => void;
|
||||||
algorithmTableDataSource?: {
|
algorithmTableDataSource?: {
|
||||||
id: string;
|
id: string;
|
||||||
// 模板名称
|
templateId:string; // 模版Id
|
||||||
templateName: string;
|
templateName: string; // 模板名称
|
||||||
// 运行周期
|
status:boolean; // 算法启用状态
|
||||||
operatingCycle: string;
|
operatingCycle: string; // 运行周期
|
||||||
// 算力占用
|
algorithmOccupied: number; // 算力占用
|
||||||
algorithmOccupied: number;
|
solutionId:string; // 算法Id
|
||||||
|
solutionName: string; // 算法名称
|
||||||
|
solutionParameter: ''; // josn格式算法配置
|
||||||
}[];
|
}[];
|
||||||
timeTemplateDataSource?: {
|
timeTemplateDataSource?: {
|
||||||
id: string;
|
id: string;
|
||||||
@ -58,6 +60,7 @@ export interface AlgorithmConfigProps {
|
|||||||
selectedKey?: string
|
selectedKey?: string
|
||||||
rowKey?: string
|
rowKey?: string
|
||||||
type: AlgorithmTableProps<any>['tableType']
|
type: AlgorithmTableProps<any>['tableType']
|
||||||
|
title?:string; // boxList列表的属性名称【点位列表、盒子列表】
|
||||||
onSelect?: (key: string, info?: any) => void
|
onSelect?: (key: string, info?: any) => void
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,7 +81,7 @@ const AlgorithmConfig = forwardRef<AlgorithmConfigRef, AlgorithmConfigProps>((pr
|
|||||||
selectedKey,
|
selectedKey,
|
||||||
type = 'multiple',
|
type = 'multiple',
|
||||||
rowKey = 'id',
|
rowKey = 'id',
|
||||||
onSelect
|
onSelect, title='盒子名称',
|
||||||
} = props
|
} = props
|
||||||
const drawImageRef = useRef<ImgViewRef>(null)
|
const drawImageRef = useRef<ImgViewRef>(null)
|
||||||
const { token } = useToken()
|
const { token } = useToken()
|
||||||
@ -94,8 +97,8 @@ const AlgorithmConfig = forwardRef<AlgorithmConfigRef, AlgorithmConfigProps>((pr
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex style={{ border: `1px solid ${token.colorBorder}`, backgroundColor: token.colorBgBase }}>
|
<Flex style={{ border: `1px solid ${token.colorBorder}`, backgroundColor: token.colorBgBase }}>
|
||||||
<div title={type==='multiple'?'盒子列表':'点位列表'} style={{ width: '13.9%' }}>
|
<div title={title} style={{ width: '13.9%' }}>
|
||||||
<Title>{type==='multiple'?'盒子列表':'点位列表'}</Title>
|
<Title>{title}</Title>
|
||||||
<div style={{ borderTop: `1px solid ${token.colorBorder}` }}>
|
<div style={{ borderTop: `1px solid ${token.colorBorder}` }}>
|
||||||
{boxList.map(item => {
|
{boxList.map(item => {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user