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
sunyihao
bkunyun
Commits
de23a8e5
Commit
de23a8e5
authored
Jul 11, 2022
by
吴永生#A02208
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 换仓库
parent
e3389589
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
index.tsx
src/views/Project/components/Flow/index.tsx
+2
-0
index.tsx
src/views/WorkFlowEdit/components/OperatorList/index.tsx
+1
-0
index.tsx
src/views/WorkFlowEdit/index.tsx
+9
-2
No files found.
src/views/Project/components/Flow/index.tsx
View file @
de23a8e5
...
...
@@ -154,6 +154,7 @@ const Flow = (props: IProps) => {
/** 内部维护的选择的节点Id */
const
[
inSideNodeId
,
setInSideNodeId
]
=
useState
<
string
>
(
""
);
/** 删除批节点 */
const
deleteSelectBatchNode
=
useCallback
(
(
e
:
any
)
=>
{
if
(
e
.
keyCode
===
8
)
{
...
...
@@ -168,6 +169,7 @@ const Flow = (props: IProps) => {
[
inSideNodeId
,
setTasks
,
tasks
]
);
/** 监听鼠标按下事件 */
useEffect
(()
=>
{
window
.
addEventListener
(
"keyup"
,
deleteSelectBatchNode
);
return
()
=>
{
...
...
src/views/WorkFlowEdit/components/OperatorList/index.tsx
View file @
de23a8e5
...
...
@@ -55,6 +55,7 @@ const OperatorItem = (props: IOperatorItemProps) => {
if
(
bol
&&
index
===
undefined
)
{
index
=
i
;
}
return
!
bol
;
});
if
(
index
!==
undefined
)
{
...
...
src/views/WorkFlowEdit/index.tsx
View file @
de23a8e5
...
...
@@ -2,11 +2,11 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-21 20:03:56
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-
09 15:11:17
* @LastEditTime: 2022-07-
11 11:31:14
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
React
,
{
useState
}
from
"react"
;
import
React
,
{
use
Callback
,
use
State
}
from
"react"
;
import
ArrowBackIosNewIcon
from
"@mui/icons-material/ArrowBackIosNew"
;
import
IconButton
from
"@mui/material/IconButton"
;
...
...
@@ -62,6 +62,13 @@ const WorkFlowEdit = (props: IProps) => {
}
};
/** 选中的task 唯一标识符 */
const
[
selectTaskId
,
setSelectTaskId
]
=
useState
<
string
>
();
/** 设置选中唯一标识符 */
const
handleNodeClick
=
useCallback
((
val
:
string
)
=>
{
setSelectTaskId
(
val
);
},
[]);
return
(
<
div
className=
{
styles
.
swBox
}
>
<
div
className=
{
styles
.
swHeader
}
>
...
...
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