Skip to content

Commit 88356c7

Browse files
committed
仿钉钉设计器- 节点增加校验逻辑
1 parent ea1e51a commit 88356c7

File tree

4 files changed

+372
-226
lines changed

4 files changed

+372
-226
lines changed

src/components/SimpleProcessDesignerV2/src/NodeHandler.vue

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,16 @@ const addNode = (type: number) => {
8181
type: NodeType.USER_TASK_NODE,
8282
approveMethod: ApproveMethodType.RRANDOM_SELECT_ONE_APPROVE,
8383
candidateStrategy: CandidateStrategy.USER,
84-
candidateParam: undefined,
85-
fieldsPermission: undefined,
84+
// candidateParam: undefined,
85+
// fieldsPermission: undefined,
8686
// 超时处理
87-
timeoutHandler: {
88-
enable: false
89-
},
9087
rejectHandler: {
9188
type: RejectHandlerType.FINISH_PROCESS
9289
},
90+
timeoutHandler: {
91+
enable: false
92+
},
93+
9394
childNode: props.childNode
9495
// 审批节点配置
9596
// attributes: {
@@ -114,12 +115,15 @@ const addNode = (type: number) => {
114115
name: NODE_DEFAULT_NAME.get(NodeType.COPY_TASK_NODE) as string,
115116
showText: '',
116117
type: NodeType.COPY_TASK_NODE,
118+
candidateStrategy: CandidateStrategy.USER,
119+
candidateParam: undefined,
120+
fieldsPermission: undefined,
117121
// 审批节点配置
118-
attributes: {
119-
candidateStrategy: CandidateStrategy.USER,
120-
candidateParam: undefined,
121-
fieldsPermission: undefined
122-
},
122+
// attributes: {
123+
// candidateStrategy: CandidateStrategy.USER,
124+
// candidateParam: undefined,
125+
// fieldsPermission: undefined
126+
// },
123127
childNode: props.childNode
124128
}
125129
emits('update:childNode', data)

src/components/SimpleProcessDesignerV2/src/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export type SimpleFlowNode = {
181181
// 多人审批方式
182182
approveMethod?: ApproveMethodType
183183
//通过比例
184-
approveRatio: number
184+
approveRatio?: number
185185
// 表单权限
186186
fieldsPermission?: any[]
187187
// 审批任务超时处理

0 commit comments

Comments
 (0)