diff --git a/templates/repo/grampus/trainjob/show.tmpl b/templates/repo/grampus/trainjob/show.tmpl
index e8b0eb6cf..c89ffaa98 100755
--- a/templates/repo/grampus/trainjob/show.tmpl
+++ b/templates/repo/grampus/trainjob/show.tmpl
@@ -238,11 +238,8 @@
{{$.CsrfTokenHtml}}
-
-
-
{{TimeSinceUnix1 .CreatedUnix}}
{{$.i18n.Tr "repo.modelarts.current_version"}}:{{.VersionName}}
@@ -260,7 +257,6 @@
-
{{if and ($.canDownload) (ne .Status "WAITING") ($.Permission.CanWrite $.UnitTypeModelManage) }}
@@ -269,7 +265,6 @@
{{else}}
{{end}}
-
@@ -282,6 +277,9 @@
{{$.i18n.Tr "repo.modelarts.train_job.config"}}
{{$.i18n.Tr "repo.modelarts.log"}}
+ {{ if eq $.Spec.ComputeResource "NPU"}}
+ {{$.i18n.Tr "cloudbrain.resource_use"}}
+ {{end}}
{{$.i18n.Tr "repo.model_download"}}
@@ -564,6 +562,14 @@
+
+
diff --git a/web_src/js/index.js b/web_src/js/index.js
index bc3de08b5..191d72bfe 100755
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -5071,12 +5071,7 @@ function initcreateRepo() {
initcreateRepo();
function initChartsNpu() {
- const url = window.location.href;
- const urlArr = url.split("/");
- let userName = urlArr.slice(-5)[0];
- let repoPath = urlArr.slice(-4)[0];
- let jobID = urlArr.slice(-1)[0];
-
+ const repoPath = $('.metric_chart').data('path')
let options = {
legend: {
data: [],
@@ -5127,7 +5122,7 @@ function initChartsNpu() {
document.getElementById(`metric-${versionName}`)
);
$.get(
- `${window.config.AppSubUrl}/api/v1/repos/${userName}/${repoPath}/modelarts/train-job/${jobID}/metric_statistics?version_name=${versionName}&statistic_type=each&metrics=`,
+ `${window.config.AppSubUrl}/api/v1/repos/${repoPath}`,
(res) => {
let filterDta = res.MetricsInfo.filter((item) => {
return ![