From bbffdf7c1310906c696f99e653bdc4782b375b31 Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 1 Jun 2022 09:24:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A8=A1=E5=9E=8B=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E4=BB=BB=E5=8A=A1=E7=95=8C=E9=9D=A2=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/convertIndex.tmpl | 63 +++++++++----------- 1 file changed, 28 insertions(+), 35 deletions(-) diff --git a/templates/repo/modelmanage/convertIndex.tmpl b/templates/repo/modelmanage/convertIndex.tmpl index e4bfce479..e9dc80d4c 100644 --- a/templates/repo/modelmanage/convertIndex.tmpl +++ b/templates/repo/modelmanage/convertIndex.tmpl @@ -120,7 +120,7 @@
` + let nameMap = modelData.nameMap + let versionList = nameMap[value] + n_length = versionList.length + let train_html='' + for (let i=0;i${versionList[i]}
` train_html += '' - } - if(data.length){ - $("#job-version").append(train_html) - $(".ui.dropdown.selection.search.width70").removeClass("loading") - var versionName = data[0].VersionName; - if(versionName==null || versionName==""){ - versionName="V0001"; - } - $('#choice_version .default.text').text(versionName) - $('#choice_version input[name="VersionName"]').val(versionName) - } - - }) + } + $("#model-version").append(train_html) + $(".ui.dropdown.selection.search.width70").removeClass("loading") + $('#choice_version .default.text').text(versionList[0]) }