From bca2c854ab56ed2e47fc8495a60a56d3ceb21029 Mon Sep 17 00:00:00 2001 From: Newnius Date: Thu, 18 Jun 2020 21:58:53 +0800 Subject: [PATCH] update --- static/job.js | 6 ++++++ static/resource.js | 1 + 2 files changed, 7 insertions(+) diff --git a/static/job.js b/static/job.js index 23b9ff0..959e4c9 100755 --- a/static/job.js +++ b/static/job.js @@ -186,6 +186,12 @@ function load_jobs(scope) { valign: 'middle', formatter: statusFormatter, visible: true + }, { + field: 'base_priority', + title: 'BasePriority', + align: 'center', + valign: 'middle', + visible: false }, { field: 'operate', title: 'Operate', diff --git a/static/resource.js b/static/resource.js index b7c3033..3fbb658 100755 --- a/static/resource.js +++ b/static/resource.js @@ -71,6 +71,7 @@ function resourceResponseHandler(res) { tmp["rows"] = []; $.each(res["resources"], function (i, node) { var item = { + 'id': node.id, 'host': node.host, 'CPU': node.cpu_num, 'MEM': node.mem_available + ' / ' + node.mem_total + ' (GB)',