From b81c738aa198d1f85a3c9a8f63aef718d128917a Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 23 Jun 2022 10:25:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0TRT=E8=BD=AC=E6=8D=A2=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- .../repo/modelmanage/convertshowinfo.tmpl | 27 +++++-------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/templates/repo/modelmanage/convertshowinfo.tmpl b/templates/repo/modelmanage/convertshowinfo.tmpl index 4f24ca65a..2cfb675c2 100644 --- a/templates/repo/modelmanage/convertshowinfo.tmpl +++ b/templates/repo/modelmanage/convertshowinfo.tmpl @@ -147,7 +147,7 @@ td, th { width: 100px; line-height: 30px; } -.border-according{ +.border-according-model{ border: 1px solid #dfe1e6; } .disabled { @@ -188,7 +188,7 @@ td, th { {{with .task}} -
+
@@ -649,17 +649,13 @@ td, th { size=size.toFixed(0);//保留的小数位数 return size+unitArr[index]; } + function loadJobStatus() { - $(".ui.accordion.border-according").each((index, job) => { + $(".ui.accordion.border-according-model").each((index, job) => { const jobID = job.dataset.jobid; const repoPath = job.dataset.repopath; const versionname = job.dataset.version - // ['IMAGE_FAILED','SUBMIT_FAILED','DELETE_FAILED','KILLED','COMPLETED','FAILED','CANCELED','LOST','START_FAILED'] - // if (job.textContent.trim() == 'IMAGE_FAILED' || job.textContent.trim() == 'SUBMIT_FAILED' || job.textContent.trim() == 'DELETE_FAILED' - // || job.textContent.trim() == 'KILLED' || job.textContent.trim() == 'COMPLETED' || job.textContent.trim() == 'FAILED' - // || job.textContent.trim() == 'CANCELED' || job.textContent.trim() == 'LOST') { - // return - // } + let status = $(`#status-span`).text() if(['IMAGE_FAILED','SUBMIT_FAILED','DELETE_FAILED','KILLED','COMPLETED','FAILED','CANCELED','LOST','START_FAILED','SUCCEEDED','STOPPED'].includes(status)){ @@ -679,18 +675,7 @@ td, th { }); }; - function refreshStatus(version_name){ - $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${taskID}?version_name=${versionname}`,(data)=>{ - $(`#status-span span`).text(data.JobStatus) - $(`#status-span i`).attr("class",data.JobStatus) - $('#status').text(data.JobStatus) - loadLog(version_name) - }).fail(function(err) { - console.log(err); - }); - stopBubbling(arguments.callee.caller.arguments[0]) - } - + function parseInfo(){ let jsonValue = document.getElementById("json_value").value; let jsonObj = JSON.parse(jsonValue);