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 }