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
Unverified
Commit
d9db5818
authored
Mar 15, 2025
by
芋道源码
Committed by
Gitee
Mar 15, 2025
Browse files
Options
Browse Files
Download
Plain Diff
!729 feat:添加simple设计器,分支条件下拉框非必填字段提示
Merge pull request !729 from SamllNorth_Lee/feature/bpm
parents
22e97ef6
95452312
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
src/components/SimpleProcessDesignerV2/src/nodes-config/components/Condition.vue
+15
-3
src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue
+2
-5
No files found.
src/components/SimpleProcessDesignerV2/src/nodes-config/components/Condition.vue
View file @
d9db5818
...
@@ -12,7 +12,10 @@
...
@@ -12,7 +12,10 @@
</el-radio>
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"condition.conditionType === ConditionType.RULE && condition.conditionGroups"
label=
"条件规则"
>
<el-form-item
v-if=
"condition.conditionType === ConditionType.RULE && condition.conditionGroups"
label=
"条件规则"
>
<div
class=
"condition-group-tool"
>
<div
class=
"condition-group-tool"
>
<div
class=
"flex items-center"
>
<div
class=
"flex items-center"
>
<div
class=
"mr-4"
>
条件组关系
</div>
<div
class=
"mr-4"
>
条件组关系
</div>
...
@@ -67,14 +70,23 @@
...
@@ -67,14 +70,23 @@
trigger: 'change'
trigger: 'change'
}"
}"
>
>
<el-select
style=
"width: 160px"
v-model=
"rule.leftSide"
>
<el-select
style=
"width: 160px"
v-model=
"rule.leftSide"
clearable
>
<el-option
<el-option
v-for=
"(field, fIdx) in fieldOptions"
v-for=
"(field, fIdx) in fieldOptions"
:key=
"fIdx"
:key=
"fIdx"
:label=
"field.title"
:label=
"field.title"
:value=
"field.field"
:value=
"field.field"
:disabled=
"!field.required"
:disabled=
"!field.required"
/>
>
<el-tooltip
content=
"表单字段非必填时不能作为流程分支条件"
effect=
"dark"
placement=
"right-start"
v-if=
"!field.required"
>
<span>
{{ field.title }}
</span>
</el-tooltip>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</div>
</div>
...
...
src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue
View file @
d9db5818
...
@@ -749,19 +749,16 @@ const selectNextAssigneesConfirm = (id: string, userList: any[]) => {
...
@@ -749,19 +749,16 @@ const selectNextAssigneesConfirm = (id: string, userList: any[]) => {
}
}
/** 审批通过时,校验每个自选审批人的节点是否都已配置了审批人 */
/** 审批通过时,校验每个自选审批人的节点是否都已配置了审批人 */
const
validateNextAssignees
=
()
=>
{
const
validateNextAssignees
=
()
=>
{
// TODO @小北:可以考虑 Object.keys(nextAssigneesActivityNode.value).length === 0) return true;减少括号层级
if
(
Object
.
keys
(
nextAssigneesActivityNode
.
value
).
length
===
0
)
return
true
// 如果需要自选审批人,则校验自选审批人
// 如果需要自选审批人,则校验自选审批人
if
(
Object
.
keys
(
nextAssigneesActivityNode
.
value
).
length
>
0
)
{
// 校验每个节点是否都已配置审批人
// 校验每个节点是否都已配置审批人
for
(
const
item
of
nextAssigneesActivityNode
.
value
)
{
for
(
const
item
of
nextAssigneesActivityNode
.
value
)
{
if
(
isEmpty
(
approveReasonForm
.
nextAssignees
[
item
.
id
]))
{
if
(
isEmpty
(
approveReasonForm
.
nextAssignees
[
item
.
id
]))
{
// TODO @小北:可以打印下节点名,嘿嘿。
console
.
log
(
'下一个节点【'
+
item
.
name
+
'】的审批人不能为空!'
)
message
.
warning
(
'下一个节点的审批人不能为空!'
)
message
.
warning
(
'下一个节点的审批人不能为空!'
)
return
false
return
false
}
}
}
}
}
return
true
}
}
/** 处理审批通过和不通过的操作 */
/** 处理审批通过和不通过的操作 */
...
...
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