Authored by qinchao

redis查询的数据源从cmdb获取

... ... @@ -386,6 +386,5 @@ public class HttpUriContants {
*/
//redis配置源
public static final String REDIS_INFO_LIST = "/redisOperate/queryRedisList";
public static final String REDIS_INFO_LIST_2= "/redisOperate/queryRedisList2";
public static final String REDISOPERATE_QUERY = "/redisOperate/query";
}
\ No newline at end of file
... ...
... ... @@ -37,8 +37,8 @@ public class RedisOperateCtrl {
/*
查询redis源
*/
查询redis源
*/
@RequestMapping("/queryRedisList")
@ResponseBody
public BaseResponse queryRedisList( HttpSession session){
... ... @@ -46,16 +46,6 @@ public class RedisOperateCtrl {
return res;
}
/*
查询redis源
*/
@RequestMapping("/queryRedisList2")
@ResponseBody
public BaseResponse queryRedisList2( HttpSession session){
BaseResponse res = httpClient.defaultPost(HttpUriContants.REDIS_INFO_LIST_2, null, BaseResponse.class);
return res;
}
/*
... ...
... ... @@ -239,7 +239,7 @@
_PAGE_SELECT_DB_INDEX=0;
$("#dataSourceInfo").empty();
for(var i =0;i<_PAGE_REDIS_INFO_MAPS[prop].length;i++){
$("#dataSourceInfo").append("<option value="+_PAGE_REDIS_INFO_MAPS[prop][i].id+">" + _PAGE_REDIS_INFO_MAPS[prop][i].ip + "</option>");
$("#dataSourceInfo").append("<option value="+_PAGE_REDIS_INFO_MAPS[prop][i].ip+" data-sign="+_PAGE_REDIS_INFO_MAPS[prop][i].port+">" + _PAGE_REDIS_INFO_MAPS[prop][i].ip+":"+ _PAGE_REDIS_INFO_MAPS[prop][i].port + "</option>");
}
}
... ... @@ -263,7 +263,7 @@
return;
}
var param={};
param.dataSourceInfo=$.trim($("#dataSourceInfo option:selected").val());
param.dataSourceInfo=$.trim($("#dataSourceInfo option:selected").text());
param.cmdContent=queryThings;
var select_tmp=queryThings.toLowerCase();
if(queryThings.toLowerCase().indexOf("select")>=0){
... ...