Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
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
Administrator
bkunyun
Commits
b31de9d7
Commit
b31de9d7
authored
Aug 09, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增算子流程图显示版本信息
parent
c79013ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
index.tsx
src/views/CustomOperator/index.tsx
+1
-0
index.tsx
...ct/components/Flow/components/BatchOperatorFlow/index.tsx
+3
-0
index.tsx
...ews/Project/components/Flow/components/FlowNode/index.tsx
+9
-4
No files found.
src/views/CustomOperator/index.tsx
View file @
b31de9d7
...
@@ -169,6 +169,7 @@ const CustomOperator = observer((props: IProps) => {
...
@@ -169,6 +169,7 @@ const CustomOperator = observer((props: IProps) => {
onFlowNodeClick=
{
handleNodeClick
}
onFlowNodeClick=
{
handleNodeClick
}
flowNodeDraggable=
{
true
}
flowNodeDraggable=
{
true
}
// ListenState={!saveFormDialog}
// ListenState={!saveFormDialog}
showVersion=
{
true
}
showControls=
{
false
}
showControls=
{
false
}
/>
/>
</
div
>
</
div
>
...
...
src/views/Project/components/Flow/components/BatchOperatorFlow/index.tsx
View file @
b31de9d7
...
@@ -35,6 +35,7 @@ interface IProps extends ReactFlowProps {
...
@@ -35,6 +35,7 @@ interface IProps extends ReactFlowProps {
flowNodeDraggable
?:
boolean
;
flowNodeDraggable
?:
boolean
;
// 是否显示Controls(放大缩小全屏等按钮)
// 是否显示Controls(放大缩小全屏等按钮)
showControls
?:
boolean
;
showControls
?:
boolean
;
showVersion
?:
boolean
;
// 在流程图中是否显示算子版本
}
}
const
BatchOperatorFlow
=
(
props
:
IProps
)
=>
{
const
BatchOperatorFlow
=
(
props
:
IProps
)
=>
{
...
@@ -46,6 +47,7 @@ const BatchOperatorFlow = (props: IProps) => {
...
@@ -46,6 +47,7 @@ const BatchOperatorFlow = (props: IProps) => {
ListenState
=
true
,
ListenState
=
true
,
flowNodeDraggable
=
false
,
flowNodeDraggable
=
false
,
showControls
=
true
,
showControls
=
true
,
showVersion
=
false
,
...
other
...
other
}
=
props
;
}
=
props
;
/** 自定义的节点类型 */
/** 自定义的节点类型 */
...
@@ -157,6 +159,7 @@ const BatchOperatorFlow = (props: IProps) => {
...
@@ -157,6 +159,7 @@ const BatchOperatorFlow = (props: IProps) => {
style
:
{
style
:
{
padding
:
"20px"
,
padding
:
"20px"
,
},
},
showVersion
,
},
},
/** 坐标 */
/** 坐标 */
position
:
{
position
:
{
...
...
src/views/Project/components/Flow/components/FlowNode/index.tsx
View file @
b31de9d7
...
@@ -43,7 +43,8 @@ const FlowNode = (props: any) => {
...
@@ -43,7 +43,8 @@ const FlowNode = (props: any) => {
inStyle
=
{
background
:
"#C2C6CC "
,
left
:
12
},
// 样式
inStyle
=
{
background
:
"#C2C6CC "
,
left
:
12
},
// 样式
outStyle
=
{
background
:
"#C2C6CC "
,
left
:
12
},
// 样式
outStyle
=
{
background
:
"#C2C6CC "
,
left
:
12
},
// 样式
flowType
,
flowType
,
info
:
{
title
,
isCheck
,
executionStatus
,
parameters
},
info
:
{
title
,
isCheck
,
executionStatus
,
parameters
,
version
},
showVersion
,
}
=
data
;
}
=
data
;
/** 获取输入参数数组 */
/** 获取输入参数数组 */
...
@@ -98,9 +99,13 @@ const FlowNode = (props: any) => {
...
@@ -98,9 +99,13 @@ const FlowNode = (props: any) => {
})
})
:
null
}
:
null
}
<
div
>
<
div
>
{
title
||
""
}
{
title
||
""
}
{
showVersion
&&
version
}
{
flowType
!==
'edit'
&&
isCheck
?
<
span
className=
{
styles
.
successDot
}
></
span
>:
null
}
{
flowType
!==
"edit"
&&
isCheck
?
(
{
flowType
===
'edit'
&&
isCheck
===
false
?
<
span
className=
{
styles
.
errorDot
}
></
span
>:
null
}
<
span
className=
{
styles
.
successDot
}
></
span
>
)
:
null
}
{
flowType
===
"edit"
&&
isCheck
===
false
?
(
<
span
className=
{
styles
.
errorDot
}
></
span
>
)
:
null
}
{
getImgUrl
(
executionStatus
)
&&
(
{
getImgUrl
(
executionStatus
)
&&
(
<
img
<
img
style=
{
{
marginLeft
:
"6px"
}
}
style=
{
{
marginLeft
:
"6px"
}
}
...
...
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