Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d7e6523d
authored
Jan 04, 2025
by
jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能优化】延迟器节点的高亮显示
parent
98774ecc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
src/views/bpm/processInstance/detail/ProcessInstanceSimpleViewer.vue
+14
-8
No files found.
src/views/bpm/processInstance/detail/ProcessInstanceSimpleViewer.vue
View file @
d7e6523d
...
...
@@ -82,7 +82,6 @@ const setSimpleModelNodeTaskStatus = (
}
return
}
// 审批节点
if
(
simpleModel
.
type
===
NodeType
.
START_USER_NODE
||
...
...
@@ -98,26 +97,33 @@ const setSimpleModelNodeTaskStatus = (
}
// TODO 是不是还缺一个 cancel 的状态
}
// 抄送节点
if
(
simpleModel
.
type
===
NodeType
.
COPY_TASK_NODE
)
{
// 抄送节点
只有通过和未执行状态
// 抄送节点
,
只有通过和未执行状态
if
(
finishedActivityIds
.
includes
(
simpleModel
.
id
))
{
simpleModel
.
activityStatus
=
TaskStatusEnum
.
APPROVE
}
else
{
simpleModel
.
activityStatus
=
TaskStatusEnum
.
NOT_START
}
}
// 条件节点 对应 SequenceFlow
// 延迟器节点
if
(
simpleModel
.
type
===
NodeType
.
DELAY_TIMER_NODE
)
{
// 延迟器节点,只有通过和未执行状态
if
(
finishedActivityIds
.
includes
(
simpleModel
.
id
))
{
simpleModel
.
activityStatus
=
TaskStatusEnum
.
APPROVE
}
else
{
simpleModel
.
activityStatus
=
TaskStatusEnum
.
NOT_START
}
}
// 条件节点对应 SequenceFlow
if
(
simpleModel
.
type
===
NodeType
.
CONDITION_NODE
)
{
// 条件节点
。
只有通过和未执行状态
// 条件节点
,
只有通过和未执行状态
if
(
finishedSequenceFlowActivityIds
.
includes
(
simpleModel
.
id
))
{
simpleModel
.
activityStatus
=
TaskStatusEnum
.
APPROVE
}
else
{
simpleModel
.
activityStatus
=
TaskStatusEnum
.
NOT_START
}
}
// 网关节点
if
(
simpleModel
.
type
===
NodeType
.
CONDITION_BRANCH_NODE
||
...
...
@@ -155,13 +161,13 @@ const setSimpleModelNodeTaskStatus = (
<
style
lang=
"scss"
scoped
>
.process-viewer-container
{
height
:
100%
;
width
:
100%
;
height
:
100%
;
:deep(.process-viewer)
{
width
:
100%
;
height
:
100%
!important
;
min-height
:
100%
;
width
:
100%
;
overflow
:
auto
;
}
}
...
...
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