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
9bc02df0
Commit
9bc02df0
authored
Sep 12, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基线变更
parent
958b9fae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
21 deletions
+4
-21
branch-model-sync.jsx
src/view/Manage/Model/Component/branch-model-sync.jsx
+4
-4
merge-to-master.jsx
src/view/Manage/Model/Component/merge-to-master.jsx
+0
-17
No files found.
src/view/Manage/Model/Component/branch-model-sync.jsx
View file @
9bc02df0
...
@@ -6,6 +6,7 @@ import { CompareDetail } from './VersionCompare'
...
@@ -6,6 +6,7 @@ import { CompareDetail } from './VersionCompare'
import
'./VersionCompare.less'
import
'./VersionCompare.less'
import
{
formatDate
}
from
'../../../../util'
import
{
formatDate
}
from
'../../../../util'
import
{
Action
,
ModelerId
,
ModelerMergeId
}
from
'../../../../util/constant'
const
FC
=
(
props
)
=>
{
const
FC
=
(
props
)
=>
{
const
{
item
,
visible
,
title
=
'基线模型变更提醒'
,
readonly
=
false
,
onCancel
}
=
props
const
{
item
,
visible
,
title
=
'基线模型变更提醒'
,
readonly
=
false
,
onCancel
}
=
props
...
@@ -19,14 +20,13 @@ const FC = (props) => {
...
@@ -19,14 +20,13 @@ const FC = (props) => {
const
save
=
()
=>
{
const
save
=
()
=>
{
setWaiting
(
true
)
setWaiting
(
true
)
dispatch
({
dispatch
({
type
:
'datamodel.
syncBranch
'
,
type
:
'datamodel.
getForkedModel
'
,
payload
:
{
payload
:
{
params
:
{
id
:
item
?.
id
,
id
:
item
?.
id
,
}
},
},
callback
:
data
=>
{
callback
:
data
=>
{
close
(
true
)
setWaiting
(
false
)
window
.
open
(
`/data-govern/data-model-action?
${
Action
}
=edit&
${
ModelerId
}
=
${
item
?.
id
}
&
$
{
ModelerMergeId
}
=
$
{
data
?.
id
}
`);
},
},
error: () => {
error: () => {
setWaiting(false)
setWaiting(false)
...
...
src/view/Manage/Model/Component/merge-to-master.jsx
View file @
9bc02df0
...
@@ -19,7 +19,6 @@ const FC = (props) => {
...
@@ -19,7 +19,6 @@ const FC = (props) => {
const
save
=
()
=>
{
const
save
=
()
=>
{
setWaiting
(
true
)
setWaiting
(
true
)
if
((
items
??[]).
length
>
1
)
{
dispatch
({
dispatch
({
type
:
'datamodel.joinBranch'
,
type
:
'datamodel.joinBranch'
,
payload
:
{
payload
:
{
...
@@ -32,22 +31,6 @@ const FC = (props) => {
...
@@ -32,22 +31,6 @@ const FC = (props) => {
setWaiting
(
false
)
setWaiting
(
false
)
}
}
})
})
}
else
{
dispatch
({
type
:
'datamodel.getForkedModel'
,
payload
:
{
id
:
items
[
0
].
id
},
callback
:
data
=>
{
setWaiting
(
false
)
window
.
open
(
`/data-govern/data-model-action?
${
Action
}
=edit&
${
ModelerId
}
=
${
data
?.
id
}
&
$
{
ModelerMergeId
}
=
$
{
items
[
0
].
id
}
`);
},
error: () => {
setWaiting(false)
}
})
}
}
}
const
footer
=
React
.
useMemo
(()
=>
{
const
footer
=
React
.
useMemo
(()
=>
{
...
...
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