From 48f66247374ed182ec3b08eefdb293a2bdda089b Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 22 Mar 2024 09:07:04 +0800 Subject: [PATCH] =?UTF-8?q?BPM=EF=BC=9A=E6=96=B0=E5=A2=9E=E3=80=90?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=BB=BB=E5=8A=A1=E3=80=91=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=EF=BC=8C=E7=94=A8=E4=BA=8E=E5=85=A8=E9=83=A8=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=9A=84=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bpm/task/index.ts | 8 +- src/views/bpm/processInstance/index.vue | 2 +- .../bpm/processInstance/manager/index.vue | 4 +- src/views/bpm/task/done/index.vue | 4 +- src/views/bpm/task/manager/index.vue | 166 ++++++++++++++++++ src/views/bpm/task/todo/index.vue | 2 +- 6 files changed, 178 insertions(+), 8 deletions(-) create mode 100644 src/views/bpm/task/manager/index.vue diff --git a/src/api/bpm/task/index.ts b/src/api/bpm/task/index.ts index 6592542d..f3cda9f7 100644 --- a/src/api/bpm/task/index.ts +++ b/src/api/bpm/task/index.ts @@ -4,14 +4,18 @@ export type TaskVO = { id: number } -export const getTodoTaskPage = async (params: any) => { +export const getTaskTodoPage = async (params: any) => { return await request.get({ url: '/bpm/task/todo-page', params }) } -export const getDoneTaskPage = async (params: any) => { +export const getTaskDonePage = async (params: any) => { return await request.get({ url: '/bpm/task/done-page', params }) } +export const getTaskManagerPage = async (params: any) => { + return await request.get({ url: '/bpm/task/manager-page', params }) +} + export const approveTask = async (data: any) => { return await request.put({ url: '/bpm/task/approve', data }) } diff --git a/src/views/bpm/processInstance/index.vue b/src/views/bpm/processInstance/index.vue index 950f34f0..5d72437f 100644 --- a/src/views/bpm/processInstance/index.vue +++ b/src/views/bpm/processInstance/index.vue @@ -114,7 +114,7 @@ width="180" :formatter="dateFormatter" /> - + diff --git a/src/views/bpm/processInstance/manager/index.vue b/src/views/bpm/processInstance/manager/index.vue index 34cf6d17..ab8da9c9 100644 --- a/src/views/bpm/processInstance/manager/index.vue +++ b/src/views/bpm/processInstance/manager/index.vue @@ -114,7 +114,7 @@ width="180" :formatter="dateFormatter" /> - + @@ -167,7 +167,7 @@ import { CategoryApi } from '@/api/bpm/category' import * as UserApi from '@/api/system/user' import { cancelProcessInstanceByAdmin } from '@/api/bpm/processInstance' -// 它是【我的流程】的差异是,该菜单可以看全部的流程实例 +// 它和【我的流程】的差异是,该菜单可以看全部的流程实例 defineOptions({ name: 'BpmProcessInstanceManager' }) const router = useRouter() // 路由 diff --git a/src/views/bpm/task/done/index.vue b/src/views/bpm/task/done/index.vue index ed922397..f73b47c3 100644 --- a/src/views/bpm/task/done/index.vue +++ b/src/views/bpm/task/done/index.vue @@ -81,7 +81,7 @@ - + @@ -127,7 +127,7 @@ const queryFormRef = ref() // 搜索的表单 const getList = async () => { loading.value = true try { - const data = await TaskApi.getDoneTaskPage(queryParams) + const data = await TaskApi.getTaskDonePage(queryParams) list.value = data.list total.value = data.total } finally { diff --git a/src/views/bpm/task/manager/index.vue b/src/views/bpm/task/manager/index.vue new file mode 100644 index 00000000..688e5150 --- /dev/null +++ b/src/views/bpm/task/manager/index.vue @@ -0,0 +1,166 @@ + + diff --git a/src/views/bpm/task/todo/index.vue b/src/views/bpm/task/todo/index.vue index 43d29921..fc506815 100644 --- a/src/views/bpm/task/todo/index.vue +++ b/src/views/bpm/task/todo/index.vue @@ -109,7 +109,7 @@ const queryFormRef = ref() // 搜索的表单 const getList = async () => { loading.value = true try { - const data = await TaskApi.getTodoTaskPage(queryParams) + const data = await TaskApi.getTaskTodoPage(queryParams) list.value = data.list total.value = data.total } finally {