|
@@ -193,6 +193,8 @@
|
|
|
|
|
|
<!-- 模拟数据弹窗 -->
|
|
|
<SLDataDialog ref="SLdatadialogref" @selectRunType="handleSelectRunType" />
|
|
|
+ <!-- 运行弹窗 -->
|
|
|
+ <RunDialog ref="RunDialogRef" />
|
|
|
|
|
|
</el-container>
|
|
|
</template>
|
|
@@ -222,6 +224,7 @@ import {
|
|
|
} from "@element-plus/icons-vue"
|
|
|
import changebak from "./vueflow/changebak.vue"
|
|
|
import SLDataDialog from "./dialog/SLDataDialog.vue"
|
|
|
+import RunDialog from "./dialog/RunDialog.vue"
|
|
|
import { useVueFlow } from "@vue-flow/core"
|
|
|
|
|
|
const { zoomIn, zoomOut, fitView } = useVueFlow()
|
|
@@ -253,6 +256,7 @@ const activities = ref([])
|
|
|
const jobId = ref()
|
|
|
|
|
|
const SLdatadialogref = ref(null)
|
|
|
+const RunDialogRef = ref(null)
|
|
|
|
|
|
const headerbuttons = ref([
|
|
|
{ type: "button", img: "newproject.png", name: "temp" },
|
|
@@ -365,18 +369,20 @@ const btnfunc = (name) => {
|
|
|
return
|
|
|
}else if(runtype.value === 'Incompressible Transient'){
|
|
|
// 处理不可压缩瞬态的逻辑
|
|
|
-
|
|
|
+ RunDialogRef.value?.openDialog?.()
|
|
|
}else if(runtype.value === 'Incompressible Steady State'){
|
|
|
// 处理不可压缩稳态的逻辑
|
|
|
+ runProject();
|
|
|
}else if(runtype.value === 'Compressible Transient'){
|
|
|
// 处理可压缩瞬态的逻辑
|
|
|
}else if(runtype.value === 'Compressible Steady State'){
|
|
|
// 处理可压缩稳态的逻辑
|
|
|
+ runProject();
|
|
|
}else{
|
|
|
ElMessage.error("未知的模拟类型")
|
|
|
return
|
|
|
}
|
|
|
- runProject()
|
|
|
+
|
|
|
} else if (name === "SLdata") {
|
|
|
nextTick(() => {
|
|
|
SLdatadialogref.value?.openDialog?.(pid.value)
|
|
@@ -400,6 +406,7 @@ const runProject = () => {
|
|
|
|
|
|
const handleSelectRunType = (type) => {
|
|
|
runtype.value = type
|
|
|
+ projectStore.setruntype(type)
|
|
|
}
|
|
|
|
|
|
// 获取结果列表
|
|
@@ -576,6 +583,8 @@ const getlogs = () => {
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
|
+ runtype.value = projectStore.runtype || '';
|
|
|
+
|
|
|
getComponent()
|
|
|
|
|
|
setTimeout(function () {
|
|
@@ -612,11 +621,6 @@ onMounted(() => {
|
|
|
border: 1px solid #d8d8d8;
|
|
|
}
|
|
|
|
|
|
-.spaceclass {
|
|
|
- display: flex;
|
|
|
- justify-items: flex-start;
|
|
|
-}
|
|
|
-
|
|
|
.coms-container {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|