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
0def22f6
Commit
0def22f6
authored
Mar 13, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流程详情
parent
156270f6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
constant.js
src/util/constant.js
+2
-0
EditModel.jsx
src/view/Manage/Model/Component/EditModel.jsx
+0
-0
index.jsx
src/view/Manage/ModelReview/index.jsx
+7
-11
No files found.
src/util/constant.js
View file @
0def22f6
...
...
@@ -18,6 +18,8 @@ export const VersionId = 'vid';
export
const
TemplateId
=
'tid'
;
export
const
Holder
=
'holder'
;
export
const
ReadOnly
=
'readOnly'
;
export
const
ApprovalId
=
'approvalId'
;
export
const
ApprovalType
=
'approvalType'
;
export
const
DataModelerRoleAdmin
=
'admin'
;
export
const
DataModelerRoleUser
=
'user'
;
...
...
src/view/Manage/Model/Component/EditModel.jsx
View file @
0def22f6
This diff is collapsed.
Click to expand it.
src/view/Manage/ModelReview/index.jsx
View file @
0def22f6
...
...
@@ -6,6 +6,7 @@ import Table from '../../../util/Component/Table'
import
{
isSzseEnv
,
getQueryParam
,
showMessage
}
from
"../../../util"
import
{
dispatch
}
from
'../../../model'
;
import
{
AttachesItem
}
from
"../Model/Component/start-flow"
import
{
Action
,
ApprovalId
,
ApprovalType
,
ModelerId
}
from
"../../../util/constant"
const
FC
=
(
props
)
=>
{
const
[
loading
,
setLoading
]
=
React
.
useState
(
false
)
...
...
@@ -39,14 +40,6 @@ const FC = (props) => {
})
}
const
onGraghClick
=
()
=>
{
}
const
onCloseClick
=
()
=>
{
}
const
onSaveClick
=
()
=>
{
try
{
const
tableData
=
listRef
.
current
?.
tableData
...
...
@@ -109,7 +102,6 @@ const FC = (props) => {
<
div
className=
'p-5'
style=
{
{
height
:
'100%'
}
}
>
<
div
className=
'flex'
style=
{
{
justifyContent
:
'end'
}
}
>
<
Space
>
<
Button
onClick=
{
onCloseClick
}
>
关闭
</
Button
>
<
Button
onClick=
{
onSaveClick
}
>
保存
</
Button
>
<
Button
onClick=
{
onSubmitClick
}
>
提交
</
Button
>
</
Space
>
...
...
@@ -181,12 +173,12 @@ const List = React.forwardRef(function ({type, data}, ref) {
dataIndex
:
'name'
,
width
:
isSzseEnv
?
360
:
160
,
ellipsis
:
false
,
render
:
(
text
,
record
)
=>
(
render
:
(
text
,
record
,
index
)
=>
(
<
Tooltip
title=
{
text
}
>
<
Typography
.
Paragraph
ellipsis=
{
{
rows
:
3
,
}
}
><
a
onClick=
{
()
=>
{
onModelClick
(
record
,
index
)
}
}
>
{
text
}
</
a
></
Typography
.
Paragraph
>
</
Tooltip
>
)
...
...
@@ -313,6 +305,10 @@ const List = React.forwardRef(function ({type, data}, ref) {
},
]
const
onModelClick
=
(
record
,
index
)
=>
{
window
.
open
(
`/data-govern/data-model-action?
${
Action
}
=flow&
${
ModelerId
}
=
${
record
?.
id
}
&
$
{
ApprovalId
}
=
$
{
data
?.
id
}
&
$
{
ApprovalType
}
=
$
{
type
}
`)
}
return (
<Form form={form}>
<Table
...
...
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