update code

main
lijun 2024-09-17 23:10:18 +08:00
parent 2826f4189e
commit 8edf6d6bb4
5 changed files with 49 additions and 12 deletions

View File

@ -236,6 +236,24 @@ const doPrev = () => {
state.value = 0;
info.logs = [];
info.optIds = [];
}else if(active.value==3){
setTimeout(()=>{
if(info.parameters){
step3.value.returnData(info.parameters);
}
},400);
}else if(active.value==2){
setTimeout(()=>{
if(modelInfo){
step2.value.returnData(modelInfo);
}
},400);
}else if(active.value==1){
setTimeout(()=>{
if(info.taskInfo){
step1.value.returnData(info.taskInfo);
}
},400);
}
}
const doNext = () => {

View File

@ -67,6 +67,11 @@ const initData=()=>{
info.taskTypes=d.data.data.infr_task_type_list
});
}
const returnData=(d)=>{
upForm.taskName=d.taskName
upForm.taskDesc=d.taskDesc
upForm.taskType=d.taskType
}
onMounted(() => {
initData();
});
@ -74,7 +79,8 @@ onMounted(() => {
defineExpose({
checkForm,
getFormData
getFormData,
returnData
})

View File

@ -1,7 +1,6 @@
<template>
<el-card style="margin-top:12px" class="simulation-add-add-step2">
<template #header>模型列表</template>
<el-table v-loading="loading" :data="info.data" stripe @row-click="doRowClick">
<el-table-column align="center" width="55" label="选择">
<template #default="scope">
@ -71,13 +70,17 @@ const checkForm = () => {
return null;
};
const returnData=d=>{
modelSelection.value=""+d.id;
}
onMounted(() => {
handleQuery();
});
defineExpose({
checkForm
checkForm,
returnData
})
</script>

View File

@ -126,8 +126,17 @@ function checkForm(){
return null
}
}
const returnData = (d) => {
if(d && isJSON(d,false)){
info.jsonData=JSON.parse(d);
info.file=true;
}
}
defineExpose({
checkForm
checkForm,
returnData
})
</script>
<style lang="scss" scoped>

View File

@ -159,6 +159,7 @@ const updateState = (s) => {
const updateLogs = (logs) => {
info.logs = logs;
};
onMounted(() => {
handleQuery();
});