From 99e753a13da7231305be0dbd347984e47af4e0be Mon Sep 17 00:00:00 2001 From: "825299534@qq.com" Date: Thu, 8 May 2025 10:24:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=A8=A1=E6=9D=BF=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E4=BA=8B=E4=BB=B6=E7=BC=BA=E9=99=B7=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/form/template/index.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/views/form/template/index.vue b/src/views/form/template/index.vue index b44a789..69f6546 100644 --- a/src/views/form/template/index.vue +++ b/src/views/form/template/index.vue @@ -578,17 +578,23 @@ } function handleView(record: Recordable) { - if (record.workflowData?.taskIds && record.workflowData.taskIds.length) { - const { processId, schemaId } = record.workflowData; + const { processId, taskIds, schemaId } = record.workflowData || {}; + if (taskIds && taskIds.length) { router.push({ path: '/flow/' + schemaId + '/' + (processId || '') + '/approveFlow', query: { - readonly: 1, - taskId: '', - rtId: currentRoute.value.query.rtId + taskId: taskIds[0], } }); - } else { + } else if (schemaId && !taskIds && processId) { + router.push({ + path: '/flow/' + schemaId + '/' + processId + '/approveFlow', + query: { + readonly: 1, + taskId: '', + } + }); + }else { const info = { id: record[pkField.value], releaseId: menuId.value,