Authored by qinchao

权限组

... ... @@ -92,14 +92,6 @@ public class TypeCtrl {
BaseResponse response=httpClient.defaultGet(HttpUriContants.TYPE_QUERY_JAVAAPI, BaseResponse.class);
return response;
}
@RequestMapping("/zkTree")
@ResponseBody
public String getZkTree() {
String strType = "";
strType = httpClient.defaultGet(HttpUriContants.TYPE_GET_ZKTREE, String.class);
return strType;
}
@RequestMapping("/saveTypeTags")
@ResponseBody
... ...
... ... @@ -45,6 +45,14 @@ public class ZkMonitorTreeCtrl {
return new ModelAndView("zkMonitor/zkMonitorList4Log4j");
}
@RequestMapping("/zkTree")
@ResponseBody
public String getZkTree() {
String strType = "";
strType = httpClient.defaultGet(HttpUriContants.TYPE_GET_ZKTREE, String.class);
return strType;
}
@RequestMapping("/getRoot")
@ResponseBody
public BaseResponse getRoot(ZkTreeReq req){
... ...
... ... @@ -23,6 +23,14 @@ public class ZkSvcLookupCtrl {
@Autowired
private HttpRestClient httpClient;
@RequestMapping("/zkTree")
@ResponseBody
public String getZkTree() {
String strType = "";
strType = httpClient.defaultGet(HttpUriContants.TYPE_GET_ZKTREE, String.class);
return strType;
}
@RequestMapping("/tozkSvcLookupList")
public ModelAndView tozkSvcLookupList() {
... ...
... ... @@ -116,7 +116,7 @@
</div>
</div>
</body>
<script type="text/javascript" src="<%=basePath %>/script/yoho.type.riskCtrolzktree.js"></script>
<script type="text/javascript" src="<%=basePath %>/script/yoho.type.riskCtrolzktree.js?v=20180330"></script>
<script>
var detailTableRowsData ;//定义一个全局变量--加载table的时候需要获取这个数据
function toDetail(rowData,ip){
... ...
... ... @@ -116,7 +116,7 @@
</div>
</div>
</body>
<script type="text/javascript" src="<%=basePath %>/script/yoho.type.zktree.js?v=20180329"></script>
<script type="text/javascript" src="<%=basePath %>/script/yoho.type.zktree.js?v=20180330"></script>
<script>
function toDetail(rowData,ip){
$("#detailTable").show();
... ...
... ... @@ -140,7 +140,7 @@
</div>
</body>
<script type="text/javascript" src="<%=basePath %>/script/yoho.type.zktree.log4j.js?v=20180320"></script>
<script type="text/javascript" src="<%=basePath %>/script/yoho.type.zktree.log4j.js?v=20180330"></script>
<script>
function toDetail(rowData,ip){
$("#detailTable").show();
... ...
... ... @@ -106,7 +106,7 @@
<script>
$(function () {
$.ajax({
url: contextPath +"/type/zkTree",
url: contextPath +"/zkSvcLookup/zkTree",
dataType: "json",
success: function (respString) {
var resp=JSON.parse(respString);
... ...
... ... @@ -287,7 +287,7 @@ function updateRoot(rowData,ip){
var refreshTypeTree = function () {
console.log("refresh tree");
treeData = []; //重置
$.get(contextPath+"type/zkTree", function (data, state) {
$.get(contextPath+"zkTree/zkTree", function (data, state) {
console.log(state)
var jsonData = JSON.parse(data);
$.each(jsonData.data, function (n, val) {
... ...
... ... @@ -272,7 +272,7 @@ function searchType(ip, children, nodeId){
var refreshTypeTree = function () {
console.log("refresh tree");
treeData = []; //重置
$.get(contextPath+"type/zkTree", function (data, state) {
$.get(contextPath+"zkTree/zkTree", function (data, state) {
console.log(state)
var jsonData = JSON.parse(data);
$.each(jsonData.data, function (n, val) {
... ...
... ... @@ -193,7 +193,7 @@ function searchType(ip, children, nodeId){
var refreshTypeTree = function () {
console.log("refresh tree");
treeData = []; //重置
$.get(contextPath+"type/zkTree", function (data, state) {
$.get(contextPath+"zkTree/zkTree", function (data, state) {
console.log(state)
var jsonData = JSON.parse(data);
$.each(jsonData.data, function (n, val) {
... ...