(1)app特征表单,基础协议,加密隧道行为tree根节点添加tittle
(2)特定服务表单验证位置调整
This commit is contained in:
@@ -66,12 +66,7 @@
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
errorPlacement: function(error, element) {
|
||||
$("#messageBox").text("<spring:message code='enter_error'/>");
|
||||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||||
error.appendTo(element.parent().parent());
|
||||
} else {
|
||||
error.insertAfter(element);
|
||||
}
|
||||
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
|
||||
}
|
||||
});
|
||||
//if("${specificServiceCfg.parentType}"){
|
||||
@@ -87,10 +82,6 @@
|
||||
$(this).find("[name='parent.specServiceId']").removeAttr("name");
|
||||
$(this).find("[name='parent.specServiceName']").removeAttr("name");
|
||||
}
|
||||
if($(this).attr("cfgType")==3){
|
||||
$(this).find("input").unbind("click");
|
||||
$(this).find("a").unbind("click");
|
||||
}
|
||||
});
|
||||
$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
|
||||
$(".protocol_name").html('<font color="red">*</font><spring:message code="app_name"/>:');
|
||||
@@ -102,9 +93,6 @@
|
||||
$(this).find("[name='parent.specServiceId']").removeAttr("name");
|
||||
$(this).find("[name='parent.specServiceName']").removeAttr("name");
|
||||
}
|
||||
if($(this).attr("cfgType")==3){
|
||||
$(this).find("input").unbind("click");
|
||||
}
|
||||
});
|
||||
if($("[name='cfgType']").val()==1){
|
||||
$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
|
||||
@@ -127,8 +115,9 @@
|
||||
if($(this).attr("cfgType")==cfgType){
|
||||
$(this).removeClass("hidden");
|
||||
$("#specificServiceCfg"+cfgType+"Id").attr("name","parent.specServiceId");
|
||||
$("#specificServiceCfg"+cfgType+"Name").attr("name","parent.specServiceName");
|
||||
}else{
|
||||
$(this).addClass("hidden").addClass("disable");
|
||||
$(this).addClass("hidden");
|
||||
$(this).find("[name='parent.specServiceId']").removeAttr("name");
|
||||
$(this).find("[name='parent.specServiceName']").removeAttr("name");
|
||||
}
|
||||
@@ -199,13 +188,14 @@
|
||||
<div class="col-md-4">
|
||||
<c:if test="${empty specificServiceCfg.specServiceId}">
|
||||
<sys:treeselect id="${'specificServiceCfg'.concat(dict.itemCode)}" name="parent.specServiceId" value="${specificServiceCfg.parent.specServiceId}" labelName="parent.specServiceName" labelValue="${fatherName}" title="${dict.itemValue}"
|
||||
url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${dict.itemCode}" extId="${specificServiceCfg.specServiceId}" cssClass="required form-control"/>
|
||||
url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${dict.itemCode}" extId="${specificServiceCfg.specServiceId}" cssClass="required form-control"/>
|
||||
</c:if>
|
||||
<c:if test="${not empty specificServiceCfg.specServiceId}">
|
||||
<sys:treeselect id="${'specificServiceCfg'.concat(dict.itemCode)}" name="parent.specServiceId" value="${specificServiceCfg.cfgType eq dict.itemCode?specificServiceCfg.parent.specServiceId:0}" labelName="parent.specServiceName" labelValue="${(specificServiceCfg.cfgType eq dict.itemCode and specificServiceCfg.parent.specServiceId ne '0')?fns:getBySpecServiceId(specificServiceCfg.parent.specServiceId).specServiceName:fatherName}"
|
||||
title="${dict.itemValue}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${dict.itemCode}" extId="${specificServiceCfg.specServiceId}" cssClass="required form-control"/>
|
||||
title="${dict.itemValue}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${dict.itemCode}" extId="${specificServiceCfg.specServiceId}" cssClass="required form-control"/>
|
||||
</c:if>
|
||||
</div>
|
||||
<div for="parent.specServiceName"></div>
|
||||
</div>
|
||||
</c:forEach>
|
||||
<div class="form-group">
|
||||
@@ -213,18 +203,21 @@
|
||||
<div class="col-md-4">
|
||||
<input id="specServiceCode" name="specServiceCode" maxlength="50" range="[0,2147483647]" class="form-control required digits specServiceCodeCheck" value="${specificServiceCfg.specServiceCode}" ctx="${ctx}"/>
|
||||
</div>
|
||||
<div for="specServiceCode"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label protocol_name"><font color="red">*</font><spring:message code="protocol_name"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<form:input path="specServiceName" htmlEscape="false" maxlength="64" class="form-control required noBlankSpace"/>
|
||||
</div>
|
||||
<div for="specServiceName"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label hidden"><spring:message code="group_id"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<form:input path="groupId" htmlEscape="false" maxlength="50" range="[0,2147483647]" class="form-control digits hidden" placeholder="0"/>
|
||||
</div>
|
||||
<div for="groupId"></div>
|
||||
</div>
|
||||
<%-- <div class="form-group">
|
||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
||||
@@ -249,6 +242,7 @@
|
||||
<div class="col-md-4">
|
||||
<form:textarea path="specServiceDesc" htmlEscape="false" maxlength="64" class="form-control"/>
|
||||
</div>
|
||||
<div for="specServiceDesc"></div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user