From e7ff82950218483991771f9f8eb053b8b32163af Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 07 三月 2024 14:23:24 +0800 Subject: [PATCH] update 优化 工作流代码与接口命名 --- src/components/Process/multiInstanceUser.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Process/multiInstance-user.vue b/src/components/Process/multiInstanceUser.vue similarity index 96% rename from src/components/Process/multiInstance-user.vue rename to src/components/Process/multiInstanceUser.vue index 96fa21f..d79bac9 100644 --- a/src/components/Process/multiInstance-user.vue +++ b/src/components/Process/multiInstanceUser.vue @@ -84,7 +84,7 @@ <script setup name="User" lang="ts"> import { deptTreeSelect } from '@/api/system/user'; -import { getWorkflowAddMultiListByPage, getWorkflowDeleteMultiInstanceList, getUserListByIds } from '@/api/workflow/workflowUser'; +import { getPageByAddMultiInstance, getListByDeleteMultiInstance, getUserListByIds } from '@/api/workflow/workflowUser'; import { addMultiInstanceExecution, deleteMultiInstanceExecution } from '@/api/workflow/task'; import { UserVO } from '@/api/system/user/types'; import { DeptVO } from '@/api/system/dept/types'; @@ -151,7 +151,7 @@ visible.value = true; queryParams.value.taskId = taskId; loading.value = true; - const res = await getWorkflowAddMultiListByPage(queryParams.value); + const res = await getPageByAddMultiInstance(queryParams.value); loading.value = false; userList.value = res.rows; total.value = res.total; @@ -173,7 +173,7 @@ const getList = async () => { loading.value = true; - const res = await getWorkflowAddMultiListByPage(queryParams.value); + const res = await getPageByAddMultiInstance(queryParams.value); loading.value = false; userList.value = res.rows; total.value = res.total; @@ -199,7 +199,7 @@ queryParams.value.taskId = taskId; multiInstance.value = 'delete'; visible.value = true; - const res = await getWorkflowDeleteMultiInstanceList(taskId); + const res = await getListByDeleteMultiInstance(taskId); taskList.value = res.data; loading.value = false; }; @@ -359,4 +359,4 @@ getAddMultiInstanceList, getDeleteMultiInstanceList }); -</script> \ No newline at end of file +</script> -- Gitblit v1.9.3