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
dd72d35f
authored
Jan 09, 2025
by
Lesan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: ConditionNodeConfig使用Condition组件
parent
96d1fced
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
206 deletions
+45
-206
src/components/SimpleProcessDesignerV2/src/NodeHandler.vue
+3
-2
src/components/SimpleProcessDesignerV2/src/nodes-config/ConditionNodeConfig.vue
+32
-200
src/components/SimpleProcessDesignerV2/src/nodes-config/components/Condition.vue
+10
-4
No files found.
src/components/SimpleProcessDesignerV2/src/NodeHandler.vue
View file @
dd72d35f
...
...
@@ -67,12 +67,13 @@ import {
ApproveMethodType
,
AssignEmptyHandlerType
,
AssignStartUserHandlerType
,
ConditionType
,
NODE_DEFAULT_NAME
,
NodeType
,
RejectHandlerType
,
SimpleFlowNode
}
from
'./consts'
import
{
generateUUID
}
from
'@/utils'
import
{
generateUUID
}
from
'@/utils'
defineOptions
({
name
:
'NodeHandler'
...
...
@@ -163,7 +164,7 @@ const addNode = (type: number) => {
showText
:
''
,
type
:
NodeType
.
CONDITION_NODE
,
childNode
:
undefined
,
conditionType
:
1
,
conditionType
:
ConditionType
.
RULE
,
defaultFlow
:
false
},
{
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/ConditionNodeConfig.vue
View file @
dd72d35f
This diff is collapsed.
Click to expand it.
src/components/SimpleProcessDesignerV2/src/nodes-config/components/Condition.vue
View file @
dd72d35f
<!-- TODO @lesan:其它路由条件,可以使用这个哇? -->
<
template
>
<el-form
ref=
"formRef"
:model=
"condition"
:rules=
"formRules"
label-position=
"top"
>
<el-form-item
label=
"配置方式"
prop=
"conditionType"
>
...
...
@@ -118,13 +117,13 @@
<
script
setup
lang=
"ts"
>
import
{
CONDITION_CONFIG_TYPES
,
COMPARISON_OPERATORS
,
CONDITION_CONFIG_TYPES
,
ConditionType
,
ProcessVariableEnum
}
from
'../../consts'
import
{
BpmModelFormType
}
from
'@/utils/constants'
import
{
useFormFields
}
from
'../../node'
import
{
BpmModelFormType
}
from
'@/utils/constants'
import
{
useFormFields
}
from
'../../node'
const
props
=
defineProps
({
modelValue
:
{
...
...
@@ -200,6 +199,13 @@ const addConditionGroup = (conditions) => {
}
conditions
.
push
(
condition
)
}
const
validate
=
async
()
=>
{
if
(
!
formRef
)
return
false
return
await
formRef
.
value
.
validate
();
}
defineExpose
({
validate
})
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
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