1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-06-06 07:11:54 +00:00

update UI

This commit is contained in:
Newnius 2019-07-12 15:24:17 +08:00
parent f983efc1fb
commit b7a13462fd
2 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,6 @@ switch ($action) {
$task = new CRObject();
$task->set('job', cr_get_GET('job'));
$task->set('task', cr_get_GET('task'));
$task->set('task', 'node1');
$res = task_logs($task);
break;

View File

@ -229,7 +229,7 @@ function jobOperateFormatter(value, row, index) {
div += '<button class="btn btn-default config"><i class="glyphicon glyphicon-cog"></i>&nbsp;</button>';
if (page_type === 'jobs')
div += '<button class="btn btn-default stats"><i class="glyphicon glyphicon-eye-open"></i>&nbsp;</button>';
if (page_type === 'jobs' && (parseInt(row.status) === 0 || parseInt(row.status) === 1))
if (page_type === 'jobs' && (parseInt(row.status) !== 3 && parseInt(row.status) !== 4))
div += '<button class="btn btn-default stop"><i class="glyphicon glyphicon-remove"></i>&nbsp;</button>';
div += '</div>';
return div;
@ -296,7 +296,8 @@ function load_job_status(name) {
field: 'id',
title: 'ID',
align: 'center',
valign: 'middle'
valign: 'middle',
visible: false
}, {
field: 'image',
title: 'Image',