From 3de82fe3c2c3e80bf8fce566f3dc25e359ec3513 Mon Sep 17 00:00:00 2001 From: LiuHao Date: Wed, 21 Feb 2024 10:43:05 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BF=AE=E5=A4=8D=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E5=80=BC=E6=9C=AA=E5=9C=A8xml=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BpmnDesign/panel/TaskPanel.vue | 9 ++++++++- src/types/bpmn/panel.d.ts | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/BpmnDesign/panel/TaskPanel.vue b/src/components/BpmnDesign/panel/TaskPanel.vue index ab045da..267ad30 100644 --- a/src/components/BpmnDesign/panel/TaskPanel.vue +++ b/src/components/BpmnDesign/panel/TaskPanel.vue @@ -65,7 +65,7 @@ - + @@ -354,6 +354,9 @@ const skipExpressionChange = (newVal) => { const priorityChange = (newVal) => { updateProperties({ 'flowable:priority': newVal }); }; +const fixedAssigneeChange = (newVal) => { + updateProperties({ 'flowable:assignee': newVal && newVal.length > 0 ? newVal : undefined }); +}; const multiInstanceTypeChange = (newVal) => { if (newVal !== MultiInstanceTypeEnum.NONE) { let loopCharacteristics = props.element.businessObject.get('loopCharacteristics'); @@ -432,6 +435,10 @@ onBeforeMount(() => { formData.value.completionCondition = loopCharacteristics.completionCondition?.body || ''; formData.value.multiInstanceType = loopCharacteristics.isSequential ? MultiInstanceTypeEnum.SERIAL : MultiInstanceTypeEnum.PARALLEL; } + + if (formData.value.assignee) { + formData.value.fixedAssignee = formData.value.assignee; + } }); const formRules = ref({ diff --git a/src/types/bpmn/panel.d.ts b/src/types/bpmn/panel.d.ts index baadd6a..0d0cac4 100644 --- a/src/types/bpmn/panel.d.ts +++ b/src/types/bpmn/panel.d.ts @@ -43,6 +43,7 @@ declare module 'bpmnDesign' { exclude?: boolean; class?: string; dueDate?: string; + fixedAssignee?: string; candidateUsers?: string; assignee?: string;