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
dc577fc0
authored
Feb 25, 2025
by
Lesan
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'yudao/feature/bpm' into feature/bpm-子流程
parents
64ff45e4
b0d839a0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
3 deletions
+14
-3
src/components/SimpleProcessDesignerV2/src/consts.ts
+3
-1
src/components/SimpleProcessDesignerV2/src/nodes-config/ChildProcessNodeConfig.vue
+5
-0
src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue
+3
-1
src/components/SimpleProcessDesignerV2/src/nodes/ChildProcessNode.vue
+2
-0
src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue
+1
-1
No files found.
src/components/SimpleProcessDesignerV2/src/consts.ts
View file @
dc577fc0
...
@@ -756,6 +756,7 @@ export enum TriggerTypeEnum {
...
@@ -756,6 +756,7 @@ export enum TriggerTypeEnum {
* 发送 HTTP 请求触发器
* 发送 HTTP 请求触发器
*/
*/
HTTP_REQUEST
=
1
,
HTTP_REQUEST
=
1
,
// TODO @jason:要不把 FORM_UPDATE、FORM_DELETE 调整从 10、11 这样?
/**
/**
* 表单数据更新触发器
* 表单数据更新触发器
*/
*/
...
@@ -764,6 +765,7 @@ export enum TriggerTypeEnum {
...
@@ -764,6 +765,7 @@ export enum TriggerTypeEnum {
* 表单数据删除触发器
* 表单数据删除触发器
*/
*/
FORM_DELETE
=
3
,
FORM_DELETE
=
3
,
// TODO @jason:1)HTTP_CALLBACK 这个枚举值?然后,相关注释,朝着“HTTP 回调”走;2)枚举值改成 2?
/**
/**
* 发起异步 HTTP 请求
* 发起异步 HTTP 请求
*/
*/
...
@@ -795,7 +797,7 @@ export type FormTriggerSetting = {
...
@@ -795,7 +797,7 @@ export type FormTriggerSetting = {
// 条件组
// 条件组
conditionGroups
?:
ConditionGroup
conditionGroups
?:
ConditionGroup
// 更新表单字段配置
// 更新表单字段配置
updateFormFields
?:
Record
<
string
,
any
>
,
updateFormFields
?:
Record
<
string
,
any
>
// 删除表单字段配置
// 删除表单字段配置
deleteFields
?:
string
[]
deleteFields
?:
string
[]
}
}
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/ChildProcessNodeConfig.vue
View file @
dc577fc0
...
@@ -103,6 +103,7 @@
...
@@ -103,6 +103,7 @@
<Icon
icon=
"ep:plus"
class=
"mr-5px"
/>
添加一行
<Icon
icon=
"ep:plus"
class=
"mr-5px"
/>
添加一行
</el-button>
</el-button>
</el-form-item>
</el-form-item>
<!-- TODO @lesan:async、source、target 几个字段,会告警 -->
<el-form-item
<el-form-item
v-if=
"configForm.async === false"
v-if=
"configForm.async === false"
label=
"子→主变量传递"
label=
"子→主变量传递"
...
@@ -159,6 +160,7 @@
...
@@ -159,6 +160,7 @@
<Icon
icon=
"ep:plus"
class=
"mr-5px"
/>
添加一行
<Icon
icon=
"ep:plus"
class=
"mr-5px"
/>
添加一行
</el-button>
</el-button>
</el-form-item>
</el-form-item>
<!-- TODO @lesan:startUserType、startUserEmptyType 要不走写下枚举类? -->
<el-form-item
label=
"子流程发起人"
prop=
"startUserType"
>
<el-form-item
label=
"子流程发起人"
prop=
"startUserType"
>
<el-radio-group
v-model=
"configForm.startUserType"
>
<el-radio-group
v-model=
"configForm.startUserType"
>
<el-radio
:value=
"1"
>
同主流程发起人
</el-radio>
<el-radio
:value=
"1"
>
同主流程发起人
</el-radio>
...
@@ -332,6 +334,7 @@ const saveConfig = async () => {
...
@@ -332,6 +334,7 @@ const saveConfig = async () => {
if
(
!
formRef
)
return
false
if
(
!
formRef
)
return
false
const
valid
=
await
formRef
.
value
.
validate
()
const
valid
=
await
formRef
.
value
.
validate
()
if
(
!
valid
)
return
false
if
(
!
valid
)
return
false
// TODO @lesan:这里的 option 黄色告警,也处理下哈
const
childInfo
=
childProcessOptions
.
value
.
find
(
const
childInfo
=
childProcessOptions
.
value
.
find
(
(
option
)
=>
option
.
key
===
configForm
.
value
.
calledProcessDefinitionKey
(
option
)
=>
option
.
key
===
configForm
.
value
.
calledProcessDefinitionKey
)
)
...
@@ -375,6 +378,7 @@ const saveConfig = async () => {
...
@@ -375,6 +378,7 @@ const saveConfig = async () => {
return
true
return
true
}
}
// 显示子流程节点配置, 由父组件传过来
// 显示子流程节点配置, 由父组件传过来
// TODO @lesan:inVariables、outVariables 红色告警
const
showChildProcessNodeConfig
=
(
node
:
SimpleFlowNode
)
=>
{
const
showChildProcessNodeConfig
=
(
node
:
SimpleFlowNode
)
=>
{
nodeName
.
value
=
node
.
name
nodeName
.
value
=
node
.
name
if
(
node
.
childProcessSetting
)
{
if
(
node
.
childProcessSetting
)
{
...
@@ -417,6 +421,7 @@ const showChildProcessNodeConfig = (node: SimpleFlowNode) => {
...
@@ -417,6 +421,7 @@ const showChildProcessNodeConfig = (node: SimpleFlowNode) => {
defineExpose
({
openDrawer
,
showChildProcessNodeConfig
})
// 暴露方法给父组件
defineExpose
({
openDrawer
,
showChildProcessNodeConfig
})
// 暴露方法给父组件
// TODO @lesan:这里的 arr 黄色告警,也处理下哈,可以用 cursor quick fix 哈
const
addVariable
=
(
arr
)
=>
{
const
addVariable
=
(
arr
)
=>
{
arr
.
push
({
arr
.
push
({
source
:
''
,
source
:
''
,
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue
View file @
dc577fc0
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<!-- HTTP 请求触发器 -->
<!-- HTTP 请求触发器 -->
<!-- TODO @jason:可以考虑用 [].include 更简洁 -->
<div
<div
v-if=
"
v-if=
"
(configForm.type === TriggerTypeEnum.HTTP_REQUEST ||
(configForm.type === TriggerTypeEnum.HTTP_REQUEST ||
...
@@ -408,7 +409,8 @@ const changeTriggerType = () => {
...
@@ -408,7 +409,8 @@ const changeTriggerType = () => {
if
(
configForm
.
value
.
type
===
TriggerTypeEnum
.
ASYNC_HTTP_REQUEST
)
{
if
(
configForm
.
value
.
type
===
TriggerTypeEnum
.
ASYNC_HTTP_REQUEST
)
{
configForm
.
value
.
httpRequestSetting
=
configForm
.
value
.
httpRequestSetting
=
originalSetting
?.
type
===
TriggerTypeEnum
.
ASYNC_HTTP_REQUEST
&&
originalSetting
.
httpRequestSetting
originalSetting
?.
type
===
TriggerTypeEnum
.
ASYNC_HTTP_REQUEST
&&
originalSetting
.
httpRequestSetting
?
originalSetting
.
httpRequestSetting
?
originalSetting
.
httpRequestSetting
:
{
:
{
url
:
''
,
url
:
''
,
...
...
src/components/SimpleProcessDesignerV2/src/nodes/ChildProcessNode.vue
View file @
dc577fc0
...
@@ -66,6 +66,7 @@ import { SimpleFlowNode, NodeType, NODE_DEFAULT_TEXT } from '../consts'
...
@@ -66,6 +66,7 @@ import { SimpleFlowNode, NodeType, NODE_DEFAULT_TEXT } from '../consts'
import
NodeHandler
from
'../NodeHandler.vue'
import
NodeHandler
from
'../NodeHandler.vue'
import
{
useNodeName2
,
useWatchNode
,
useTaskStatusClass
}
from
'../node'
import
{
useNodeName2
,
useWatchNode
,
useTaskStatusClass
}
from
'../node'
import
ChildProcessNodeConfig
from
'../nodes-config/ChildProcessNodeConfig.vue'
import
ChildProcessNodeConfig
from
'../nodes-config/ChildProcessNodeConfig.vue'
defineOptions
({
defineOptions
({
name
:
'ChildProcessNode'
name
:
'ChildProcessNode'
})
})
...
@@ -86,6 +87,7 @@ const currentNode = useWatchNode(props)
...
@@ -86,6 +87,7 @@ const currentNode = useWatchNode(props)
// 节点名称编辑
// 节点名称编辑
const
{
showInput
,
blurEvent
,
clickTitle
}
=
useNodeName2
(
currentNode
,
NodeType
.
CHILD_PROCESS_NODE
)
const
{
showInput
,
blurEvent
,
clickTitle
}
=
useNodeName2
(
currentNode
,
NodeType
.
CHILD_PROCESS_NODE
)
const
nodeSetting
=
ref
()
const
nodeSetting
=
ref
()
// 打开节点配置
// 打开节点配置
const
openNodeConfig
=
()
=>
{
const
openNodeConfig
=
()
=>
{
if
(
readonly
)
{
if
(
readonly
)
{
...
...
src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue
View file @
dc577fc0
...
@@ -157,7 +157,7 @@ const initProcessInfo = async (row: any, formVariables?: any) => {
...
@@ -157,7 +157,7 @@ const initProcessInfo = async (row: any, formVariables?: any) => {
}
}
/** 预测流程节点会因为输入的参数值而产生新的预测结果值,所以需重新预测一次 */
/** 预测流程节点会因为输入的参数值而产生新的预测结果值,所以需重新预测一次 */
// TODO @芋艿:这里我执行填写表单的时候不知道为啥一直报错,先注释了
// TODO @芋艿:这里我执行填写表单的时候不知道为啥一直报错,先注释了
@lesan:可以和群里的小北说下
// watch(
// watch(
// detailForm.value,
// detailForm.value,
// (newValue) => {
// (newValue) => {
...
...
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