Skip to content

Commit

Permalink
feat:【工作流】添加vue2版本的退回和委派前端代码
Browse files Browse the repository at this point in the history
  • Loading branch information
lxl452816 committed Oct 11, 2023
1 parent fcb39a6 commit 2826dbb
Show file tree
Hide file tree
Showing 3 changed files with 230 additions and 42 deletions.
22 changes: 22 additions & 0 deletions src/api/bpm/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,25 @@ export function getTaskListByProcessInstanceId(processInstanceId) {
method: 'get',
})
}
export function getReturnList(taskId) {
return request({
url: '/bpm/task/get-return-list?taskId='+ taskId,
method: 'get',
})
}


export function returnTask(data) {
return request({
url: '/bpm/task/return',
method: 'PUT',
data: data
})
}
export function delegateTask(data) {
return request({
url: '/bpm/task/delegate',
method: 'PUT',
data: data
})
}
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ export default {
return 'highlight-reject';
} else if (result === 4) { // 已取消
return 'highlight-cancel';
} else if (result === 5) { // 已退回
return 'highlight-back';
} else if (result === 6) { // 已委派
return 'highlight-todo';
}
return '';
},
Expand Down Expand Up @@ -475,7 +479,33 @@ export default {
:deep(.highlight-cancel.djs-connection > .djs-visual > path) {
stroke: grey !important;
}
/**驳回 */
.highlight-back.djs-connection > .djs-visual > path {
stroke: #FFBA00 !important;
stroke-dasharray: 4px !important;
fill-opacity: 0.2 !important;
}
.highlight-back.djs-shape .djs-visual > :nth-child(1) {
fill: #FFBA00 !important;
stroke: #FFBA00 !important;
stroke-dasharray: 4px !important;
fill-opacity: 0.2 !important;
}
:deep(.highlight-back.djs-connection > .djs-visual > path) {
stroke: #FFBA00 !important;
stroke-dasharray: 4px !important;
fill-opacity: 0.2 !important;
marker-end: url(#sequenceflow-end-_E7DFDF-_E7DFDF-803g1kf6zwzmcig1y2ulm5egr);
}
:deep(.highlight-back.djs-shape .djs-visual > :nth-child(1)) {
fill: #FFBA00 !important;
stroke: #FFBA00 !important;
stroke-dasharray: 4px !important;
fill-opacity: 0.2 !important;
}
.element-overlays {
box-sizing: border-box;
padding: 8px;
Expand Down
Loading

0 comments on commit 2826dbb

Please sign in to comment.