From a614dee5c62433437fe343521f99f2b0c9e190b0 Mon Sep 17 00:00:00 2001 From: warm <290631660@qq.com> Date: Tue, 27 May 2025 16:58:18 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=96=B0=E5=A2=9E=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=98=BE=E7=A4=BA=E6=B5=81=E7=A8=8B=E5=9B=BE?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=20feat=20=E5=8A=9E=E7=90=86=E4=BA=BA?= =?UTF-8?q?=E6=9D=83=E9=99=90=E5=A4=84=E7=90=86=E5=99=A8=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=8A=9E=E7=90=86=E4=BA=BA=E8=BD=AC=E6=8D=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=EF=BC=8C=E6=AF=94=E5=A6=82=E8=A7=92=E8=89=B2=E8=BD=AC?= =?UTF-8?q?=E7=94=A8=E6=88=B7=20update=20=E5=8D=87=E7=BA=A7warm-flow-1.7.3?= =?UTF-8?q?-m1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workflow/workflowCommon/index.ts | 3 +- src/api/workflow/workflowCommon/types.ts | 1 + src/components/Process/approvalRecord.vue | 10 +-- src/components/Process/flowChart.vue | 79 +++----------------- src/views/workflow/leave/leaveEdit.vue | 2 +- src/views/workflow/processInstance/index.vue | 5 +- src/views/workflow/task/allTaskWaiting.vue | 3 +- src/views/workflow/task/myDocument.vue | 5 +- src/views/workflow/task/taskCopyList.vue | 3 +- src/views/workflow/task/taskFinish.vue | 3 +- src/views/workflow/task/taskWaiting.vue | 3 +- 11 files changed, 34 insertions(+), 83 deletions(-) diff --git a/src/api/workflow/workflowCommon/index.ts b/src/api/workflow/workflowCommon/index.ts index 0f5ce1b2..696312e6 100644 --- a/src/api/workflow/workflowCommon/index.ts +++ b/src/api/workflow/workflowCommon/index.ts @@ -8,7 +8,8 @@ export default { query: { id: routerJumpVo.businessId, type: routerJumpVo.type, - taskId: routerJumpVo.taskId + taskId: routerJumpVo.taskId, + instanceId: routerJumpVo.instanceId } }); } diff --git a/src/api/workflow/workflowCommon/types.ts b/src/api/workflow/workflowCommon/types.ts index 3e7a71d5..2d091157 100644 --- a/src/api/workflow/workflowCommon/types.ts +++ b/src/api/workflow/workflowCommon/types.ts @@ -4,6 +4,7 @@ export interface RouterJumpVo { type: string; formCustom: string; formPath: string; + instanceId: string | number; } export interface StartProcessBo { diff --git a/src/components/Process/approvalRecord.vue b/src/components/Process/approvalRecord.vue index e70d289b..96108f7d 100644 --- a/src/components/Process/approvalRecord.vue +++ b/src/components/Process/approvalRecord.vue @@ -3,7 +3,7 @@ - +
@@ -73,20 +73,18 @@ const loading = ref(false); const visible = ref(false); const historyList = ref>([]); const tabActiveName = ref('image'); -const imgUrl = ref(''); -const defJson = ref(''); +const insId = ref(null); //初始化查询审批记录 -const init = async (businessId: string | number) => { +const init = async (businessId: string | number, instanceId: string | number) => { visible.value = true; loading.value = true; tabActiveName.value = 'image'; historyList.value = []; + insId.value = instanceId; flowImage(businessId).then((resp) => { if (resp.data) { historyList.value = resp.data.list; - imgUrl.value = 'data:image/gif;base64,' + resp.data.image; - defJson.value = resp.data.defChart.defJson; if (historyList.value.length > 0) { historyList.value.forEach((item) => { if (item.ext) { diff --git a/src/components/Process/flowChart.vue b/src/components/Process/flowChart.vue index d5cd2c15..f0afe466 100644 --- a/src/components/Process/flowChart.vue +++ b/src/components/Process/flowChart.vue @@ -1,84 +1,29 @@