| @@ -262,8 +262,6 @@ | |||||
| <div class="ui pointing secondary menu" style="border-bottom: 1px solid rgba(34,36,38,.15);"> | <div class="ui pointing secondary menu" style="border-bottom: 1px solid rgba(34,36,38,.15);"> | ||||
| <a class="active item" | <a class="active item" | ||||
| data-tab="first">{{$.i18n.Tr "repo.modelarts.train_job.config"}}</a> | data-tab="first">{{$.i18n.Tr "repo.modelarts.train_job.config"}}</a> | ||||
| <a class="item" data-tab="second" | |||||
| onclick="javascript:parseInfo()">{{$.i18n.Tr "repo.cloudbrain.runinfo"}}</a> | |||||
| <a class="item log_bottom" data-tab="third" | <a class="item log_bottom" data-tab="third" | ||||
| data-version="{{.VersionName}}">{{$.i18n.Tr "repo.modelarts.log"}}</a> | data-version="{{.VersionName}}">{{$.i18n.Tr "repo.modelarts.log"}}</a> | ||||
| <a class="item load-model-file" data-tab="four" | <a class="item load-model-file" data-tab="four" | ||||
| @@ -616,56 +614,6 @@ | |||||
| $(document).ready(function () { | $(document).ready(function () { | ||||
| $('.secondary.menu .item').tab(); | $('.secondary.menu .item').tab(); | ||||
| }); | }); | ||||
| let userName | |||||
| let repoPath | |||||
| let jobID | |||||
| let downlaodFlag = {{ $.canDownload }} | |||||
| let taskID = {{ $.task.ID }} | |||||
| let realJobName = {{ $.task.JobName }} | |||||
| function parseInfo() { | |||||
| let jsonValue = document.getElementById("json_value").value; | |||||
| let jsonObj = JSON.parse(jsonValue); | |||||
| let podRoleName = jsonObj["podRoleName"]; | |||||
| let html = ""; | |||||
| if (podRoleName != null) { | |||||
| let task0 = podRoleName["task1-0"]; | |||||
| let podEvents = jsonObj["podEvents"]; | |||||
| let podEventArray = podEvents[task0]; | |||||
| if (podEventArray != null) { | |||||
| for (var i = 0; i < podEventArray.length; i++) { | |||||
| if (podEventArray[i]["reason"] != "") { | |||||
| html += "<p><b>[" + podEventArray[i]["reason"] + "]</b></p>"; | |||||
| html += "<p>" + podEventArray[i]["message"] + "</p>"; | |||||
| html += "<p>" + podEventArray[i]["action"] + "</p>"; | |||||
| } | |||||
| } | |||||
| } | |||||
| let extras = jsonObj["extras"]; | |||||
| if (extras != null) { | |||||
| for (var i = 0; i < extras.length; i++) { | |||||
| if (extras[i]["reason"] != "") { | |||||
| html += "<p><b>[" + extras[i]["reason"] + "]</b></p>"; | |||||
| html += "<p>" + extras[i]["message"] + "</p>"; | |||||
| html += "<p>" + extras[i]["action"] + "</p>"; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| let string = document.getElementById("ExitDiagnostics").value; | |||||
| string = string.replace(/\r\n/g, "<br>") | |||||
| string = string.replace(/\n/g, "<br>"); | |||||
| string = string.replace(/(\r\n)|(\n)/g, '<br>'); | |||||
| if (string != "") { | |||||
| html += "<p><b>[ExitDiagnostics]</b></p>"; | |||||
| html += "<p>" + string + "</p>"; | |||||
| } | |||||
| document.getElementById("info_display").innerHTML = html; | |||||
| } | |||||
| ;(function() { | ;(function() { | ||||
| var SPEC = {{ .Spec }}; | var SPEC = {{ .Spec }}; | ||||
| var showPoint = false; | var showPoint = false; | ||||