From 58fc91b8107634ebcea1393431dd3ea0479ab224 Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Wed, 19 Jun 2024 20:39: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-=E5=AD=97=E6=AE=B5=E6=9D=83=E9=99=90=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/nodes-config/UserTaskNodeConfig.vue | 26 +++++++++---------- .../SimpleProcessDesignerV2/src/utils.ts | 20 +++++++------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue index 7bb245eb..86ee6717 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue @@ -149,7 +149,11 @@ @change="approveMethodChanged" >
-
+
@@ -177,21 +184,14 @@
- - +
@@ -282,8 +282,8 @@
字段名称
- 可编辑 只读 + 可编辑 隐藏
@@ -542,7 +542,7 @@ const approveMethodChanged = () => { currentNode.value.attributes.rejectHandler.type = RejectHandlerType.FINISH_PROCESS const approveMethod = currentNode.value.attributes?.approveMethod if (approveMethod === ApproveMethodType.APPROVE_BY_RATIO) { - currentNode.value.attributes.approveRatio = 100; + currentNode.value.attributes.approveRatio = 100 } } // 默认 6小时 diff --git a/src/components/SimpleProcessDesignerV2/src/utils.ts b/src/components/SimpleProcessDesignerV2/src/utils.ts index 8cc2fb19..55bb1ab4 100644 --- a/src/components/SimpleProcessDesignerV2/src/utils.ts +++ b/src/components/SimpleProcessDesignerV2/src/utils.ts @@ -1,23 +1,23 @@ // 获取条件节点默认的名称 -export const getDefaultConditionNodeName = (index:number, defaultFlow: boolean) : string => { - if ( defaultFlow ){ - return "其它情况" +export const getDefaultConditionNodeName = (index: number, defaultFlow: boolean): string => { + if (defaultFlow) { + return '其它情况' } - return '条件' + (index+1) + return '条件' + (index + 1) } -// 获得默认的表单字段权限. -export const getDefaultFieldsPermission = (formFields: string[] | undefined) =>{ - const defaultFieldsPermission : any[] = []; - if(formFields){ +// 获得默认的表单字段权限. +export const getDefaultFieldsPermission = (formFields: string[] | undefined) => { + const defaultFieldsPermission: any[] = [] + if (formFields) { formFields.forEach((fieldStr: string) => { const { field, title } = JSON.parse(fieldStr) defaultFieldsPermission.push({ field, title, - permission: '2' // 只读 + permission: '1' // 只读 }) }) } - return defaultFieldsPermission; + return defaultFieldsPermission }