From a30b7f489c46bc8e3be805001000706993dc98f5 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Mon, 15 Nov 2021 15:18:14 +0800 Subject: [PATCH] fix issue --- templates/repo/modelarts/trainjob/show.tmpl | 64 ++++++++++++++++++++- 1 file changed, 61 insertions(+), 3 deletions(-) diff --git a/templates/repo/modelarts/trainjob/show.tmpl b/templates/repo/modelarts/trainjob/show.tmpl index 8c63ba8c1..7b37f40e8 100755 --- a/templates/repo/modelarts/trainjob/show.tmpl +++ b/templates/repo/modelarts/trainjob/show.tmpl @@ -55,7 +55,7 @@ margin:10px 5px ; } .tab_2_content { - min-height: 260px; + min-height: 360px; margin-left: 10px; } .ac-grid { @@ -136,7 +136,7 @@ td, th { 运行时间: 01:09:50 - + @@ -180,9 +180,20 @@ td, th { + + + 运行版本 + + + +
+ aaa +
+ + - 开始时间 + 运行时间 @@ -191,6 +202,39 @@ td, th { + + + 资源池 + + + +
+ aaa +
+ + + + + 规格 + + + +
+ aaa +
+ + + + + 计算节点 + + + +
+ 1 +
+ + @@ -296,6 +340,20 @@ td, th { repoPath = urlArr.slice(-4)[0] jobID = urlArr.slice(-1)[0] }) + + function stopBubbling(e) { + e = window.event || e; + if (e.stopPropagation) { + e.stopPropagation(); //阻止事件 冒泡传播 + } else { + e.cancelBubble = true; //ie兼容 + } + } + function refreshStatus(version_name){ + console.log("----click get request------",version_name) + $.get(`/api/v1/repos/${repoPath}/modelarts/train-job/${jobID}?version_name=${version_name}`) + stopBubbling(arguments.callee.caller.arguments[0]) + } $(".log").scroll(function () { var scrollTop = $(this)[0].scrollTop; // 滚动距离