(1)tag根节点替换root_node
(2)特定服务app列名替换
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8" %>
|
||||
laow<%@ page contentType="text/html;charset=UTF-8" %>
|
||||
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
||||
<html>
|
||||
<head>
|
||||
@@ -92,7 +92,9 @@
|
||||
$(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"/>:');
|
||||
$(".protocol_desc").html('<font color="red">*</font><spring:message code="app_desc"/>:');
|
||||
}else{
|
||||
$(".cfgType").each(function(){
|
||||
if($(this).attr("cfgType")!=$("[name='cfgType']").val()){
|
||||
@@ -104,6 +106,15 @@
|
||||
$(this).find("input").unbind("click");
|
||||
}
|
||||
});
|
||||
if($("[name='cfgType']").val()==1){
|
||||
$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
|
||||
$(".protocol_name").html('<font color="red">*</font><spring:message code="app_name"/>:');
|
||||
$(".protocol_desc").html('<font color="red">*</font><spring:message code="app_desc"/>:');
|
||||
}else{
|
||||
$(".protocol_code").html('<font color="red">*</font><spring:message code="protocol_code"/>:');
|
||||
$(".protocol_name").html('<font color="red">*</font><spring:message code="protocol_name"/>:');
|
||||
$(".protocol_desc").html('<font color="red">*</font><spring:message code="protocol_desc"/>:');
|
||||
}
|
||||
}
|
||||
$(".tabs-left li").on("click",function(){
|
||||
var cfgType=$(this).attr("cfgType");
|
||||
@@ -118,6 +129,15 @@
|
||||
$(this).find("[name='parent.specServiceName']").removeAttr("name");
|
||||
}
|
||||
});
|
||||
if(cfgType==1){
|
||||
$(".protocol_code").html('<font color="red">*</font><spring:message code="app_code"/>:');
|
||||
$(".protocol_name").html('<font color="red">*</font><spring:message code="app_name"/>:');
|
||||
$(".protocol_desc").html('<font color="red">*</font><spring:message code="app_desc"/>:');
|
||||
}else{
|
||||
$(".protocol_code").html('<font color="red">*</font><spring:message code="protocol_code"/>:');
|
||||
$(".protocol_name").html('<font color="red">*</font><spring:message code="protocol_name"/>:');
|
||||
$(".protocol_desc").html('<font color="red">*</font><spring:message code="protocol_desc"/>:');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -164,30 +184,30 @@
|
||||
</c:forEach>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<c:set var="fatherName"><spring:message code="root_node"/></c:set>
|
||||
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
||||
<c:set var="fatherName"><spring:message code="${dict.itemValue}"/></c:set>
|
||||
<div class="form-group cfgType" cfgType="${dict.itemCode}">
|
||||
<label class="col-md-3 control-label"><spring:message code="superior_config"/>:</label>
|
||||
<label class="col-md-3 control-label"><spring:message code="root_node"/>:</label>
|
||||
<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="" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${dict.itemCode}" extId="${specificServiceCfg.specServiceId}" cssClass="required form-control"/>
|
||||
<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"/>
|
||||
</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="" 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>
|
||||
</c:forEach>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="protocol_code"/>:</label>
|
||||
<label class="col-md-3 control-label protocol_code"><font color="red">*</font><spring:message code="protocol_code"/>:</label>
|
||||
<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>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="protocol_name"/>:</label>
|
||||
<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>
|
||||
@@ -217,7 +237,7 @@
|
||||
</div>
|
||||
</div> --%>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><spring:message code="protocol_desc"/>:</label>
|
||||
<label class="col-md-3 control-label protocol_desc"><spring:message code="protocol_desc"/>:</label>
|
||||
<div class="col-md-4">
|
||||
<form:textarea path="specServiceDesc" htmlEscape="false" maxlength="64" class="form-control"/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user