1.校验搜索框的时间,开始时间不能晚于结束时间
2.校验dns相应策略配置增加中的最大\小存活时间,最小存活时间不能大于最大存活时间
This commit is contained in:
@@ -347,6 +347,53 @@ $(function(){
|
||||
$("#serviceId").val($(this).attr("serviceId"));
|
||||
$("#protocolId").val($(this).attr("protocolId"));
|
||||
});
|
||||
|
||||
// 校验搜索条件里的时间选框,不允许起始时间晚于终止时间
|
||||
$("#searchForm").validate({
|
||||
rules:{
|
||||
"searchFoundStartTime": {
|
||||
},
|
||||
"searchFoundEndTime": {
|
||||
compareDate: "[name=searchFoundStartTime]"
|
||||
},
|
||||
"search_create_time_start": {
|
||||
},
|
||||
"search_create_time_end": {
|
||||
compareDate: "[name=search_create_time_start]"
|
||||
},
|
||||
"search_edit_time_start": {
|
||||
},
|
||||
"search_edit_time_end": {
|
||||
compareDate: "[name=search_edit_time_start]"
|
||||
},
|
||||
"search_audit_time_start": {
|
||||
},
|
||||
"search_audit_time_end": {
|
||||
compareDate: "[name=search_audit_time_start]"
|
||||
},
|
||||
"beginDate": {
|
||||
},
|
||||
"endDate": {
|
||||
compareDate: "[name=beginDate]"
|
||||
},
|
||||
"dobeginDate": {
|
||||
},
|
||||
"doendDate": {
|
||||
compareDate: "[name=dobeginDate]"
|
||||
}
|
||||
},
|
||||
submitHandler: function(form){
|
||||
loading('loading...');
|
||||
form.submit();
|
||||
}
|
||||
});
|
||||
|
||||
// 动态调整日志
|
||||
var igHeight = $("#searchForm").find(".col-md-12").find(".pull-left").find(".input-group").height();
|
||||
$("#searchForm").find(".col-md-12").find(".pull-left").find(".input-group").bind("DOMNodeInserted",function(e) {
|
||||
var newIgHeight = $("#searchForm").find(".col-md-12").eq(0).height();
|
||||
$("#searchForm").find(".col-md-12").find(".pull-left").find(".input-group").find(".input-group-btn").css("padding-bottom", (newIgHeight-igHeight)+"px");
|
||||
});
|
||||
});
|
||||
//与表达式时,只允许为子串匹配
|
||||
var setDefaultMatchMethod=function (obj){
|
||||
@@ -742,7 +789,6 @@ var page=function(n,s){
|
||||
$("#pageNo").val(n);
|
||||
$("#pageSize").val(s);
|
||||
$("#searchForm").submit();
|
||||
loading();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user