| @@ -426,7 +426,10 @@ td, th { | |||||
| <div class="ui message message" style="display: none;"> | <div class="ui message message" style="display: none;"> | ||||
| <div id="header"></div> | <div id="header"></div> | ||||
| </div> | </div> | ||||
| <div class="ui attached log" id="log" style="height: 300px !important; overflow: auto;"> | |||||
| <div class="ui attached log" id="log" style="height: 300px !important; overflow: auto;"> | |||||
| <div class="ui inverted active dimmer"> | |||||
| <div class="ui loader"></div> | |||||
| </div> | |||||
| <input type="hidden" name="end_line"> | <input type="hidden" name="end_line"> | ||||
| <input type="hidden" name="start_line"> | <input type="hidden" name="start_line"> | ||||
| <pre id="log_file"></pre> | <pre id="log_file"></pre> | ||||
| @@ -517,15 +520,22 @@ td, th { | |||||
| $(document).ready(loadJobStatus); | $(document).ready(loadJobStatus); | ||||
| function loadLog(version_name){ | function loadLog(version_name){ | ||||
| document.getElementById("mask").style.display = "block" | |||||
| $('.log .ui.inverted.active.dimmer').css({ | |||||
| "background-color": "#fff", | |||||
| "display": "block", | |||||
| }); | |||||
| $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${taskID}/log?version_name=${version_name}&lines=50&order=asc`, (data) => { | $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${taskID}/log?version_name=${version_name}&lines=50&order=asc`, (data) => { | ||||
| $('input[name=end_line]').val(data.EndLine) | $('input[name=end_line]').val(data.EndLine) | ||||
| $('input[name=start_line]').val(data.StartLine) | $('input[name=start_line]').val(data.StartLine) | ||||
| $(`#log_file`).text(data.Content) | $(`#log_file`).text(data.Content) | ||||
| document.getElementById("mask").style.display = "none" | |||||
| $('.log .ui.inverted.active.dimmer').css({ | |||||
| "display": "none", | |||||
| }); | |||||
| }).fail(function(err) { | }).fail(function(err) { | ||||
| console.log(err); | console.log(err); | ||||
| document.getElementById("mask").style.display = "none" | |||||
| $('.log .ui.inverted.active.dimmer').css({ | |||||
| "display": "none", | |||||
| }); | |||||
| }); | }); | ||||
| } | } | ||||
| function loadModelFile(version_name,parents,filename,init){ | function loadModelFile(version_name,parents,filename,init){ | ||||