Skip to content

Commit fec7af4

Browse files
committed
【代码优化】工作流:去除 DELEGATE 委托中的状态,适合通过 DELEGATE STATE 读取
1 parent 2df0aa2 commit fec7af4

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/api/bpm/task/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,12 @@ export enum TaskStatusEnum {
3535
* 已退回
3636
*/
3737
RETURN = 5,
38-
/**
39-
* 委派中
40-
*/
41-
DELEGATE = 6,
4238
/**
4339
* 审批通过中
4440
*/
4541
APPROVING = 7
4642
}
4743

48-
export type TaskVO = {
49-
id: number
50-
}
51-
5244
export const getTaskTodoPage = async (params: any) => {
5345
return await request.get({ url: '/bpm/task/todo-page', params })
5446
}

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -756,10 +756,7 @@ const reload = () => {
756756
/** 任务是否为处理中状态 */
757757
const isHandleTaskStatus = () => {
758758
let canHandle = false
759-
if (
760-
TaskApi.TaskStatusEnum.RUNNING === runningTask.value?.status ||
761-
TaskApi.TaskStatusEnum.DELEGATE === runningTask.value?.status
762-
) {
759+
if (TaskApi.TaskStatusEnum.RUNNING === runningTask.value?.status) {
763760
canHandle = true
764761
}
765762
return canHandle

0 commit comments

Comments
 (0)