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
995910eb
Commit
995910eb
authored
Aug 10, 2022
by
wuyongsheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 自定义算子解决删除线问题
parent
07de480b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
Tabs.tsx
src/components/mui/Tabs.tsx
+7
-3
index.tsx
src/views/Project/components/Flow/index.tsx
+4
-6
index.tsx
src/views/WorkFlowEdit/components/ParameterSetting/index.tsx
+1
-1
No files found.
src/components/mui/Tabs.tsx
View file @
995910eb
...
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-05-31 10:18:13
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-08-
09 18:29:51
* @LastEditTime: 2022-08-
10 11:06:12
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -128,7 +128,7 @@ const Tabs = (props: IProps) => {
<
Tab
key=
{
key
}
label=
{
labelRender
(
item
,
key
)
}
value=
{
item
.
value
}
value=
{
item
.
value
||
""
}
id=
{
item
.
value
}
disabled=
{
item
.
disabled
}
/>
...
...
@@ -140,7 +140,11 @@ const Tabs = (props: IProps) => {
?.
filter
((
item
)
=>
!
item
.
hide
)
.
map
((
item
)
=>
{
return
(
<
TabPanel
sx=
{
tabPanelSx
}
value=
{
item
.
value
}
key=
{
item
.
value
}
>
<
TabPanel
sx=
{
tabPanelSx
}
value=
{
item
.
value
||
""
}
key=
{
item
.
value
}
>
{
item
.
component
}
</
TabPanel
>
);
...
...
src/views/Project/components/Flow/index.tsx
View file @
995910eb
...
...
@@ -18,7 +18,7 @@ import FlowNode from "./components/FlowNode";
import
{
getCustomTemplateParameterCheckResult
}
from
"@/views/WorkFlowEdit/util"
;
import
{
useMessage
}
from
"@/components/MySnackbar"
;
import
styles
from
'./index.module.css'
import
styles
from
"./index.module.css"
;
/*
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
...
...
@@ -75,7 +75,7 @@ const Flow = (props: IProps) => {
/** 原始数据删除线 */
const
tasksDeleteLine
=
useCallback
(
(
connection
:
Connection
|
Edge
)
=>
{
(
connection
:
Connection
|
Edge
|
any
)
=>
{
const
result
=
(
tasks
?.
length
&&
tasks
.
map
((
item
)
=>
{
...
...
@@ -83,9 +83,7 @@ const Flow = (props: IProps) => {
if
(
item
.
id
===
connection
.
source
&&
item
.
type
===
"BATCH"
)
{
const
newEdges
=
(
item
.
edges
?.
length
&&
item
.
edges
?.
filter
(
(
every
)
=>
every
.
sourceHandle
!==
connection
.
sourceHandle
))
||
item
.
edges
?.
filter
((
every
)
=>
every
.
id
!==
connection
.
id
))
||
[];
return
{
...
...
@@ -375,7 +373,7 @@ const Flow = (props: IProps) => {
setInSideFlowNodeId
(
""
);
onBatchClick
&&
onBatchClick
(
""
);
setSelectedEdge
(
undefined
);
onFlowNodeClick
&&
onFlowNodeClick
(
''
)
onFlowNodeClick
&&
onFlowNodeClick
(
""
);
};
/** node节点 */
...
...
src/views/WorkFlowEdit/components/ParameterSetting/index.tsx
View file @
995910eb
...
...
@@ -695,7 +695,7 @@ const ParameterSetting = (props: IParameterSettingProps) => {
}
else
if
(
hardwareParameters
.
length
!==
0
)
{
return
"hardware"
;
}
else
{
return
"
basis
"
;
return
""
;
}
},
[
basisParameters
,
seniorParameters
,
hardwareParameters
]);
...
...
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