From fb7e3073d84e312e914648f0f7d2676b5e71b4e8 Mon Sep 17 00:00:00 2001 From: LiuHao Date: Mon, 15 Jan 2024 11:01:11 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=A2=9E=E5=8A=A0=E5=BE=85=E5=8A=9E?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=20=E6=8E=A5=E5=8F=A3=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workflow/task/index.ts | 7 +-- src/api/workflow/task/types.ts | 39 +++++++++++++++++ src/views/workflow/task/index.vue | 71 +++++++++++++++++-------------- 3 files changed, 83 insertions(+), 34 deletions(-) create mode 100644 src/api/workflow/task/types.ts diff --git a/src/api/workflow/task/index.ts b/src/api/workflow/task/index.ts index d74df6d..95b185a 100644 --- a/src/api/workflow/task/index.ts +++ b/src/api/workflow/task/index.ts @@ -1,11 +1,12 @@ import request from '@/utils/request'; - +import { AxiosPromise } from 'axios'; +import { TaskQuery, TaskVO } from '@/api/workflow/task/types'; /** * 查询待办列表 * @param query * @returns {*} */ -export const getTaskWaitByPage = (query: object) => { +export const getTaskWaitByPage = (query: TaskQuery): AxiosPromise => { return request({ url: '/workflow/task/getTaskWaitByPage', method: 'get', @@ -18,7 +19,7 @@ export const getTaskWaitByPage = (query: object) => { * @param query * @returns {*} */ -export const getTaskFinishByPage = (query: object) => { +export const getTaskFinishByPage = (query: TaskQuery): AxiosPromise => { return request({ url: '/workflow/task/getTaskFinishByPage', method: 'get', diff --git a/src/api/workflow/task/types.ts b/src/api/workflow/task/types.ts new file mode 100644 index 0000000..d2b846b --- /dev/null +++ b/src/api/workflow/task/types.ts @@ -0,0 +1,39 @@ +export interface TaskQuery extends PageQuery { + name: string; + processDefinitionKey: string; + processDefinitionName: string; +} + +export interface ParticipantVo { + groupIds?: string[] | number[]; + candidate: string[] | number[]; + candidateName: string[]; + claim: boolean; +} + +export interface TaskVO extends BaseEntity { + id: string; + name: string; + description?: string; + priority: number; + owner?: string; + assignee?: string | number; + assigneeName?: string; + processInstanceId: string; + executionId: string; + taskDefinitionId?: any; + processDefinitionId: string; + endTime?: string; + taskDefinitionKey: string; + dueDate?: string; + category?: any; + parentTaskId?: any; + tenantId: string; + claimTime?: string; + businessStatus: string; + businessStatusName: string; + processDefinitionName: string; + processDefinitionKey: string; + participantVo: ParticipantVo; + multiInstance: boolean; +} diff --git a/src/views/workflow/task/index.vue b/src/views/workflow/task/index.vue index 4b551ef..c1e83e1 100644 --- a/src/views/workflow/task/index.vue +++ b/src/views/workflow/task/index.vue @@ -1,21 +1,17 @@