From 77fffe75b958a984f4f3a2a93c52603f887803fe Mon Sep 17 00:00:00 2001 From: lijun Date: Sun, 29 Sep 2024 00:21:17 +0800 Subject: [PATCH] update code --- src/views/simulationEvaluation/addReport.vue | 8 ++++++-- .../simulationEvaluation/components/choiceTaskDlg.vue | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/simulationEvaluation/addReport.vue b/src/views/simulationEvaluation/addReport.vue index c50e8e0..d01a8a6 100644 --- a/src/views/simulationEvaluation/addReport.vue +++ b/src/views/simulationEvaluation/addReport.vue @@ -217,18 +217,22 @@ function choiceTask() { function choiceRobustTask() { info.choiceType = 'robustness' let taskId = info.tableData && info.tableData.length > 0 ? info.tableData[0].task_id : ''; + let modl_sub_type=info.tableData && info.tableData.length > 0 ? info.tableData[0].modl_sub_type : ''; taskDlg.value.showDialog({ disTaskId: taskId, - mult: false + mult: false, + modl_sub_type:modl_sub_type }); } //添加对比任务 function choiceCompTask() { info.choiceType = 'horizontal_comparison' let taskId = info.tableData && info.tableData.length > 0 ? info.tableData[0].task_id : ''; + let modl_sub_type=info.tableData && info.tableData.length > 0 ? info.tableData[0].modl_sub_type : ''; taskDlg.value.showDialog({ disTaskId: taskId, - mult: true + mult: true, + modl_sub_type:modl_sub_type }); } function doChoiceSuccess(d) { diff --git a/src/views/simulationEvaluation/components/choiceTaskDlg.vue b/src/views/simulationEvaluation/components/choiceTaskDlg.vue index ec1720f..2535465 100644 --- a/src/views/simulationEvaluation/components/choiceTaskDlg.vue +++ b/src/views/simulationEvaluation/components/choiceTaskDlg.vue @@ -59,6 +59,7 @@ let queryParams = reactive({ task_name: '', pageNum: 1, pageSize: 10, + modl_net_type:'', }); const emit = defineEmits(["success"]); const doRowClick = (row) => { @@ -96,12 +97,13 @@ const doOk = () => { const doCancel = () => { info.show = false; } -const showDialog = (opt) => { +const showDialog = (opt) => { info.show = true; info.data = opt; info.selData = opt.taskId||''; info.disTaskId=opt.disTaskId; info.mult=opt.mult; + queryParams.modl_sub_type=opt.modl_sub_type||''; resetQuery(); } function resetQuery() {