update code

main
lijun 2024-09-29 00:21:17 +08:00
parent 2899ecebee
commit 77fffe75b9
2 changed files with 9 additions and 3 deletions

View File

@ -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) {

View File

@ -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() {