Authored by mlge

恶意Ip规则管理js修改

... ... @@ -12,13 +12,13 @@ import java.util.Map;
*/
public enum IpRuleItemEnum {
QPS("qps","qps"),
DIFMETHODCOUNT("difMethodCount","访问接口数"),
DIFMETHODCOUNT("difMethodCount","访问接口数"),
IMPCOUNT("impCount","敏感接口访问次数"),
IMPAPIPRECENT("impApiPrecent","敏感接口占比"),
UIDCOUNT("uidCount","uid个数"),
UDIDCOUNT("udidCount","udid个数"),
NOTEXSITUDIDCOUNT("notExsitUdidCount","不存在的udid个数"),
NOTEXISTUDIDPERCENT("notExistUdidPercent","不存在udid占比"),
NOTEXISTUDIDPERCENT("notExistUdidPercent","不存在udid占比"),
DEVICETYPECOUNT("deviceTypeCount","设备类型总数");
private String item;
... ...
... ... @@ -340,12 +340,12 @@
//初始化 绑定事件---动态展示 生成的规则
function initEvents(){
$("#table_rule_items").on("change","select,input", function() {//下拉列表内容改变 绑定事件
$("#table_rule_items").on("change","select", function() {//下拉列表内容改变 绑定事件
generateRules();//生成规则文本
});
/* $("#table_rule_items").on("blur","input", function() {//文本框 获取焦点 绑定事件
$("#table_rule_items").on("keyup","input", function() {//文本框 获取焦点 绑定事件
generateRules();//生成规则文本
});*/
});
}
//生成规则文本
function generateRules(){
... ...