Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
00b4129b
Commit
00b4129b
authored
Jul 31, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化意见
parent
22e48d1e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
30 deletions
+25
-30
result-detail.jsx
src/view/Manage/ModelCompare/result-detail.jsx
+23
-30
update-task.jsx
src/view/Manage/ModelCompare/update-task.jsx
+2
-0
No files found.
src/view/Manage/ModelCompare/result-detail.jsx
View file @
00b4129b
...
@@ -84,6 +84,7 @@ const Basic = ({ item }) => {
...
@@ -84,6 +84,7 @@ const Basic = ({ item }) => {
<
div
>
<
div
>
<
Descriptions
column=
{
3
}
>
<
Descriptions
column=
{
3
}
>
<
Descriptions
.
Item
label=
'任务名称'
>
{
item
?.
jobName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'任务名称'
>
{
item
?.
jobName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'任务编号'
>
{
item
?.
showJobNumber
}
</
Descriptions
.
Item
>
{
/* <Descriptions.Item label='模型评审通过时间'>{item?.endTs?new Date(item?.endTs).toLocaleString():''}</Descriptions.Item> */
}
{
/* <Descriptions.Item label='模型评审通过时间'>{item?.endTs?new Date(item?.endTs).toLocaleString():''}</Descriptions.Item> */
}
<
Descriptions
.
Item
label=
'任务执行时间'
>
{
item
?.
beginTs
?
new
Date
(
item
?.
beginTs
).
toLocaleString
():
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'任务执行时间'
>
{
item
?.
beginTs
?
new
Date
(
item
?.
beginTs
).
toLocaleString
():
''
}
</
Descriptions
.
Item
>
</
Descriptions
>
</
Descriptions
>
...
@@ -380,8 +381,8 @@ const PerfectMatch = ({ item }) => {
...
@@ -380,8 +381,8 @@ const PerfectMatch = ({ item }) => {
render: (_, record) => record.modelModifiedTs?new Date(record.modelModifiedTs).toLocaleString():''
render: (_, record) => record.modelModifiedTs?new Date(record.modelModifiedTs).toLocaleString():''
},
},
{
{
title: '
环境
',
title: '
模型状态
',
dataIndex: '
env
',
dataIndex: '
modelStatusName
',
},
},
{
{
title: '元数据路径',
title: '元数据路径',
...
@@ -409,10 +410,6 @@ const PerfectMatch = ({ item }) => {
...
@@ -409,10 +410,6 @@ const PerfectMatch = ({ item }) => {
dataIndex: 'metadataModifiedTs',
dataIndex: 'metadataModifiedTs',
render: (_, record) => record.metadataModifiedTs?new Date(record.metadataModifiedTs).toLocaleString():''
render: (_, record) => record.metadataModifiedTs?new Date(record.metadataModifiedTs).toLocaleString():''
},
},
{
title: '模型状态',
dataIndex: 'modelStatusName',
},
]
]
const getList = () => {
const getList = () => {
...
@@ -641,8 +638,8 @@ const PartialMatch = ({ item }) => {
...
@@ -641,8 +638,8 @@ const PartialMatch = ({ item }) => {
render: (_, record) => record.modelModifiedTs?new Date(record.modelModifiedTs).toLocaleString():''
render: (_, record) => record.modelModifiedTs?new Date(record.modelModifiedTs).toLocaleString():''
},
},
{
{
title: '
环境
',
title: '
模型状态
',
dataIndex: '
env
',
dataIndex: '
modelStatusName
',
},
},
{
{
title: '元数据路径',
title: '元数据路径',
...
@@ -691,10 +688,6 @@ const PartialMatch = ({ item }) => {
...
@@ -691,10 +688,6 @@ const PartialMatch = ({ item }) => {
)
)
}
}
},
},
{
title: '模型状态',
dataIndex: 'modelStatusName',
},
]
]
const getList = () => {
const getList = () => {
...
@@ -1048,22 +1041,22 @@ const NotMatch = ({ item }) => {
...
@@ -1048,22 +1041,22 @@ const NotMatch = ({ item }) => {
<Row gutter={15}>
<Row gutter={15}>
<Col span={12}>
<Col span={12}>
<div className='flex mb-3' style={{ justifyContent: 'space-between', alignItems: 'center' }}>
<div className='flex mb-3' style={{ justifyContent: 'space-between', alignItems: 'center' }}>
<h4 style={{ marginBottom: 0 }}>未匹配
元数据
列表</h4>
<h4 style={{ marginBottom: 0 }}>未匹配
模型
列表</h4>
<Catalog
<Catalog
placeholder='请选择
元数据
目录'
placeholder='请选择
模型
目录'
loading={loadingM
etadataCatalog} data={metadataCatalog} value={args.metadata
Path}
loading={loadingM
odelCatalog} data={modelCatalog} value={args.model
Path}
onChange={(val) => {
onChange={(val) => {
setArgsByParams({ m
etadataPath: val, metadata
Page: 1 })
setArgsByParams({ m
odelPath: val, model
Page: 1 })
}}
}}
/>
/>
</div>
</div>
<Table
<Table
loading={loadingM
etadata
}
loading={loadingM
odel
}
columns={m
etadata
Cols??[]}
columns={m
odel
Cols??[]}
dataSource={m
etadata
s??[]}
dataSource={m
odel
s??[]}
pageNum={args.m
etadataPage} pageSize={args.metadataSize} total={metadata
Total}
pageNum={args.m
odelPage} pageSize={args.modelSize} total={model
Total}
onPaginate={(page, size) => {
onPaginate={(page, size) => {
setArgsByParams({ m
etadataPage: page, metadata
Size: size })
setArgsByParams({ m
odelPage: page, model
Size: size })
}}
}}
shouldRowContextMenu={(record) => {
shouldRowContextMenu={(record) => {
return false
return false
...
@@ -1072,22 +1065,22 @@ const NotMatch = ({ item }) => {
...
@@ -1072,22 +1065,22 @@ const NotMatch = ({ item }) => {
</Col>
</Col>
<Col span={12}>
<Col span={12}>
<div className='flex mb-3' style={{ justifyContent: 'space-between', alignItems: 'center' }}>
<div className='flex mb-3' style={{ justifyContent: 'space-between', alignItems: 'center' }}>
<h4 style={{ marginBottom: 0 }}>未匹配
模型
列表</h4>
<h4 style={{ marginBottom: 0 }}>未匹配
元数据
列表</h4>
<Catalog
<Catalog
placeholder='请选择
模型
目录'
placeholder='请选择
元数据
目录'
loading={loadingM
odelCatalog} data={modelCatalog} value={args.model
Path}
loading={loadingM
etadataCatalog} data={metadataCatalog} value={args.metadata
Path}
onChange={(val) => {
onChange={(val) => {
setArgsByParams({ m
odelPath: val, model
Page: 1 })
setArgsByParams({ m
etadataPath: val, metadata
Page: 1 })
}}
}}
/>
/>
</div>
</div>
<Table
<Table
loading={loadingM
odel
}
loading={loadingM
etadata
}
columns={m
odel
Cols??[]}
columns={m
etadata
Cols??[]}
dataSource={m
odel
s??[]}
dataSource={m
etadata
s??[]}
pageNum={args.m
odelPage} pageSize={args.modelSize} total={model
Total}
pageNum={args.m
etadataPage} pageSize={args.metadataSize} total={metadata
Total}
onPaginate={(page, size) => {
onPaginate={(page, size) => {
setArgsByParams({ m
odelPage: page, model
Size: size })
setArgsByParams({ m
etadataPage: page, metadata
Size: size })
}}
}}
shouldRowContextMenu={(record) => {
shouldRowContextMenu={(record) => {
return false
return false
...
...
src/view/Manage/ModelCompare/update-task.jsx
View file @
00b4129b
...
@@ -480,6 +480,7 @@ const ModelRangeItem = ({ value, onChange }) => {
...
@@ -480,6 +480,7 @@ const ModelRangeItem = ({ value, onChange }) => {
<
TreeSelect
<
TreeSelect
multiple
multiple
loading=
{
loading
}
loading=
{
loading
}
treeNodeFilterProp=
'title'
dropdownStyle=
{
{
maxHeight
:
400
,
overflow
:
'auto'
}
}
dropdownStyle=
{
{
maxHeight
:
400
,
overflow
:
'auto'
}
}
treeData=
{
treeData1
}
treeData=
{
treeData1
}
value=
{
treeSelectedKeys
??[]
}
value=
{
treeSelectedKeys
??[]
}
...
@@ -724,6 +725,7 @@ const MetadataRangeItem = ({ value, onChange }) => {
...
@@ -724,6 +725,7 @@ const MetadataRangeItem = ({ value, onChange }) => {
<
TreeSelect
<
TreeSelect
multiple
multiple
loading=
{
loadingTreeData
}
loading=
{
loadingTreeData
}
treeNodeFilterProp=
'title'
value=
{
treeSelectedKeys
??[]
}
value=
{
treeSelectedKeys
??[]
}
onChange=
{
onTreeChange
}
onChange=
{
onTreeChange
}
dropdownStyle=
{
{
maxHeight
:
400
,
overflow
:
'auto'
}
}
dropdownStyle=
{
{
maxHeight
:
400
,
overflow
:
'auto'
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment