Authored by qinchao

权限修改

... ... @@ -7,6 +7,6 @@ package com.ui.contants;
public class ProjectConstant {
//左侧菜单的版本号控制
public static final String MENU_VERSION = "20180330-003";
public static final String MENU_VERSION = "20180403-001";
}
... ...
package com.ui.ctrl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
/**
* Created by craig.qin on 2017/7/3.
*/
@Controller
@RequestMapping("/zkCfgCommon")
public class ZkCfgCommonCtrl {
Logger log = LoggerFactory.getLogger(ZkCfgCommonCtrl.class);
@RequestMapping("/tozkMonitorList")
public ModelAndView tozkMonitorList() {
return new ModelAndView("zkMonitor/zkMonitorList");
}
}
... ...
package com.ui.ctrl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
/**
* Created by craig.qin on 2017/7/3.
*/
@Controller
@RequestMapping("/zkCfgLog4j")
public class ZkCfgLog4jCtrl {
Logger log = LoggerFactory.getLogger(ZkCfgLog4jCtrl.class);
@RequestMapping("/tozkMonitorList4Log4j")
public ModelAndView tozkMonitorList4Log4j() {
return new ModelAndView("zkMonitor/zkMonitorList4Log4j");
}
}
... ...
package com.ui.ctrl;
import com.ui.contants.HttpUriContants;
import com.ui.http.HttpRestClient;
import com.ui.model.BaseResponse;
import com.ui.model.req.ZkDetailReq;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
/**
* Created by craig.qin on 2017/7/3.
*/
@Controller
@RequestMapping("/zkCfgUicRisk")
public class ZkCfgUicRishCtrl {
Logger log = LoggerFactory.getLogger(ZkCfgUicRishCtrl.class);
@Autowired
private HttpRestClient httpClient;
@RequestMapping("/toRiskCtrolzkMonitorList")
public ModelAndView toRiskCtrolzkMonitorList(){
return new ModelAndView("zkMonitor/riskCtrolzkMonitorList");
}
@RequestMapping("/getRiskCtrolZkMonitorDetail")
@ResponseBody
public BaseResponse getRiskCtrolZkMonitorDetail(ZkDetailReq req){
log.info("getRiskCtrolZkMonitorDetail with req is {} ", req);
BaseResponse response = httpClient.defaultPost(HttpUriContants.GET_RISKCTROL_ZK_DETAIL, req, BaseResponse.class);
return response;
}
}
... ...
... ... @@ -27,23 +27,7 @@ public class ZkMonitorTreeCtrl {
@Autowired
private HttpRestClient httpClient;
@RequestMapping("/tozkMonitorList")
public ModelAndView tozkMonitorList() {
return new ModelAndView("zkMonitor/zkMonitorList");
}
@RequestMapping("/toRiskCtrolzkMonitorList")
public ModelAndView toRiskCtrolzkMonitorList(){
return new ModelAndView("zkMonitor/riskCtrolzkMonitorList");
}
@RequestMapping("/tozkMonitorList4Log4j")
public ModelAndView tozkMonitorList4Log4j() {
return new ModelAndView("zkMonitor/zkMonitorList4Log4j");
}
@RequestMapping("/zkTree")
@ResponseBody
... ... @@ -84,13 +68,6 @@ public class ZkMonitorTreeCtrl {
return response;
}
@RequestMapping("/getRiskCtrolZkMonitorDetail")
@ResponseBody
public BaseResponse getRiskCtrolZkMonitorDetail(ZkDetailReq req){
log.info("getRiskCtrolZkMonitorDetail with req is {} ", req);
BaseResponse response = httpClient.defaultPost(HttpUriContants.GET_RISKCTROL_ZK_DETAIL, req, BaseResponse.class);
return response;
}
@RequestMapping("/editDetail")
@ResponseBody
... ...
... ... @@ -123,7 +123,7 @@
$("#detailTable").show();
$(function () {
$("#detailTable").table({
url: contextPath + "/zkTree/getRiskCtrolZkMonitorDetail?ip="+ip+"&zkPath="+rowData.root,
url: contextPath + "/zkCfgUicRisk/getRiskCtrolZkMonitorDetail?ip="+ip+"&zkPath="+rowData.root,
striped : true,
pagination : false,
loadFilter: function (data) {
... ...
... ... @@ -140,7 +140,7 @@
</div>
</body>
<script type="text/javascript" src="<%=basePath %>/script/yoho.type.zktree.log4j.js?v=20180330"></script>
<script type="text/javascript" src="<%=basePath %>/script/yoho.type.zktree.log4j.js?v=20180403-1"></script>
<script>
function toDetail(rowData,ip){
$("#detailTable").show();
... ...
... ... @@ -204,12 +204,12 @@ document.getElementById("logout_a").setAttribute("href", path + "/user/logout");
//document.getElementById("changepwd_a").setAttribute("href", path + "/user/toupdatePwd");
document.getElementById("li_sms_a").setAttribute("href", path + "/sms/toSmsLog");
document.getElementById("li_search_compare_a").setAttribute("href", path + "/searchCompare/getComparePage");
document.getElementById("li_zkMonitor_a").setAttribute("href", path + "/zkTree/tozkMonitorList");
document.getElementById("li_riskCtrol_zkMonitor_a").setAttribute("href", path + "/zkTree/toRiskCtrolzkMonitorList");
document.getElementById("li_zkMonitor_a").setAttribute("href", path + "/zkCfgCommon/tozkMonitorList");
document.getElementById("li_riskCtrol_zkMonitor_a").setAttribute("href", path + "/zkCfgUicRisk/toRiskCtrolzkMonitorList");
document.getElementById("li_zkConfigCenter_a").setAttribute("href", path + "/configCenter/tozkConfigCenterList");
document.getElementById("li_zkMonitor_log4j_a").setAttribute("href", path + "/zkTree/tozkMonitorList4Log4j");
document.getElementById("li_zkMonitor_log4j_a").setAttribute("href", path + "/zkCfgLog4j/tozkMonitorList4Log4j");
document.getElementById("li_user_a").setAttribute("href", path + "/manage/toUser");
document.getElementById("li_user_operate_log_a").setAttribute("href", path + "/userOperateLog/toUserOperateLog");
document.getElementById("li_module_a").setAttribute("href", path + "/manage/toModule");
... ...
... ... @@ -167,7 +167,7 @@ function searchType(ip, children, nodeId){
$("#detailTable").hide();
$("#rootTable").table({
url: contextPath + "/zkTree/getRoot4Log4j?ip="+ip,
url: contextPath + "/zkCfgLog4j/getRoot4Log4j?ip="+ip,
striped: true,
panelClass: "panel-success",
pagination: false,
... ...