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
375727c6
Commit
375727c6
authored
Jun 05, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
77e993c0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
metadata-compare.jsx
src/view/Manage/Model/Component/metadata-compare.jsx
+9
-5
model-compare.jsx
src/view/Manage/Model/Component/model-compare.jsx
+7
-3
No files found.
src/view/Manage/Model/Component/metadata-compare.jsx
View file @
375727c6
import
React
from
'react'
import
{
Modal
,
Checkbox
,
Spin
,
Select
}
from
'antd'
import
{
Modal
,
Checkbox
,
Spin
,
Select
,
Row
,
Col
}
from
'antd'
import
{
CompareDetail
}
from
'./VersionCompare'
import
{
dispatch
}
from
'../../../../model'
...
...
@@ -98,12 +98,16 @@ const Basic = ({ item }) => {
<
span
>
{
`元数据:${metadata?.metadataFullPath??'暂无数据'}`
}
</
span
>
</
div
>
<
div
style=
{
{
flex
:
1
,
paddingLeft
:
10
,
overflow
:
'hidden'
}
}
>
<
div
className=
'flex'
style=
{
{
justifyContent
:
'space-between'
,
alignItems
:
'center'
}
}
>
<
Row
gutter=
{
10
}
>
<
Col
flex=
'1 1 0'
style=
{
{
overflow
:
'hidden'
}
}
>
<
span
>
{
`模型:${item?.path}/${item?.name}`
}
</
span
>
{
/* <Checkbox onChange={onOnlyShowChange} checked={onlyShowChange}>
</
Col
>
{
/* <Col flex={0}>
<Checkbox onChange={onOnlyShowChange} checked={onlyShowChange}>
仅显示差异
</Checkbox> */
}
</
div
>
</Checkbox>
</Col> */
}
</
Row
>
</
div
>
</
div
>
<
div
className=
'py-5'
>
...
...
src/view/Manage/Model/Component/model-compare.jsx
View file @
375727c6
import
React
from
'react'
import
{
Modal
,
Checkbox
,
Spin
}
from
'antd'
import
{
Modal
,
Checkbox
,
Spin
,
Row
,
Col
}
from
'antd'
import
{
CompareDetail
}
from
'./VersionCompare'
import
{
dispatch
}
from
'../../../../model'
...
...
@@ -69,12 +69,16 @@ const Basic = ({ leftItem, rightItem }) => {
{
`模型:${leftItem?.path}/${leftItem?.name}`
}
</
div
>
<
div
style=
{
{
flex
:
1
,
paddingLeft
:
10
,
overflow
:
'hidden'
}
}
>
<
div
className=
'flex'
style=
{
{
justifyContent
:
'space-between'
,
alignItems
:
'center'
}
}
>
<
Row
gutter=
{
10
}
>
<
Col
flex=
'1 1 0'
style=
{
{
overflow
:
'hidden'
}
}
>
<
span
>
{
`模型:${rightItem?.path}/${rightItem?.name}`
}
</
span
>
</
Col
>
<
Col
flex=
{
0
}
>
<
Checkbox
onChange=
{
onOnlyShowChange
}
checked=
{
onlyShowChange
}
>
仅显示差异
</
Checkbox
>
</
div
>
</
Col
>
</
Row
>
</
div
>
</
div
>
...
...
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