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
66fb757f
Commit
66fb757f
authored
Jan 29, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
执行结果
parent
b10a3ff8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
5 deletions
+32
-5
result-detail.jsx
src/view/Manage/ModelCompare/result-detail.jsx
+26
-5
result-detail.less
src/view/Manage/ModelCompare/result-detail.less
+6
-0
No files found.
src/view/Manage/ModelCompare/result-detail.jsx
View file @
66fb757f
import
React
from
'react'
import
React
from
'react'
import
{
Modal
,
Tabs
,
Button
,
Tooltip
,
Typography
,
Row
,
Col
}
from
'antd'
import
{
Modal
,
Tabs
,
Button
,
Tooltip
,
Typography
,
Row
,
Col
,
Descriptions
}
from
'antd'
import
{
dispatch
}
from
'../../../model'
import
{
dispatch
}
from
'../../../model'
import
Table
from
'../../../util/Component/Table'
import
Table
from
'../../../util/Component/Table'
import
{
defaultPage
}
from
'../../../util/hooks/page'
import
{
defaultPage
}
from
'../../../util/hooks/page'
import
{
generateUUID
,
paginate
,
showMessage
}
from
'../../../util'
import
{
generateUUID
,
paginate
,
showMessage
}
from
'../../../util'
import
'./result-detail.less'
const
FC
=
(
props
)
=>
{
const
FC
=
(
props
)
=>
{
const
{
visible
,
item
,
onCancel
}
=
props
const
{
visible
,
item
,
onCancel
}
=
props
const
[
animating
,
setAnimating
]
=
React
.
useState
(
true
)
const
[
animating
,
setAnimating
]
=
React
.
useState
(
true
)
...
@@ -24,10 +26,11 @@ const FC = (props) => {
...
@@ -24,10 +26,11 @@ const FC = (props) => {
return
(
return
(
<
Modal
<
Modal
className=
'model-compare-result-detail'
visible=
{
visible
}
visible=
{
visible
}
footer=
{
null
}
footer=
{
null
}
width=
'90%'
width=
'90%'
bodyStyle=
{
{
padding
:
'15px'
,
overflowX
:
'auto'
,
maxH
eight
:
'80vh'
}
}
bodyStyle=
{
{
padding
:
'15px'
,
overflowX
:
'auto'
,
h
eight
:
'80vh'
}
}
title=
'任务结果'
title=
'任务结果'
centered
destroyOnClose
centered
destroyOnClose
onCancel=
{
()
=>
{
close
()
}
}
onCancel=
{
()
=>
{
close
()
}
}
...
@@ -43,7 +46,23 @@ export default FC
...
@@ -43,7 +46,23 @@ export default FC
const
Basic
=
({
item
})
=>
{
const
Basic
=
({
item
})
=>
{
return
(
return
(
<
div
>
<
div
>
basic
<
Descriptions
column=
{
3
}
>
<
Descriptions
.
Item
label=
'任务名称'
>
{
item
?.
jobName
}
</
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
>
<
Descriptions
column=
{
5
}
>
<
Descriptions
.
Item
label=
'模型总数'
>
{
item
?.
modelCheckCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'模型字段数'
>
{
item
?.
modelColumnCheckCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'完全匹配模型数'
>
{
item
?.
modelPerfectMatchCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'差异模型数'
>
{
item
?.
modelPartialMatchCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'未匹配模型数'
>
{
item
?.
modelNotMatchCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'元数据数'
>
{
item
?.
metadataCheckCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'元数据字段数'
>
{
item
?.
metadataColumnCheckCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'完全匹配元数据数'
>
{
item
?.
metadataPerfectMatchCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'差异元数据数'
>
{
item
?.
metadataPartialMatchCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'未匹配元数据数'
>
{
item
?.
metadataNotMatchCount
}
</
Descriptions
.
Item
>
</
Descriptions
>
</
div
>
</
div
>
)
)
}
}
...
@@ -186,6 +205,7 @@ const PerfectMatch = ({ item }) => {
...
@@ -186,6 +205,7 @@ const PerfectMatch = ({ item }) => {
},
},
callback: data => {
callback: data => {
showMessage('success', '上线成功')
showMessage('success', '上线成功')
setSelectedRows()
getList()
getList()
}
}
})
})
...
@@ -388,6 +408,7 @@ const PartialMatch = ({ item }) => {
...
@@ -388,6 +408,7 @@ const PartialMatch = ({ item }) => {
},
},
callback: data => {
callback: data => {
showMessage('success', '上线成功')
showMessage('success', '上线成功')
setSelectedRows()
getList()
getList()
}
}
})
})
...
@@ -582,7 +603,7 @@ const NotMatch = ({ item }) => {
...
@@ -582,7 +603,7 @@ const NotMatch = ({ item }) => {
loading={loadingMetadata}
loading={loadingMetadata}
columns={metadataCols??[]}
columns={metadataCols??[]}
dataSource={metadataTableData??[]}
dataSource={metadataTableData??[]}
pageNum={args.metadataPage} pageSize={args.metadataSize} total={(metadata
TableData
??[]).length}
pageNum={args.metadataPage} pageSize={args.metadataSize} total={(metadata
s
??[]).length}
onPaginate={(page, size) => {
onPaginate={(page, size) => {
setArgsByParams({ metadataPage: page, metadataSize: size })
setArgsByParams({ metadataPage: page, metadataSize: size })
}}
}}
...
@@ -597,7 +618,7 @@ const NotMatch = ({ item }) => {
...
@@ -597,7 +618,7 @@ const NotMatch = ({ item }) => {
loading={loadingModel}
loading={loadingModel}
columns={modelCols??[]}
columns={modelCols??[]}
dataSource={modelTableData??[]}
dataSource={modelTableData??[]}
pageNum={args.modelPage} pageSize={args.modelSize} total={(model
TableData
??[]).length}
pageNum={args.modelPage} pageSize={args.modelSize} total={(model
s
??[]).length}
onPaginate={(page, size) => {
onPaginate={(page, size) => {
setArgsByParams({ modelPage: page, modelSize: size })
setArgsByParams({ modelPage: page, modelSize: size })
}}
}}
...
...
src/view/Manage/ModelCompare/result-detail.less
0 → 100644
View file @
66fb757f
.model-compare-result-detail {
.yy-descriptions-row > td {
padding-bottom: 5px !important;
}
}
\ No newline at end of file
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