From d747e656dc095478802dd75c0c5f37fdecad2d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 1 Aug 2021 11:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/views/@default/clusters/cluster/boards/index.html | 2 +- web/views/@default/clusters/cluster/boards/index.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/views/@default/clusters/cluster/boards/index.html b/web/views/@default/clusters/cluster/boards/index.html index dab32a5c..fa9a13f9 100644 --- a/web/views/@default/clusters/cluster/boards/index.html +++ b/web/views/@default/clusters/cluster/boards/index.html @@ -4,7 +4,7 @@

在线节点

-
{{board.countActiveNodes}}
+
{{board.countActiveNodes}}

离线节点

diff --git a/web/views/@default/clusters/cluster/boards/index.js b/web/views/@default/clusters/cluster/boards/index.js index b0f5b27c..ee478996 100644 --- a/web/views/@default/clusters/cluster/boards/index.js +++ b/web/views/@default/clusters/cluster/boards/index.js @@ -332,7 +332,10 @@ Tea.context(function () { value: function (v) { return v.countRequests / axis.divider; }, - axis: axis + axis: axis, + click: function (args, stats) { + window.location = "/servers/server?serverId=" + stats[args.dataIndex].serverId + } }) }