From 8bd5a7cb32feb2f984477814d8868006ddae5973 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 24 Oct 2022 17:37:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- templates/repo/modelmanage/index.tmpl | 1 + templates/repo/modelmanage/showinfo.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/repo/modelmanage/index.tmpl b/templates/repo/modelmanage/index.tmpl index ffe8770a7..e414dbcd9 100644 --- a/templates/repo/modelmanage/index.tmpl +++ b/templates/repo/modelmanage/index.tmpl @@ -414,6 +414,7 @@ }) } function loadTrainVersion(value) { + let tmp = $('#choice_model input[name="jobId"]').val(); let jobId = !value ? $('#choice_model input[name="jobId"]').val() : value $.get(`${repolink}/modelmanage/query_train_job_version?jobId=${jobId}`, (data) => { const n_length = data.length diff --git a/templates/repo/modelmanage/showinfo.tmpl b/templates/repo/modelmanage/showinfo.tmpl index 958032620..70e354dd4 100644 --- a/templates/repo/modelmanage/showinfo.tmpl +++ b/templates/repo/modelmanage/showinfo.tmpl @@ -297,7 +297,7 @@ function transObj(data){ Precision:modelAcc.Precision || '--', Recall: modelAcc.Recall || '--' } - return [initObj,initModelAcc,ID] + return [initObj,initModelAcc,id] } function transTime(time){