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 });