From 88356c7b2ad7488c44840b8a8c4934972f612fde Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Fri, 21 Jun 2024 09:59:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BF=E9=92=89=E9=92=89=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E5=99=A8-=20=E8=8A=82=E7=82=B9=E5=A2=9E=E5=8A=A0=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/NodeHandler.vue | 24 +- .../SimpleProcessDesignerV2/src/consts.ts | 2 +- .../src/nodes-config/CopyTaskNodeConfig.vue | 215 ++++++----- .../src/nodes-config/UserTaskNodeConfig.vue | 357 +++++++++++------- 4 files changed, 372 insertions(+), 226 deletions(-) diff --git a/src/components/SimpleProcessDesignerV2/src/NodeHandler.vue b/src/components/SimpleProcessDesignerV2/src/NodeHandler.vue index 26aed76c..136b0a54 100644 --- a/src/components/SimpleProcessDesignerV2/src/NodeHandler.vue +++ b/src/components/SimpleProcessDesignerV2/src/NodeHandler.vue @@ -81,15 +81,16 @@ const addNode = (type: number) => { type: NodeType.USER_TASK_NODE, approveMethod: ApproveMethodType.RRANDOM_SELECT_ONE_APPROVE, candidateStrategy: CandidateStrategy.USER, - candidateParam: undefined, - fieldsPermission: undefined, + // candidateParam: undefined, + // fieldsPermission: undefined, // 超时处理 - timeoutHandler: { - enable: false - }, rejectHandler: { type: RejectHandlerType.FINISH_PROCESS }, + timeoutHandler: { + enable: false + }, + childNode: props.childNode // 审批节点配置 // attributes: { @@ -114,12 +115,15 @@ const addNode = (type: number) => { name: NODE_DEFAULT_NAME.get(NodeType.COPY_TASK_NODE) as string, showText: '', type: NodeType.COPY_TASK_NODE, + candidateStrategy: CandidateStrategy.USER, + candidateParam: undefined, + fieldsPermission: undefined, // 审批节点配置 - attributes: { - candidateStrategy: CandidateStrategy.USER, - candidateParam: undefined, - fieldsPermission: undefined - }, + // attributes: { + // candidateStrategy: CandidateStrategy.USER, + // candidateParam: undefined, + // fieldsPermission: undefined + // }, childNode: props.childNode } emits('update:childNode', data) diff --git a/src/components/SimpleProcessDesignerV2/src/consts.ts b/src/components/SimpleProcessDesignerV2/src/consts.ts index 6534d4e3..0b0411cf 100644 --- a/src/components/SimpleProcessDesignerV2/src/consts.ts +++ b/src/components/SimpleProcessDesignerV2/src/consts.ts @@ -181,7 +181,7 @@ export type SimpleFlowNode = { // 多人审批方式 approveMethod?: ApproveMethodType //通过比例 - approveRatio: number + approveRatio?: number // 表单权限 fieldsPermission?: any[] // 审批任务超时处理 diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/CopyTaskNodeConfig.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/CopyTaskNodeConfig.vue index 436cdba9..ee863c99 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/CopyTaskNodeConfig.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/CopyTaskNodeConfig.vue @@ -16,19 +16,22 @@ v-mountedFocus v-model="currentNode.name" :placeholder="currentNode.name" - /> -
{{ currentNode.name }}
- + /> +
{{ currentNode.name }} +
+
- - + +
- + - + - + - + -
- +
字段权限
-
- 字段名称 -
+
字段名称
- 可编辑 只读 + 可编辑 隐藏
{{ item.title }}
- +
- +
@@ -186,8 +201,8 @@ -