导入界面样式更改
是否表达式和是否十六进制初始化顺序更改
This commit is contained in:
@@ -9,16 +9,16 @@ $(function(){
|
||||
protocol:[],
|
||||
direction:[]
|
||||
});
|
||||
$("input[name$='isCaseSenstive']").on("change",function(){
|
||||
setIsHexBin(this);
|
||||
});
|
||||
setHexCaseSenstive();
|
||||
$("select[name$='isHexbin']").each(function(){
|
||||
setIsHexBin(this);
|
||||
});
|
||||
$("input[name$='isHex']").on("change",function(){
|
||||
setIsHexBin(this);
|
||||
});
|
||||
$("input[name$='isCaseSenstive']").on("change",function(){
|
||||
setIsHexBin(this);
|
||||
});
|
||||
setHexCaseSenstive();
|
||||
$("a[name=viewLogInfo]>i").on("click",function(){
|
||||
var html = "<div class='logInfo'>";
|
||||
$(this).parents("tr").find("td").each(function(index,element){
|
||||
@@ -360,6 +360,7 @@ $(function(){
|
||||
$(".action").on("change", function() {
|
||||
$("#serviceId").val($(this).attr("serviceId"));
|
||||
$("#protocolId").val($(this).attr("protocolId"));
|
||||
switchAction($(this).val());
|
||||
});
|
||||
// 校验搜索条件里的时间选框,不允许起始时间晚于终止时间
|
||||
$("#searchForm").validate({
|
||||
@@ -535,6 +536,21 @@ $(function(){
|
||||
$(this).val(0);
|
||||
}
|
||||
});
|
||||
//配置修改时已经展开的域上的加号隐藏
|
||||
$(".boxSolid:visible").each(function(){
|
||||
$(this).prev("h4").find(".glyphicon-plus").addClass("hidden");
|
||||
});
|
||||
//IP域修改时默认展开,不显示show more
|
||||
if($("input[name='compileId']")&&$("input[name='compileId']").val()!=0&&($(".btn-red-hollow").parents(".boxSolid").is(":visible")||$("input[name$='cfgRegionCode']").length==1)){
|
||||
$(".port").removeClass("hidden").removeClass("disabled");
|
||||
$(".destPort").removeClass("hidden").removeClass("disabled");
|
||||
$(".protocol").removeClass("hidden").removeClass("disabled");
|
||||
$(".btn-red-hollow").addClass("hidden");
|
||||
}
|
||||
|
||||
$("#messageBox .close").on("click",function(){
|
||||
heightDiv(1);
|
||||
})
|
||||
});
|
||||
window.onload=function(){
|
||||
$("span[id^=open]").click(function(){
|
||||
@@ -584,6 +600,21 @@ window.onload=function(){
|
||||
heightDiv();
|
||||
},500);
|
||||
|
||||
if($('.table-responsive')){
|
||||
var tableCont = document.querySelector('.table-responsive');
|
||||
if(tableCont !=null && tableCont!=''){
|
||||
function scrollHandle (e){
|
||||
var scrollTop = this.scrollTop;
|
||||
$('th').css('transform','translateY(' + scrollTop + 'px)');
|
||||
$('thead tr').css('z-index','2147482468');
|
||||
$('thead tr').css('position','relative');
|
||||
$('th').css('border','1px solid rgb(255, 255, 255)');
|
||||
$('th').css('background-clip','padding-box');
|
||||
}
|
||||
tableCont.addEventListener('scroll',scrollHandle);
|
||||
$('#contentTable').attr("margin-top",'0px');
|
||||
}
|
||||
}
|
||||
}
|
||||
var setInterceptDefaultInfo=function(cfgId){
|
||||
var action=$("input[name='action']:checked").val();
|
||||
@@ -1823,14 +1854,23 @@ var initCommIpVal=function(){
|
||||
}
|
||||
}
|
||||
|
||||
function heightDiv(){
|
||||
|
||||
function heightDiv(type){
|
||||
var hei=document.documentElement.clientHeight;
|
||||
hei=hei-71;
|
||||
hei=hei-91;
|
||||
var rowheigth=0;
|
||||
if($('.row')){
|
||||
rowheigth=$('.row').height();
|
||||
hei=hei-rowheigth;
|
||||
}
|
||||
if(type != 1){
|
||||
if($("#messageBox")){
|
||||
var messageH=$("#messageBox").height();
|
||||
if(messageH > 0){
|
||||
hei=hei-messageH-52;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($('.table-responsive')){
|
||||
$('.table-responsive').css({'height':hei+'px'});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user