From 526ca728e1a8a1f75f608adce5473648c94f3426 Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: Thu, 9 May 2024 21:39:47 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BF=AE=E5=A4=8D=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E9=80=89=E4=BA=BA=E5=8F=82=E6=95=B0=E5=BC=82=E5=B8=B8=EF=BC=8C?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8A=A0=E7=AD=BE=E8=AF=B7=E6=B1=82=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workflow/task/index.ts | 2 +- src/bpmn/panel/TaskPanel.vue | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/api/workflow/task/index.ts b/src/api/workflow/task/index.ts index 714b883..d29de30 100644 --- a/src/api/workflow/task/index.ts +++ b/src/api/workflow/task/index.ts @@ -246,7 +246,7 @@ export const delegateTask = (data: any) => { */ export const getTaskUserIdsByAddMultiInstance = (taskId: string) => { return request({ - url: '/workflow/user/getTaskUserIdsByAddMultiInstance/' + taskId, + url: '/workflow/task/getTaskUserIdsByAddMultiInstance/' + taskId, method: 'get' }); }; diff --git a/src/bpmn/panel/TaskPanel.vue b/src/bpmn/panel/TaskPanel.vue index 253d3f9..bc037ee 100644 --- a/src/bpmn/panel/TaskPanel.vue +++ b/src/bpmn/panel/TaskPanel.vue @@ -50,7 +50,7 @@ - + @@ -283,24 +283,23 @@ const dueDateRef = ref>(); const isMultiple = ref(true); const openUserSelect = () => { - if (!formData.value.candidateUsers) { - formData.value.candidateUsers = '-1'; - } userSelectRef.value.open(); }; const openSingleUserSelect = () => { + if (formData.value.assignee.includes('$')) { + formData.value.assignee = ''; + } singleUserSelectRef.value.open(); }; const openRoleSelect = () => { - if (!formData.value.candidateGroups) { - formData.value.candidateGroups = '-1'; - } roleSelectRef.value.open(); }; const openDueDate = (e) => { dueDateRef.value.openDialog(); }; - +const blurAssignee = (assignee) => { + updateProperties({ 'flowable:assignee': assignee ? assignee : undefined }); +}; const singleUserSelectCallBack = (data: UserVO[]) => { const user: UserVO = data.length !== 0 ? data[0] : undefined; updateProperties({ 'flowable:assignee': user?.userId });