Skip to content

Commit

Permalink
优化界面
Browse files Browse the repository at this point in the history
  • Loading branch information
iwind committed Aug 1, 2021
1 parent 867215e commit d747e65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/views/@default/clusters/cluster/boards/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="ui four columns grid">
<div class="ui column">
<h4>在线节点<link-icon :href="'/clusters/cluster/nodes?clusterId=' + clusterId"></link-icon></h4>
<div class="value"><span>{{board.countActiveNodes}}</span></div>
<div class="value"><span class="green">{{board.countActiveNodes}}</span></div>
</div>
<div class="ui column">
<h4>离线节点<link-icon :href="'/clusters/cluster/nodes?clusterId=' + clusterId"></link-icon></h4>
Expand Down
5 changes: 4 additions & 1 deletion web/views/@default/clusters/cluster/boards/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})
}

Expand Down

0 comments on commit d747e65

Please sign in to comment.