diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/components/Condition.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/components/Condition.vue index d7216546..36690848 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/components/Condition.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/components/Condition.vue @@ -12,7 +12,10 @@ - +
条件组关系
@@ -67,14 +70,23 @@ trigger: 'change' }" > - + + > + + {{ field.title }} + +
diff --git a/src/views/bpm/model/form/ExtraSettings.vue b/src/views/bpm/model/form/ExtraSettings.vue index 1d685c75..3c8e689b 100644 --- a/src/views/bpm/model/form/ExtraSettings.vue +++ b/src/views/bpm/model/form/ExtraSettings.vue @@ -147,16 +147,16 @@
流程启动后通知
@@ -167,16 +167,16 @@
流程启动后通知
@@ -247,32 +247,32 @@ const numberExample = computed(() => { }) /** 是否开启流程前置通知 */ -const preProcessNotifyEnable = ref(false) +const processBeforeTriggerEnable = ref(false) const handlePreProcessNotifyEnableChange = (val: boolean | string | number) => { if (val) { - modelData.value.preProcessNotifySetting = { + modelData.value.processBeforeTriggerSetting = { url: '', header: [], body: [], response: [] } } else { - modelData.value.preProcessNotifySetting = null + modelData.value.processBeforeTriggerSetting = null } } /** 是否开启流程后置通知 */ -const postProcessNotifyEnable = ref(false) +const processAfterTriggerEnable = ref(false) const handlePostProcessNotifyEnableChange = (val: boolean | string | number) => { if (val) { - modelData.value.postProcessNotifySetting = { + modelData.value.processAfterTriggerSetting = { url: '', header: [], body: [], response: [] } } else { - modelData.value.postProcessNotifySetting = null + modelData.value.processAfterTriggerSetting = null } } @@ -335,11 +335,11 @@ const initData = () => { summary: [] } } - if (modelData.value.preProcessNotifySetting) { - preProcessNotifyEnable.value = true + if (modelData.value.processBeforeTriggerSetting) { + processBeforeTriggerEnable.value = true } - if (modelData.value.postProcessNotifySetting) { - postProcessNotifyEnable.value = true + if (modelData.value.processAfterTriggerSetting) { + processAfterTriggerEnable.value = true } } defineExpose({ initData }) diff --git a/src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue b/src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue index f69035f9..ca530cb3 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue @@ -749,19 +749,16 @@ const selectNextAssigneesConfirm = (id: string, userList: any[]) => { } /** 审批通过时,校验每个自选审批人的节点是否都已配置了审批人 */ const validateNextAssignees = () => { - // TODO @小北:可以考虑 Object.keys(nextAssigneesActivityNode.value).length === 0) return true;减少括号层级 - // 如果需要自选审批人,则校验自选审批人 - if (Object.keys(nextAssigneesActivityNode.value).length > 0) { - // 校验每个节点是否都已配置审批人 - for (const item of nextAssigneesActivityNode.value) { - if (isEmpty(approveReasonForm.nextAssignees[item.id])) { - // TODO @小北:可以打印下节点名,嘿嘿。 - message.warning('下一个节点的审批人不能为空!') - return false - } + if (Object.keys(nextAssigneesActivityNode.value).length === 0) { + return true + } + // 如果需要自选审批人,则校验每个节点是否都已配置审批人 + for (const item of nextAssigneesActivityNode.value) { + if (isEmpty(approveReasonForm.nextAssignees[item.id])) { + message.warning('下一个节点的审批人不能为空!') + return false } } - return true } /** 处理审批通过和不通过的操作 */