Skip to content

Commit d7e6523

Browse files
committed
【功能优化】延迟器节点的高亮显示
1 parent 98774ec commit d7e6523

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

src/views/bpm/processInstance/detail/ProcessInstanceSimpleViewer.vue

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ const setSimpleModelNodeTaskStatus = (
8282
}
8383
return
8484
}
85-
8685
// 审批节点
8786
if (
8887
simpleModel.type === NodeType.START_USER_NODE ||
@@ -98,26 +97,33 @@ const setSimpleModelNodeTaskStatus = (
9897
}
9998
// TODO 是不是还缺一个 cancel 的状态
10099
}
101-
102100
// 抄送节点
103101
if (simpleModel.type === NodeType.COPY_TASK_NODE) {
104-
// 抄送节点 只有通过和未执行状态
102+
// 抄送节点,只有通过和未执行状态
105103
if (finishedActivityIds.includes(simpleModel.id)) {
106104
simpleModel.activityStatus = TaskStatusEnum.APPROVE
107105
} else {
108106
simpleModel.activityStatus = TaskStatusEnum.NOT_START
109107
}
110108
}
111-
// 条件节点 对应 SequenceFlow
109+
// 延迟器节点
110+
if (simpleModel.type === NodeType.DELAY_TIMER_NODE) {
111+
// 延迟器节点,只有通过和未执行状态
112+
if (finishedActivityIds.includes(simpleModel.id)) {
113+
simpleModel.activityStatus = TaskStatusEnum.APPROVE
114+
} else {
115+
simpleModel.activityStatus = TaskStatusEnum.NOT_START
116+
}
117+
}
118+
// 条件节点对应 SequenceFlow
112119
if (simpleModel.type === NodeType.CONDITION_NODE) {
113-
// 条件节点只有通过和未执行状态
120+
// 条件节点,只有通过和未执行状态
114121
if (finishedSequenceFlowActivityIds.includes(simpleModel.id)) {
115122
simpleModel.activityStatus = TaskStatusEnum.APPROVE
116123
} else {
117124
simpleModel.activityStatus = TaskStatusEnum.NOT_START
118125
}
119126
}
120-
121127
// 网关节点
122128
if (
123129
simpleModel.type === NodeType.CONDITION_BRANCH_NODE ||
@@ -155,13 +161,13 @@ const setSimpleModelNodeTaskStatus = (
155161

156162
<style lang="scss" scoped>
157163
.process-viewer-container {
158-
height: 100%;
159164
width: 100%;
165+
height: 100%;
160166
161167
:deep(.process-viewer) {
168+
width: 100%;
162169
height: 100% !important;
163170
min-height: 100%;
164-
width: 100%;
165171
overflow: auto;
166172
}
167173
}

0 commit comments

Comments
 (0)