update:任务执行,算例的流程节点相关

This commit is contained in:
2025-12-01 19:13:11 +08:00
parent ef82bb9016
commit 86d2f11dc7
9 changed files with 713 additions and 57 deletions

View File

@@ -1,7 +1,7 @@
<template>
<!-- <el-button @click="exportJson">导出json</el-button>
<el-button @click="importJson">导入json</el-button> -->
<div class="header-box" id="header-box" v-if="showConfigPage">
<div class="header-box" id="header-box">
<div class="left-box">
<span class="name">{{ flowName }}</span>
<!-- <span class="line">|</span>
@@ -22,12 +22,12 @@
</el-select>
</div>
</div>
<div :class="showConfigPage? 'flow-view-box' : 'flow-view-box-all'" v-loading="contentLoading">
<div class="flow-view-box" v-loading="contentLoading">
<div id="flow-view-content">
</div>
</div>
<TeleportContainer />
<FlowConfig v-model="drawerVisible" :nodeAttribute="nodeAttribute" @update:drawer-visible="drawerVisible = false"></FlowConfig>
<FlowConfig v-model="drawerVisible" :nodeAttribute="nodeAttribute"></FlowConfig>
</template>
<script setup lang="ts">
@@ -58,14 +58,8 @@ const props = defineProps({
type: String,
default: '',
},
showConfigPage: {
type: Boolean,
default: true,
},
});
const emits = defineEmits(['detail']);
const flowName = ref('');
const currentVersion = ref<any>();
@@ -161,12 +155,7 @@ const initGraph = async() => {
console.log('click node', node);
if (node.data.isApp) {
nodeAttribute.value = node.data;
if (props.showConfigPage) {
drawerVisible.value = true;
} else {
emits('detail', node);
}
;
drawerVisible.value = true;
}
});
};
@@ -203,10 +192,6 @@ onMounted(async() => {
.flow-view-box {
height: calc(100% - 40px);
}
.flow-view-box-all{
height:100%
}
#header-box {
padding: 0;