diff --git a/yudao-ui-admin/src/api/bpm/task.js b/yudao-ui-admin/src/api/bpm/task.js index aa32263f3..359c43af2 100644 --- a/yudao-ui-admin/src/api/bpm/task.js +++ b/yudao-ui-admin/src/api/bpm/task.js @@ -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 + }) +} diff --git a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue index de1a693f9..2c6d83991 100644 --- a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue +++ b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue @@ -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 ''; }, @@ -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; diff --git a/yudao-ui-admin/src/views/bpm/processInstance/detail.vue b/yudao-ui-admin/src/views/bpm/processInstance/detail.vue index 7ecc53438..aad82e0d9 100644 --- a/yudao-ui-admin/src/views/bpm/processInstance/detail.vue +++ b/yudao-ui-admin/src/views/bpm/processInstance/detail.vue @@ -5,7 +5,7 @@