From e8bddccec4272140099873211fd294e1479192d1 Mon Sep 17 00:00:00 2001 From: chenshihai Date: Mon, 10 Oct 2022 15:46:49 +0800 Subject: [PATCH] update modelsafety --- templates/repo/modelsafety/new.tmpl | 4 +- templates/repo/modelsafety/show.tmpl | 219 +++++++++++++---------------------- 2 files changed, 82 insertions(+), 141 deletions(-) diff --git a/templates/repo/modelsafety/new.tmpl b/templates/repo/modelsafety/new.tmpl index 9653034bb..6d9b3e0c0 100644 --- a/templates/repo/modelsafety/new.tmpl +++ b/templates/repo/modelsafety/new.tmpl @@ -71,7 +71,7 @@ href="{{.Link}}">模型安全评测 -
+
-
+
@@ -251,7 +251,7 @@
@@ -446,7 +446,7 @@ {{$.i18n.Tr "repo.modelarts.train_job.start_file"}} -
+
@@ -454,7 +454,7 @@ 评测指标 -
--
+
@@ -469,7 +469,7 @@
+ href="/api/v1/repos/{{$.RepoRelPath}}"> {{$.i18n.Tr "repo.modelarts.download_log"}} @@ -513,9 +513,14 @@ .__res_title_icon { height: 48px; width: 48px; - background-color: rgb(105, 192, 255); margin-right: 8px; } + .bNIWIE.fill:not([stroke]) { + fill: rgb(105, 192, 255); + } + .bNIWIE.fill:not([fill]) { + fill: rgb(105, 192, 255); + } .__res_title_txt { font-family: SourceHanSansSC; font-size: 14px; @@ -548,11 +553,19 @@ border-bottom-left-radius: .28571429rem; border-bottom-right-radius: .28571429rem; } + .__res_no_data { + height: 200px; + display: flex; + justify-content: center; + align-items: center; + }
{{template "repo/modelsafety/indicators_descr".}}
-
+
+
无数据
+
@@ -599,8 +612,7 @@ SPEC && $('td.ti-text-form-content.resorce_type div').text(getListValueWithKey(ACC_CARD_TYPE, SPEC.AccCardType)); })(); - - \ No newline at end of file + $('.pointing.secondary.menu .item').tab({ + onVisible: function(tabPath) { + if (tabPath === 'first0') { + initData(); + } + if (tabPath === 'third0') { + resultData && initResTab(resultData); + } + }, + }); + + })(); +