File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
src/components/SimpleProcessDesignerV2/src Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ export function useNodeForm(nodeType: NodeType) {
293
293
break
294
294
// 指定连续多级部门的负责人
295
295
case CandidateStrategy . MULTI_LEVEL_DEPT_LEADER : {
296
- // TODO 是否允许选多个部门
296
+ // 候选人参数格式 ,分隔。 被分隔的最后一个为部门层级
297
297
const deptIds = configForm . value . deptIds ! . join ( ',' )
298
298
candidateParam = deptIds . concat ( ',' + configForm . value . deptLevel + '' )
299
299
break
@@ -341,10 +341,13 @@ export function useNodeForm(nodeType: NodeType) {
341
341
break
342
342
// 指定连续多级部门的负责人
343
343
case CandidateStrategy . MULTI_LEVEL_DEPT_LEADER : {
344
- // 暂时只能选一个部门
344
+ // 候选人参数格式 ,分隔。 被分隔的最后一个为部门层级
345
345
const paramArray = candidateParam . split ( ',' )
346
- configForm . value . deptIds = [ + paramArray [ 0 ] ]
347
- configForm . value . deptLevel = + paramArray [ 1 ]
346
+ configForm . value . deptIds = [ ]
347
+ for ( let i = 0 ; i < paramArray . length - 1 ; i ++ ) {
348
+ configForm . value . deptIds . push ( + paramArray [ i ] )
349
+ }
350
+ configForm . value . deptLevel = + paramArray [ paramArray . length - 1 ]
348
351
break
349
352
}
350
353
default :
Original file line number Diff line number Diff line change 76
76
empty-text =" 加载中,请稍后"
77
77
multiple
78
78
node-key =" id"
79
+ check-strictly
79
80
style =" width : 100% "
80
81
show-checkbox
81
82
/>
You can’t perform that action at this time.
0 commit comments