feat:前后定义 的空值置换数组

This commit is contained in:
lvjunzhao
2025-04-23 10:08:29 +08:00
parent bae3257764
commit cc76b5269e

View File

@ -750,6 +750,9 @@ const deletePrequalifyAfterEvent = (index) => {
};
const addGlobalFinishBeforeEvent = () => {
if(!processInfo.value.globalFinishBeforeEventConfigs) {
processInfo.value.globalFinishBeforeEventConfigs = [];
}
processInfo.value.globalFinishBeforeEventConfigs.push({
type: NodeEventExType.API,
apiConfig: {},
@ -761,6 +764,9 @@ const deleteFinishBeforeEvent = (index) => {
};
const addGlobalRejectAfterEvent = () => {
if(!processInfo.value.globalRejectAfterEventConfigs) {
processInfo.value.globalRejectAfterEventConfigs = [];
}
processInfo.value.globalRejectAfterEventConfigs.push({
type: NodeEventExType.API,
apiConfig: {},
@ -772,6 +778,9 @@ const deleteRejectAfterEvent = (index) => {
};
const addGlobalAgreeAfterEvent = () => {
if(!processInfo.value.globalAgreeAfterEventConfigs) {
processInfo.value.globalAgreeAfterEventConfigs = [];
}
processInfo.value.globalAgreeAfterEventConfigs.push({
type: NodeEventExType.API,
apiConfig: {},
@ -783,6 +792,9 @@ const deleteAgreeAfterEvent = (index) => {
};
const addGlobalSuspendedBeforeEvent = () => {
if(!processInfo.value.globalSuspendedBeforeEventConfigs) {
processInfo.value.globalSuspendedBeforeEventConfigs = [];
}
processInfo.value.globalSuspendedBeforeEventConfigs.push({
type: NodeEventExType.API,
apiConfig: {},
@ -794,6 +806,9 @@ const deleteSuspendedBeforeEvent = (index) => {
};
const addGlobalRestoreAfterEvent = () => {
if(!processInfo.value.globalRestoreAfterEventConfigs) {
processInfo.value.globalRestoreAfterEventConfigs = [];
}
processInfo.value.globalRestoreAfterEventConfigs.push({
type: NodeEventExType.API,
apiConfig: {},
@ -805,6 +820,9 @@ const deleteRestoreAfterEvent = (index) => {
};
// 全局会签事件添加
const addGlobalSetSignAfterEvent = () => {
if(!processInfo.value.globalSetSignAfterEventConfigs) {
processInfo.value.globalSetSignAfterEventConfigs = [];
}
processInfo.value.globalSetSignAfterEventConfigs.push({
type: NodeEventExType.API,
apiConfig: {},