feat:前后定义 的空值置换数组 全部都添加
This commit is contained in:
@ -707,6 +707,9 @@ const columns = ref([
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
const addGlobalStartEvent = () => {
|
const addGlobalStartEvent = () => {
|
||||||
|
if(!processInfo.value.globalStartEventConfigs) {
|
||||||
|
processInfo.value.globalStartEventConfigs = [];
|
||||||
|
}
|
||||||
processInfo.value.globalStartEventConfigs.push({
|
processInfo.value.globalStartEventConfigs.push({
|
||||||
type: NodeEventExType.API,
|
type: NodeEventExType.API,
|
||||||
apiConfig: {},
|
apiConfig: {},
|
||||||
@ -717,6 +720,9 @@ const deleteStartEvent = (index) => {
|
|||||||
processInfo.value.globalStartEventConfigs.splice(index, 1);
|
processInfo.value.globalStartEventConfigs.splice(index, 1);
|
||||||
};
|
};
|
||||||
const addGlobalEndEvent = () => {
|
const addGlobalEndEvent = () => {
|
||||||
|
if(!processInfo.value.globalEndEventConfigs) {
|
||||||
|
processInfo.value.globalEndEventConfigs = [];
|
||||||
|
}
|
||||||
processInfo.value.globalEndEventConfigs.push({
|
processInfo.value.globalEndEventConfigs.push({
|
||||||
type: NodeEventExType.API,
|
type: NodeEventExType.API,
|
||||||
apiConfig: {},
|
apiConfig: {},
|
||||||
@ -728,6 +734,9 @@ const deleteEndEvent = (index) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const addGlobalPrequalifyBeforeEvent = () => {
|
const addGlobalPrequalifyBeforeEvent = () => {
|
||||||
|
if(!processInfo.value.globalPrequalifyBeforeEventConfigs) {
|
||||||
|
processInfo.value.globalPrequalifyBeforeEventConfigs = [];
|
||||||
|
}
|
||||||
processInfo.value.globalPrequalifyBeforeEventConfigs.push({
|
processInfo.value.globalPrequalifyBeforeEventConfigs.push({
|
||||||
type: NodeEventExType.API,
|
type: NodeEventExType.API,
|
||||||
apiConfig: {},
|
apiConfig: {},
|
||||||
@ -739,6 +748,9 @@ const deletePrequalifyBeforeEvent = (index) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const addGlobalPrequalifyAfterEvent = () => {
|
const addGlobalPrequalifyAfterEvent = () => {
|
||||||
|
if(!processInfo.value.globalPrequalifyAfterEventConfigs) {
|
||||||
|
processInfo.value.globalPrequalifyAfterEventConfigs = [];
|
||||||
|
}
|
||||||
processInfo.value.globalPrequalifyAfterEventConfigs.push({
|
processInfo.value.globalPrequalifyAfterEventConfigs.push({
|
||||||
type: NodeEventExType.API,
|
type: NodeEventExType.API,
|
||||||
apiConfig: {},
|
apiConfig: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user