特定服务增加业务类别
基础协议,app策略以及app特征点击选择时展示业务类别的树
This commit is contained in:
@@ -81,6 +81,14 @@
|
||||
$(this).addClass("hidden");
|
||||
$(this).find("[name='parent.specServiceId']").removeAttr("name");
|
||||
$(this).find("[name='parent.specServiceName']").removeAttr("name");
|
||||
$(this).find("[name='businessType']").removeAttr("name");
|
||||
}else{
|
||||
var cfgType=$(this).attr("cfgType");
|
||||
if("${specificServiceCfg.parent.specServiceId}"&& "${specificServiceCfg.parent.specServiceId}"!="0"){
|
||||
$("#businessType"+cfgType).parents(".businessType").addClass("hidden");
|
||||
}else{
|
||||
$("#businessType"+cfgType).parents(".businessType").removeClass("hidden");
|
||||
}
|
||||
}
|
||||
});
|
||||
$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
|
||||
@@ -92,6 +100,15 @@
|
||||
$(this).addClass("hidden");
|
||||
$(this).find("[name='parent.specServiceId']").removeAttr("name");
|
||||
$(this).find("[name='parent.specServiceName']").removeAttr("name");
|
||||
$(this).find("[name='businessType']").removeAttr("name");
|
||||
}else{
|
||||
var cfgType=$(this).attr("cfgType");
|
||||
if("${specificServiceCfg.parent.specServiceId}"&& "${specificServiceCfg.parent.specServiceId}"!="0"){
|
||||
$("#businessType"+cfgType).parents(".businessType").addClass("hidden");
|
||||
}else{
|
||||
$("#businessType"+cfgType).parents(".businessType").removeClass("hidden");
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
if($("[name='cfgType']").val()==1){
|
||||
@@ -113,13 +130,25 @@
|
||||
$("[name=cfgType]").val(cfgType);
|
||||
$(".cfgType").each(function(){
|
||||
if($(this).attr("cfgType")==cfgType){
|
||||
$(this).removeClass("hidden");
|
||||
$("#specificServiceCfg"+cfgType+"Id").attr("name","parent.specServiceId");
|
||||
$("#specificServiceCfg"+cfgType+"Name").attr("name","parent.specServiceName");
|
||||
$("#businessType"+cfgType).attr("name","businessType");
|
||||
if($(this).hasClass("businessType")){
|
||||
var parentId=$("#specificServiceCfg"+cfgType+"Id").val();
|
||||
if(parentId!=0){
|
||||
$(this).addClass("hidden");
|
||||
}else{
|
||||
$(this).removeClass("hidden");
|
||||
}
|
||||
}else{
|
||||
$(this).removeClass("hidden");
|
||||
}
|
||||
|
||||
}else{
|
||||
$(this).addClass("hidden");
|
||||
$(this).find("[name='parent.specServiceId']").removeAttr("name");
|
||||
$(this).find("[name='parent.specServiceName']").removeAttr("name");
|
||||
$(this).find("[name='businessType']").removeAttr("name");
|
||||
}
|
||||
});
|
||||
if(cfgType==1){
|
||||
@@ -136,6 +165,15 @@
|
||||
$(".protocol_desc").html('<spring:message code="protocol_desc"/>:');
|
||||
}
|
||||
});
|
||||
$("#specificServiceCfg1Id,#specificServiceCfg2Id,#specificServiceCfg3Id").on("change",function(){
|
||||
var cfgType=$(this).parents(".cfgType").attr("cfgType");
|
||||
if($(this).val()==0){
|
||||
$("#businessType"+cfgType).parents(".businessType").removeClass("hidden");
|
||||
}else{
|
||||
$("#businessType"+cfgType).selectpicker("val","");
|
||||
$("#businessType"+cfgType).parents(".businessType").addClass("hidden");
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
@@ -197,6 +235,49 @@
|
||||
</div>
|
||||
<div for="parent.specServiceName"></div>
|
||||
</div>
|
||||
<div class="form-group cfgType businessType
|
||||
<c:if test='${specificServiceCfg.parent.specServiceId ne null or specificServiceCfg.parent.specServiceId ne 0}'>hidden</c:if>" cfgType="${dict.itemCode}">
|
||||
<c:if test="${dict.itemCode==1}">
|
||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="app_business_type"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<select id="businessType1" name="businessType" class="form-control required">
|
||||
<option value=""><spring:message code="select"/></option>
|
||||
<c:forEach items="${fns:getDictList('APP_BUSINESS_TYPE')}" var="dict">
|
||||
<option value="${dict.itemCode}"
|
||||
<c:if test="${dict.itemCode==specificServiceCfg.businessType}">selected</c:if>
|
||||
><spring:message code="${dict.itemValue}"/></option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${dict.itemCode==3}">
|
||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="basic_protocol_business_type"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<select id="businessType3" name="businessType" class="form-control required">
|
||||
<option value=""><spring:message code="select"/></option>
|
||||
<c:forEach items="${fns:getDictList('BASIC_PROTOCOL_BUSINESS_TYPE')}" var="dict">
|
||||
<option value="${dict.itemCode}"
|
||||
<c:if test="${dict.itemCode==specificServiceCfg.businessType}">selected</c:if>
|
||||
><spring:message code="${dict.itemValue}"/></option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${dict.itemCode==2}">
|
||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="tunnel_behavior_business_type"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<select id="businessType2" name="businessType" class="form-control required">
|
||||
<option value=""><spring:message code="select"/></option>
|
||||
<c:forEach items="${fns:getDictList('TUNNEL_BEHAV_BUSINESS_TYPE')}" var="dict">
|
||||
<option value="${dict.itemCode}"
|
||||
<c:if test="${dict.itemCode==specificServiceCfg.businessType or (specificServiceCfg.parent.specServiceId eq null or specificServiceCfg.parent.specServiceId eq 0)}">selected</c:if>
|
||||
><spring:message code="${dict.itemValue}"/></option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
</c:if>
|
||||
<div for="businessType"></div>
|
||||
</div>
|
||||
</c:forEach>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label protocol_code"><font color="red">*</font><spring:message code="protocol_code"/>:</label>
|
||||
@@ -219,6 +300,7 @@
|
||||
</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>
|
||||
<div class="col-md-4">
|
||||
@@ -248,7 +330,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<shiro:hasPermission name="specific:service:edit"><button type="submit" class="btn btn-circle blue"><spring:message code="submit"/></button></shiro:hasPermission>
|
||||
<button type="button" class="btn btn-circle grey-salsa btn-outline" onclick="history.go(-1)"><spring:message code="cancel"/></button>
|
||||
<button type="button" class="btn btn-circle grey-salsa btn-outline" id="cancel" ><spring:message code="cancel"/></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user