Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
92ee6d63
authored
Aug 17, 2024
by
jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仿钉钉流程设计器- 连续多级部门负责人支持选多个部门
parent
8b3c294e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/components/SimpleProcessDesignerV2/src/node.ts
+7
-4
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
+1
-0
No files found.
src/components/SimpleProcessDesignerV2/src/node.ts
View file @
92ee6d63
...
...
@@ -293,7 +293,7 @@ export function useNodeForm(nodeType: NodeType) {
break
// 指定连续多级部门的负责人
case
CandidateStrategy
.
MULTI_LEVEL_DEPT_LEADER
:
{
//
TODO 是否允许选多个部门
//
候选人参数格式 ,分隔。 被分隔的最后一个为部门层级
const
deptIds
=
configForm
.
value
.
deptIds
!
.
join
(
','
)
candidateParam
=
deptIds
.
concat
(
','
+
configForm
.
value
.
deptLevel
+
''
)
break
...
...
@@ -341,10 +341,13 @@ export function useNodeForm(nodeType: NodeType) {
break
// 指定连续多级部门的负责人
case
CandidateStrategy
.
MULTI_LEVEL_DEPT_LEADER
:
{
//
暂时只能选一个部门
//
候选人参数格式 ,分隔。 被分隔的最后一个为部门层级
const
paramArray
=
candidateParam
.
split
(
','
)
configForm
.
value
.
deptIds
=
[
+
paramArray
[
0
]]
configForm
.
value
.
deptLevel
=
+
paramArray
[
1
]
configForm
.
value
.
deptIds
=
[]
for
(
let
i
=
0
;
i
<
paramArray
.
length
-
1
;
i
++
)
{
configForm
.
value
.
deptIds
.
push
(
+
paramArray
[
i
])
}
configForm
.
value
.
deptLevel
=
+
paramArray
[
paramArray
.
length
-
1
]
break
}
default
:
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
View file @
92ee6d63
...
...
@@ -76,6 +76,7 @@
empty-text=
"加载中,请稍后"
multiple
node-key=
"id"
check-strictly
style=
"width: 100%"
show-checkbox
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment