1、修改文件上传接口的请求头中日期格式的处理;
2、修改http配置表单的区域管控加载,以及提交验证。
This commit is contained in:
@@ -3,13 +3,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||
<!-- BEGIN THEME GLOBAL STYLES -->
|
||||
<link
|
||||
href="${pageContext.request.contextPath}/static/global/css/components.css"
|
||||
rel="stylesheet" id="style_components" type="text/css" />
|
||||
<script
|
||||
src="${pageContext.request.contextPath}/static/global/scripts/common.js"
|
||||
type="text/javascript"></script>
|
||||
|
||||
<style type="text/css">
|
||||
.boxSolid {
|
||||
border: 1px solid #eeeeee
|
||||
@@ -19,53 +13,6 @@
|
||||
$(document)
|
||||
.ready(
|
||||
function() {
|
||||
switchIpType($("select[name$='ipType']"));
|
||||
areaControlInit();
|
||||
$("input[name='isAreaEffective']")
|
||||
.on(
|
||||
'change',
|
||||
function() {
|
||||
var val = $(this).val();
|
||||
if (val == 1) {
|
||||
$(".areaType").removeClass(
|
||||
"hidden");
|
||||
if ($(
|
||||
"input[name='areaType']:checked")
|
||||
.val() == 1) {//areaISP
|
||||
$("#areaIsp").removeClass(
|
||||
"hidden");
|
||||
} else if ($(
|
||||
"input[name='areaType']:checked")
|
||||
.val() == 0) {//areaIp
|
||||
$("#areaIp").removeClass(
|
||||
"hidden");
|
||||
}
|
||||
} else {
|
||||
$(".areaType").addClass(
|
||||
"hidden");
|
||||
$("#areaIp").addClass("hidden");
|
||||
$("#areaIsp")
|
||||
.addClass("hidden");
|
||||
}
|
||||
});
|
||||
$("select[name$='ipType']").on("change", function() {
|
||||
switchIpType($(this));
|
||||
});
|
||||
$("input[name='areaType']").on('change', function() {
|
||||
var val = $(this).val();
|
||||
if ($(this).is(":visible")) {
|
||||
if (val == 0) {
|
||||
$("#areaIp").removeClass("hidden");
|
||||
$("#areaIsp").addClass("hidden");
|
||||
} else {
|
||||
$("#areaIsp").removeClass("hidden");
|
||||
$("#areaIp").addClass("hidden");
|
||||
}
|
||||
} else {
|
||||
$("#areaIsp").addClass("hidden");
|
||||
$("#areaIp").addClass("hidden");
|
||||
}
|
||||
});
|
||||
$("#cancel").on("click", function() {
|
||||
window.history.back();
|
||||
});
|
||||
@@ -101,10 +48,23 @@
|
||||
},
|
||||
submitHandler : function(form) {
|
||||
//loading('onloading...');
|
||||
//代表所有业务都隐藏了,提示必须增加一种业务数据
|
||||
if($(".boxSolid").length ==$(".boxSolid.hidden").length){
|
||||
top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
|
||||
return;
|
||||
}
|
||||
//代表所有区域都隐藏了,提示必须增加个区域信息
|
||||
if($("input[name='isAreaEffective']:checked").val()==1 && $(".container-fluid:visible").size()==0){
|
||||
if($("#areaIsp").hasClass("hidden")) $("#areaIp").find(".glyphicon-plus").click();
|
||||
if($("#areaIp").hasClass("hidden")) $("#areaIsp").find(".glyphicon-plus").click();
|
||||
top.$.jBox.tip("<spring:message code='one_more_area'/>", "<spring:message code='info'/>");
|
||||
return;
|
||||
}
|
||||
//将disable属性的元素删除
|
||||
$(".disabled").each(function(){
|
||||
$(this).remove();
|
||||
});
|
||||
|
||||
form.submit();
|
||||
},
|
||||
errorContainer : "#messageBox",
|
||||
|
||||
Reference in New Issue
Block a user