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
9cecc1cf
Commit
9cecc1cf
authored
Sep 08, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型审批详情
parent
86d09ee5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
12 deletions
+13
-12
App.js
src/App.js
+1
-0
AssetEdit.jsx
src/view/Manage/AssetManage/Component/AssetEdit.jsx
+1
-1
Org.jsx
src/view/Manage/Map/Component/Org.jsx
+3
-3
EditModel.jsx
src/view/Manage/Model/Component/EditModel.jsx
+1
-1
ImportAction.jsx
src/view/Manage/Model/Component/ImportAction.jsx
+7
-7
No files found.
src/App.js
View file @
9cecc1cf
...
...
@@ -96,6 +96,7 @@ export class App extends React.Component {
<
Route
path
=
{
'/center-home/menu/asset-manage'
}
component
=
{
AssetManage
}
exact
/>
<
Route
path
=
{
'/center-home/menu/asset-browse'
}
component
=
{
AssetBrowse
}
exact
/>
<
Route
path
=
{
'/center-home/menu/asset-recycle'
}
component
=
{
AssetRecycle
}
exact
/>
<
Route
path
=
{
'/center-home/data-model-action'
}
component
=
{
EditModel
}
exact
/>
<
/Switch
>
<
/Router
>
<
/AppContext.Provider
>
...
...
src/view/Manage/AssetManage/Component/AssetEdit.jsx
View file @
9cecc1cf
...
...
@@ -137,7 +137,7 @@ const AssetEdit = (props) => {
<
AppContext
.
Consumer
>
{
value
=>
{
value
?.
onGlobalStateChange
((
state
,
prev
)
=>
{
value
?.
onGlobalStateChange
&&
value
?.
onGlobalStateChange
((
state
,
prev
)
=>
{
if
(
state
.
message
===
'data-govern-show-metadata-list-callback-message'
)
{
form
?.
setFieldsValue
({
'资产项'
:
state
.
data
});
}
...
...
src/view/Manage/Map/Component/Org.jsx
View file @
9cecc1cf
...
...
@@ -149,10 +149,10 @@ const init = (ctx) => function (container, data) {
label
:
fittingString
(
node
.
text
||
''
,
maxTextWidth
,
globalFontSize
),
labelCfg
:
{
position
:
'bottom'
,
offset
:
-
5
,
offset
:
5
,
style
:
{
rotate
:
Math
.
PI
/
2
,
textAlign
:
'
start
'
,
rotate
:
0
,
textAlign
:
'
center
'
,
},
},
};
...
...
src/view/Manage/Model/Component/EditModel.jsx
View file @
9cecc1cf
...
...
@@ -106,7 +106,7 @@ const EditModel = (props) => {
title
=
'新增模型'
;
}
else
if
(
action
===
'edit'
)
{
title
=
'模型编辑'
;
}
else
if
(
action
===
'detail'
)
{
}
else
if
(
action
===
'detail'
||
action
===
'flow'
)
{
title
=
'模型详情'
;
}
...
...
src/view/Manage/Model/Component/ImportAction.jsx
View file @
9cecc1cf
...
...
@@ -26,7 +26,7 @@ const ImportAction = (props) => {
if
((
action
||
''
)
===
''
)
return
;
//初始化form状态
if
(
action
===
'add'
||
action
===
'edit'
)
{
if
(
action
===
'add'
||
action
===
'edit'
||
action
===
'flow'
)
{
form
.
setFieldsValue
({
cnName
:
''
,
name
:
''
,
...
...
@@ -58,7 +58,7 @@ const ImportAction = (props) => {
}
else
{
getDraft
((
data
.
constraints
||
[]).
length
>
0
?
data
.
constraints
[
0
]:{},
{}
,[]);
}
}
else
if
(
action
===
'edit'
||
action
===
'detail'
)
{
}
else
if
(
action
===
'edit'
||
action
===
'detail'
||
action
===
'flow'
)
{
getCurrentDataModel
();
}
},
...
...
@@ -252,7 +252,7 @@ const ImportAction = (props) => {
dispatch
({
type
:
'datamodel.validateDataModel'
,
payload
:
{
data
:
action
===
'detail'
?
data
:{
...
data
,
name
:
row
.
name
||
''
,
cnName
:
row
.
cnName
||
''
},
data
:
(
action
===
'detail'
||
action
===
'flow'
)
?
data
:{
...
data
,
name
:
row
.
name
||
''
,
cnName
:
row
.
cnName
||
''
},
},
callback
:
_data
=>
{
setValidateReports
(
_data
||
[]);
...
...
@@ -307,7 +307,7 @@ const ImportAction = (props) => {
const
container
=
(<
React
.
Fragment
>
<
ImportActionHeader
form=
{
form
}
editable=
{
action
!==
'detail'
}
editable=
{
action
!==
'detail'
&&
action
!==
'flow'
}
modelerData=
{
modelerData
||
{}
}
constraints=
{
constraints
}
templates=
{
templates
}
...
...
@@ -324,7 +324,7 @@ const ImportAction = (props) => {
validateReports=
{
validateReports
}
supportedDatatypes=
{
supportedDatatypes
}
onChange=
{
onTableChange
}
editable=
{
action
!==
'detail'
}
editable=
{
action
!==
'detail'
&&
action
!==
'flow'
}
terms=
{
terms
}
/>
<
ImportActionIndex
...
...
@@ -333,7 +333,7 @@ const ImportAction = (props) => {
template=
{
template
}
validateReports=
{
validateReports
}
onChange=
{
onIndexChange
}
editable=
{
action
!==
'detail'
}
editable=
{
action
!==
'detail'
&&
action
!==
'flow'
}
terms=
{
terms
}
/>
<
ImportActionPartition
...
...
@@ -343,7 +343,7 @@ const ImportAction = (props) => {
validateReports=
{
validateReports
}
supportedPartitionTypes=
{
supportedPartitionTypes
}
onChange=
{
onPartitionChange
}
editable=
{
action
!==
'detail'
}
editable=
{
action
!==
'detail'
&&
action
!==
'flow'
}
terms=
{
terms
}
/>
</
React
.
Fragment
>);
...
...
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