From 92ee6d639d67226822c2dc7738f32cf25895193f Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Sat, 17 Aug 2024 18:48:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BF=E9=92=89=E9=92=89=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=99=A8-=20=E8=BF=9E=E7=BB=AD=E5=A4=9A?= =?UTF-8?q?=E7=BA=A7=E9=83=A8=E9=97=A8=E8=B4=9F=E8=B4=A3=E4=BA=BA=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E9=80=89=E5=A4=9A=E4=B8=AA=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SimpleProcessDesignerV2/src/node.ts | 11 +++++++---- .../src/nodes-config/UserTaskNodeConfig.vue | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/SimpleProcessDesignerV2/src/node.ts b/src/components/SimpleProcessDesignerV2/src/node.ts index 2b0c7583..899ebe6c 100644 --- a/src/components/SimpleProcessDesignerV2/src/node.ts +++ b/src/components/SimpleProcessDesignerV2/src/node.ts @@ -293,7 +293,7 @@ export function useNodeForm(nodeType: NodeType) { break // 指定连续多级部门的负责人 case CandidateStrategy.MULTI_LEVEL_DEPT_LEADER: { - // TODO 是否允许选多个部门 + // 候选人参数格式 ,分隔。 被分隔的最后一个为部门层级 const deptIds = configForm.value.deptIds!.join(',') candidateParam = deptIds.concat(',' + configForm.value.deptLevel + '') break @@ -341,10 +341,13 @@ export function useNodeForm(nodeType: NodeType) { break // 指定连续多级部门的负责人 case CandidateStrategy.MULTI_LEVEL_DEPT_LEADER: { - // 暂时只能选一个部门 + // 候选人参数格式 ,分隔。 被分隔的最后一个为部门层级 const paramArray = candidateParam.split(',') - configForm.value.deptIds = [+paramArray[0]] - configForm.value.deptLevel = +paramArray[1] + configForm.value.deptIds = [] + for (let i = 0; i < paramArray.length - 1; i++) { + configForm.value.deptIds.push(+paramArray[i]) + } + configForm.value.deptLevel = +paramArray[paramArray.length - 1] break } default: diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue index 1ee99fbb..11b5f47e 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue @@ -76,6 +76,7 @@ empty-text="加载中,请稍后" multiple node-key="id" + check-strictly style="width: 100%" show-checkbox />