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
93c48fe7
Commit
93c48fe7
authored
Jul 15, 2022
by
吴永生#A02208
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 监控状态
parent
d16c0cda
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
index.tsx
src/views/Project/components/Flow/index.tsx
+4
-1
index.tsx
src/views/WorkFlowEdit/index.tsx
+2
-1
No files found.
src/views/Project/components/Flow/index.tsx
View file @
93c48fe7
...
@@ -41,6 +41,8 @@ interface IProps extends ReactFlowProps {
...
@@ -41,6 +41,8 @@ interface IProps extends ReactFlowProps {
setTasks
?:
(
val
:
ITask
[])
=>
void
;
setTasks
?:
(
val
:
ITask
[])
=>
void
;
/** 点击流程node 节点 返回唯一标识符 */
/** 点击流程node 节点 返回唯一标识符 */
onFlowNodeClick
?:
(
val
:
string
)
=>
void
;
onFlowNodeClick
?:
(
val
:
string
)
=>
void
;
/** 监听事件的状态 */
ListenState
?:
boolean
;
}
}
const
Flow
=
(
props
:
IProps
)
=>
{
const
Flow
=
(
props
:
IProps
)
=>
{
...
@@ -52,6 +54,7 @@ const Flow = (props: IProps) => {
...
@@ -52,6 +54,7 @@ const Flow = (props: IProps) => {
type
:
flowType
=
"default"
,
type
:
flowType
=
"default"
,
setTasks
,
setTasks
,
onFlowNodeClick
,
onFlowNodeClick
,
ListenState
=
true
,
...
other
...
other
}
=
props
;
}
=
props
;
/** 自定义的节点类型 */
/** 自定义的节点类型 */
...
@@ -126,7 +129,7 @@ const Flow = (props: IProps) => {
...
@@ -126,7 +129,7 @@ const Flow = (props: IProps) => {
/** 删除批节点或者线 */
/** 删除批节点或者线 */
const
deleteSelectBatchNode
=
useCallback
(
const
deleteSelectBatchNode
=
useCallback
(
(
e
:
any
)
=>
{
(
e
:
any
)
=>
{
if
(
e
.
keyCode
===
8
)
{
if
(
e
.
keyCode
===
8
&&
ListenState
)
{
/** 删除批节点逻辑 */
/** 删除批节点逻辑 */
if
(
inSideBatchNodeId
)
{
if
(
inSideBatchNodeId
)
{
const
newVal
=
const
newVal
=
...
...
src/views/WorkFlowEdit/index.tsx
View file @
93c48fe7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-21 20:03:56
* @Date: 2022-06-21 20:03:56
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-15 1
6:35:59
* @LastEditTime: 2022-07-15 1
8:44:41
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.tsx
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -224,6 +224,7 @@ const WorkFlowEdit = observer((props: IProps) => {
...
@@ -224,6 +224,7 @@ const WorkFlowEdit = observer((props: IProps) => {
setTasks=
{
setTemplateConfigInfo
}
setTasks=
{
setTemplateConfigInfo
}
type=
"edit"
type=
"edit"
onFlowNodeClick=
{
handleNodeClick
}
onFlowNodeClick=
{
handleNodeClick
}
ListenState=
{
!
saveFormDialog
}
/>
/>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
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