Commit 88356c7b by jason

仿钉钉设计器- 节点增加校验逻辑

parent ea1e51a6
...@@ -81,15 +81,16 @@ const addNode = (type: number) => { ...@@ -81,15 +81,16 @@ const addNode = (type: number) => {
type: NodeType.USER_TASK_NODE, type: NodeType.USER_TASK_NODE,
approveMethod: ApproveMethodType.RRANDOM_SELECT_ONE_APPROVE, approveMethod: ApproveMethodType.RRANDOM_SELECT_ONE_APPROVE,
candidateStrategy: CandidateStrategy.USER, candidateStrategy: CandidateStrategy.USER,
candidateParam: undefined, // candidateParam: undefined,
fieldsPermission: undefined, // fieldsPermission: undefined,
// 超时处理 // 超时处理
timeoutHandler: {
enable: false
},
rejectHandler: { rejectHandler: {
type: RejectHandlerType.FINISH_PROCESS type: RejectHandlerType.FINISH_PROCESS
}, },
timeoutHandler: {
enable: false
},
childNode: props.childNode childNode: props.childNode
// 审批节点配置 // 审批节点配置
// attributes: { // attributes: {
...@@ -114,12 +115,15 @@ const addNode = (type: number) => { ...@@ -114,12 +115,15 @@ const addNode = (type: number) => {
name: NODE_DEFAULT_NAME.get(NodeType.COPY_TASK_NODE) as string, name: NODE_DEFAULT_NAME.get(NodeType.COPY_TASK_NODE) as string,
showText: '', showText: '',
type: NodeType.COPY_TASK_NODE, type: NodeType.COPY_TASK_NODE,
// 审批节点配置
attributes: {
candidateStrategy: CandidateStrategy.USER, candidateStrategy: CandidateStrategy.USER,
candidateParam: undefined, candidateParam: undefined,
fieldsPermission: undefined fieldsPermission: undefined,
}, // 审批节点配置
// attributes: {
// candidateStrategy: CandidateStrategy.USER,
// candidateParam: undefined,
// fieldsPermission: undefined
// },
childNode: props.childNode childNode: props.childNode
} }
emits('update:childNode', data) emits('update:childNode', data)
......
...@@ -181,7 +181,7 @@ export type SimpleFlowNode = { ...@@ -181,7 +181,7 @@ export type SimpleFlowNode = {
// 多人审批方式 // 多人审批方式
approveMethod?: ApproveMethodType approveMethod?: ApproveMethodType
//通过比例 //通过比例
approveRatio: number approveRatio?: number
// 表单权限 // 表单权限
fieldsPermission?: any[] fieldsPermission?: any[]
// 审批任务超时处理 // 审批任务超时处理
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment