1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-12-15 09:36:43 +00:00
This commit is contained in:
2020-06-08 20:24:41 +08:00
parent 44302c9c12
commit 20b92071e1
2 changed files with 12 additions and 8 deletions

View File

@@ -150,7 +150,7 @@ function load_jobs(scope) {
formatter: workspaceFormatter
}, {
field: 'group',
title: 'Virtual Cluster',
title: 'Group',
align: 'center',
valign: 'middle',
formatter: clusterFormatter
@@ -431,7 +431,7 @@ window.jobStatusOperateEvents = {
},
'click .download': function (e, value, row, index) {
var job = getParameterByName('name');
var task = row.id;
var task = row.hostname;
var ajax = $.ajax({
url: "service?action=task_logs",
@@ -445,8 +445,9 @@ window.jobStatusOperateEvents = {
if (res["errno"] !== 0) {
$("#modal-msg-content").html(res["msg"]);
$("#modal-msg").modal('show');
} else {
download(res['logs'], job + '_' + task + '.txt', "text/plain");
}
download(res['logs'], job + '_' + task + '.txt', "text/plain");
});
ajax.fail(function (jqXHR, textStatus) {
$("#modal-msg-content").html("Request failed : " + jqXHR.statusText);