fix: 添加ChildProcess结构类型
parent
71dfc6eb38
commit
bcba84aa6f
|
|
@ -104,7 +104,7 @@ export interface SimpleFlowNode {
|
||||||
// 活动的状态,用于前端节点状态展示
|
// 活动的状态,用于前端节点状态展示
|
||||||
activityStatus?: TaskStatusEnum
|
activityStatus?: TaskStatusEnum
|
||||||
// 调用子流程
|
// 调用子流程
|
||||||
childProcess?: string
|
childProcess?: ChildProcess
|
||||||
}
|
}
|
||||||
// 候选人策略枚举 ( 用于审批节点。抄送节点 )
|
// 候选人策略枚举 ( 用于审批节点。抄送节点 )
|
||||||
export enum CandidateStrategy {
|
export enum CandidateStrategy {
|
||||||
|
|
@ -591,3 +591,12 @@ export enum ProcessTypeEnum {
|
||||||
*/
|
*/
|
||||||
CHILD = 2
|
CHILD = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 子流程结构定义
|
||||||
|
*/
|
||||||
|
export type ChildProcess = {
|
||||||
|
processKey: string
|
||||||
|
processName: string
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,10 @@ const saveConfig = async () => {
|
||||||
(option) => option.key === configForm.value.childProcessKey
|
(option) => option.key === configForm.value.childProcessKey
|
||||||
)
|
)
|
||||||
currentNode.value.name = nodeName.value!
|
currentNode.value.name = nodeName.value!
|
||||||
currentNode.value.childProcess = `${childInfo.key}:${childInfo.name}`
|
currentNode.value.childProcess = {
|
||||||
|
processKey: childInfo.key,
|
||||||
|
processName: childInfo.name
|
||||||
|
}
|
||||||
currentNode.value.showText = `调用子流程:${childInfo.name}`
|
currentNode.value.showText = `调用子流程:${childInfo.name}`
|
||||||
if (configForm.value.multiInstance) {
|
if (configForm.value.multiInstance) {
|
||||||
currentNode.value.candidateStrategy = CandidateStrategy.EXPRESSION
|
currentNode.value.candidateStrategy = CandidateStrategy.EXPRESSION
|
||||||
|
|
@ -176,8 +179,8 @@ const saveConfig = async () => {
|
||||||
// 显示子流程节点配置, 由父组件传过来
|
// 显示子流程节点配置, 由父组件传过来
|
||||||
const showChildProcessNodeConfig = (node: SimpleFlowNode) => {
|
const showChildProcessNodeConfig = (node: SimpleFlowNode) => {
|
||||||
nodeName.value = node.name
|
nodeName.value = node.name
|
||||||
if (node.childProcess && node.childProcess !== '') {
|
if (node.childProcess) {
|
||||||
configForm.value.childProcessKey = node.childProcess.split(':')[0]
|
configForm.value.childProcessKey = node.childProcess.processKey
|
||||||
}
|
}
|
||||||
if (node.candidateStrategy) {
|
if (node.candidateStrategy) {
|
||||||
configForm.value.multiInstance = true
|
configForm.value.multiInstance = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue