...
|
...
|
@@ -128,8 +128,14 @@ class RedisLive extends Page { |
|
|
if (this.hasRedisCluster) {
|
|
|
this.srvChange = true;
|
|
|
|
|
|
await this.srvListRender();
|
|
|
await this.srvGraphRender();
|
|
|
if (this.redisClusterType == false) {
|
|
|
$('.srv-item, .pure-item').slideUp();
|
|
|
} else {
|
|
|
$('.srv-item, .pure-item').slideDown();
|
|
|
await this.srvListRender();
|
|
|
await this.srvGraphRender();
|
|
|
}
|
|
|
|
|
|
this.cpRender();
|
|
|
this.mcRender();
|
|
|
this.epRender();
|
...
|
...
|
@@ -175,7 +181,8 @@ class RedisLive extends Page { |
|
|
|
|
|
if (redisClusterData && redisClusterData.length > 0) {
|
|
|
this.hasRedisCluster = true;
|
|
|
this.redisCluster = redisClusterData[0];
|
|
|
this.redisCluster = redisClusterData[0].cluster;
|
|
|
this.redisClusterType = redisClusterData[0].showDetail;
|
|
|
$('#clusterSelect').html(topSelectHbs(redisClusterData));
|
|
|
} else {
|
|
|
this.hasRedisCluster = false;
|
...
|
...
|
@@ -448,7 +455,8 @@ class RedisLive extends Page { |
|
|
this.hasRedisCluster = false;
|
|
|
}
|
|
|
|
|
|
this.redisCluster = redisClusterData[0];
|
|
|
this.redisCluster = redisClusterData[0].cluster;
|
|
|
this.redisClusterType = redisClusterData[0].showDetail;
|
|
|
$('#clusterSelect').html(topSelectHbs(redisClusterData));
|
|
|
|
|
|
this.srvChange = true;
|
...
|
...
|
@@ -460,6 +468,7 @@ class RedisLive extends Page { |
|
|
*/
|
|
|
clusterSelectChange() {
|
|
|
this.redisCluster = this.selector.clusterSelect.val();
|
|
|
this.redisClusterType = $("#clusterSelect option:selected").data('type');
|
|
|
this.srvChange = true;
|
|
|
this.refreshGraph();
|
|
|
}
|
...
|
...
|
@@ -481,7 +490,7 @@ class RedisLive extends Page { |
|
|
|
|
|
if (this.cloud) {
|
|
|
resResut = this.ajax({
|
|
|
url: '/redismonitor/getRedisCluster',
|
|
|
url: '/redismonitor/getRedisClusterNew',
|
|
|
data: {
|
|
|
cloud: this.cloud
|
|
|
}
|
...
|
...
|
@@ -700,8 +709,14 @@ class RedisLive extends Page { |
|
|
* 集中刷新数据
|
|
|
*/
|
|
|
async refreshGraph(srvChange) {
|
|
|
await this.srvListRender();
|
|
|
await this.srvGraphRender();
|
|
|
if (this.redisClusterType == false) {
|
|
|
$('.srv-item, .pure-item').slideUp();
|
|
|
} else {
|
|
|
$('.srv-item, .pure-item').slideDown();
|
|
|
await this.srvListRender();
|
|
|
await this.srvGraphRender();
|
|
|
}
|
|
|
|
|
|
this.cpRender();
|
|
|
this.mcRender();
|
|
|
this.epRender();
|
...
|
...
|
|