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
0b62b68b
Commit
0b62b68b
authored
Jul 30, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本使用时间戳
parent
e13ba314
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
VersionCompare.jsx
src/view/Manage/Model/Component/VersionCompare.jsx
+1
-1
branch-model-sync.jsx
src/view/Manage/Model/Component/branch-model-sync.jsx
+2
-2
export-ddl.jsx
src/view/Manage/Model/Component/export-ddl.jsx
+1
-1
No files found.
src/view/Manage/Model/Component/VersionCompare.jsx
View file @
0b62b68b
...
@@ -56,7 +56,7 @@ const VersionCompare = (props) => {
...
@@ -56,7 +56,7 @@ const VersionCompare = (props) => {
(
data
||
[]).
forEach
((
item
,
index
)
=>
{
(
data
||
[]).
forEach
((
item
,
index
)
=>
{
let
name
=
item
.
name
||
''
;
let
name
=
item
.
name
||
''
;
name
=
name
+
'_'
+
formatVersionDate
(
item
.
ts
);
name
=
name
+
'_'
+
new
Date
(
item
.
ts
).
toLocaleString
(
);
if
(
index
===
0
&&
item
.
id
!==
'-1'
)
{
if
(
index
===
0
&&
item
.
id
!==
'-1'
)
{
name
=
name
+
'(当前版本)'
;
name
=
name
+
'(当前版本)'
;
}
}
...
...
src/view/Manage/Model/Component/branch-model-sync.jsx
View file @
0b62b68b
...
@@ -103,11 +103,11 @@ const Basic = ({ item }) => {
...
@@ -103,11 +103,11 @@ const Basic = ({ item }) => {
<
div
className=
'model-version-compare'
>
<
div
className=
'model-version-compare'
>
<
div
className=
'flex'
>
<
div
className=
'flex'
>
<
div
style=
{
{
flex
:
1
,
paddingRight
:
10
,
overflow
:
'hidden'
}
}
>
<
div
style=
{
{
flex
:
1
,
paddingRight
:
10
,
overflow
:
'hidden'
}
}
>
{
`基线版本:${item?.forkedName??''}${item?.forkedLastModifiedTs?`
V_$
{
formatDate
(
item
?.
forkedLastModifiedTs
)}
`:''}`
}
{
`基线版本:${item?.forkedName??''}${item?.forkedLastModifiedTs?`
V_$
{
new
Date
(
item
.
forkedLastModifiedTs
).
toLocaleString
(
)}
`:''}`
}
</
div
>
</
div
>
<
div
style=
{
{
flex
:
1
,
paddingLeft
:
10
,
overflow
:
'hidden'
}
}
>
<
div
style=
{
{
flex
:
1
,
paddingLeft
:
10
,
overflow
:
'hidden'
}
}
>
<
div
className=
'flex'
style=
{
{
justifyContent
:
'space-between'
,
alignItems
:
'center'
}
}
>
<
div
className=
'flex'
style=
{
{
justifyContent
:
'space-between'
,
alignItems
:
'center'
}
}
>
<
span
>
{
`分支版本:${item?.name??''}${item?.modifiedTs?`
V_$
{
formatDate
(
item
?.
modifiedTs
)}
`:''}`
}
</
span
>
<
span
>
{
`分支版本:${item?.name??''}${item?.modifiedTs?`
V_$
{
new
Date
(
item
.
modifiedTs
).
toLocaleString
(
)}
`:''}`
}
</
span
>
<
Checkbox
onChange=
{
onOnlyShowChange
}
checked=
{
onlyShowChange
}
>
<
Checkbox
onChange=
{
onOnlyShowChange
}
checked=
{
onlyShowChange
}
>
仅显示差异
仅显示差异
</
Checkbox
>
</
Checkbox
>
...
...
src/view/Manage/Model/Component/export-ddl.jsx
View file @
0b62b68b
...
@@ -319,7 +319,7 @@ const DDLDetail = ({ config, setConfig }) => {
...
@@ -319,7 +319,7 @@ const DDLDetail = ({ config, setConfig }) => {
const
newData
=
[]
const
newData
=
[]
for
(
const
[
index
,
item
]
of
(
data
??[]).
entries
())
{
for
(
const
[
index
,
item
]
of
(
data
??[]).
entries
())
{
let
name
=
item
.
name
??
''
let
name
=
item
.
name
??
''
name
=
name
+
'_'
+
formatVersionDate
(
item
.
ts
)
name
=
name
+
'_'
+
new
Date
(
item
.
ts
).
toLocaleString
(
)
if
((
index
===
0
&&
item
.
id
!==
'-1'
)
if
((
index
===
0
&&
item
.
id
!==
'-1'
)
||
(
index
===
1
&&
data
[
0
].
id
===
'-1'
))
{
||
(
index
===
1
&&
data
[
0
].
id
===
'-1'
))
{
name
=
name
+
'(当前版本)'
name
=
name
+
'(当前版本)'
...
...
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