...
|
...
|
@@ -6,8 +6,8 @@ import line from 'echarts/lib/chart/line'; |
|
|
import Page from './page';
|
|
|
import mcData from '../data/mc';
|
|
|
import cpData from '../data/cp';
|
|
|
import topSelectHbs from '../hbs/topSelect.hbs';
|
|
|
import tcBodyHbs from '../hbs/tc-body.hbs';
|
|
|
import topSelectHbs from '../hbs/top-select.hbs';
|
|
|
import rosTbody from '../hbs/ros-tbody.hbs';
|
|
|
|
|
|
class RedisLive extends Page {
|
|
|
constructor() {
|
...
|
...
|
@@ -27,7 +27,7 @@ class RedisLive extends Page { |
|
|
tk: $('#tk')[0],
|
|
|
cloudSelect: $('#cloudSelect'),
|
|
|
clusterSelect: $('#clusterSelect'),
|
|
|
tcTbody: $('#tcTbody')
|
|
|
rosTbody: $('#rosTbody')
|
|
|
};
|
|
|
|
|
|
this.selector.cloudSelect.on('change', this.cloudSelectChange.bind(this));
|
...
|
...
|
@@ -42,7 +42,7 @@ class RedisLive extends Page { |
|
|
this.cpinit();
|
|
|
// this.tcinit();
|
|
|
// this.tkinit();
|
|
|
this.getRedisOpsStatistics();
|
|
|
this.rosInit();
|
|
|
}
|
|
|
|
|
|
async navInit() {
|
...
|
...
|
@@ -96,6 +96,13 @@ class RedisLive extends Page { |
|
|
|
|
|
}
|
|
|
|
|
|
async rosInit() {
|
|
|
let resData = await this.getRedisOpsStatistics();
|
|
|
let tbody = rosTbody(resData.list);
|
|
|
|
|
|
this.selector.rosTbody.html(tbody);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 选择云
|
|
|
*/
|
...
|
...
|
@@ -200,6 +207,7 @@ class RedisLive extends Page { |
|
|
return this.ajax({
|
|
|
url: '/redismonitor/getRedisOpsStatistics',
|
|
|
data: {
|
|
|
page: 1,
|
|
|
cloud: this.cloud,
|
|
|
redisCluster: this.redisCluster,
|
|
|
lastTime: 30
|
...
|
...
|
|