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