修改配置基本信息中的分类、性质、标签,使用树状菜单结构显示。
Signed-off-by: zhangwei <zhangwei@intranet.com>
This commit is contained in:
@@ -28,7 +28,20 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><spring:message code="type"/></label>
|
||||
<div class="col-md-6">
|
||||
<select name="classify" multiple class="selectpicker form-control" title=<spring:message code="select"/>>
|
||||
<c:set var="classifyValue" value=""></c:set>
|
||||
<c:forEach items="${fn:split(_cfg.classify,',')}" var="_classify" varStatus="status">
|
||||
<c:if test="${status.index+1 eq 1}">
|
||||
<c:set var="classifyValue" value="${fns:getServiceDictInfoById(_classify).itemValue}"></c:set>
|
||||
</c:if>
|
||||
<c:if test="${status.index+1 ne 1}">
|
||||
<c:set var="classifyValue" value="${classifyValue},${fns:getServiceDictInfoById(_classify).itemValue}"></c:set>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<sys:treeselect id="classify" name="classify" value="${_cfg.classify}" labelName="classifyName" extId="0"
|
||||
labelValue="${classifyValue}"
|
||||
title="type" url="/basics/serviceDictInfo/treeData?itType=1" notAllowSelectRoot="true" allowClear="true" notAllowSelectParent="false"
|
||||
checked="true" cssClass="required form-control" checkedPS="" unCheckedPS=""/>
|
||||
<%-- <select name="classify" multiple class="selectpicker form-control" title=<spring:message code="select"/>>
|
||||
|
||||
<c:forEach items="${fls}" var="fl">
|
||||
<c:choose>
|
||||
@@ -44,16 +57,16 @@
|
||||
${fl.itemValue}
|
||||
</option>
|
||||
</c:if>
|
||||
<%-- <option value="${fl.serviceDictId}"
|
||||
<option value="${fl.serviceDictId}"
|
||||
<c:forEach items="${fn:split(_cfg.classify,',')}" var="_classify">
|
||||
<c:if test="${fl.isValid==0}">disabled="disabled"</c:if>
|
||||
<c:if test="${fn:trim(fl.serviceDictId) eq _classify}">selected</c:if>
|
||||
</c:forEach>
|
||||
>${fl.itemValue}</option> --%>
|
||||
>${fl.itemValue}</option>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</select> --%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -65,7 +78,20 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><spring:message code="attribute"/></label>
|
||||
<div class="col-md-6">
|
||||
<select name="attribute" multiple class="selectpicker form-control" title=<spring:message code="select"/>>
|
||||
<c:set var="attributeValue" value=""></c:set>
|
||||
<c:forEach items="${fn:split(_cfg.attribute,',')}" var="_attribute" varStatus="status">
|
||||
<c:if test="${status.index+1 eq 1}">
|
||||
<c:set var="attributeValue" value="${fns:getServiceDictInfoById(_attribute).itemValue}"></c:set>
|
||||
</c:if>
|
||||
<c:if test="${status.index+1 ne 1}">
|
||||
<c:set var="attributeValue" value="${attributeValue},${fns:getServiceDictInfoById(_attribute).itemValue}"></c:set>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<sys:treeselect id="attribute" name="attribute" value="${_cfg.attribute}" labelName="attributeName" extId="0"
|
||||
labelValue="${attributeValue}"
|
||||
title="attribute" url="/basics/serviceDictInfo/treeData?itType=2" notAllowSelectRoot="true" allowClear="true" notAllowSelectParent="false"
|
||||
checked="true" cssClass="required form-control" checkedPS="" unCheckedPS=""/>
|
||||
<%-- <select name="attribute" multiple class="selectpicker form-control" title=<spring:message code="select"/>>
|
||||
<c:forEach items="${xzs}" var="xz">
|
||||
<c:choose>
|
||||
<c:when test="${_cfg.attribute==null or _cfg.attribute==''}">
|
||||
@@ -80,16 +106,16 @@
|
||||
${xz.itemValue}
|
||||
</option>
|
||||
</c:if>
|
||||
<%-- <c:forEach items="${fn:split(_cfg.attribute,',')}" var="_attribute">
|
||||
<c:forEach items="${fn:split(_cfg.attribute,',')}" var="_attribute">
|
||||
<option value="${xz.serviceDictId}"
|
||||
<c:if test="${xz.isValid==0}">disabled="disabled"</c:if>
|
||||
<c:if test="${fn:trim(xz.serviceDictId) eq _attribute}">selected</c:if>
|
||||
>${xz.itemValue}</option>
|
||||
</c:forEach> --%>
|
||||
</c:forEach>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</select> --%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -97,7 +123,20 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><spring:message code="label"/></label>
|
||||
<div class="col-md-6">
|
||||
<select name="lable" multiple class="selectpicker form-control" title=<spring:message code="select"/>>
|
||||
<c:set var="lableValue" value=""></c:set>
|
||||
<c:forEach items="${fn:split(_cfg.lable,',')}" var="_lable" varStatus="status">
|
||||
<c:if test="${status.index+1 eq 1}">
|
||||
<c:set var="lableValue" value="${fns:getServiceDictInfoById(_lable).itemValue}"></c:set>
|
||||
</c:if>
|
||||
<c:if test="${status.index+1 ne 1}">
|
||||
<c:set var="lableValue" value="${lableValue},${fns:getServiceDictInfoById(_lable).itemValue}"></c:set>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<sys:treeselect id="lable" name="lable" value="${_cfg.lable}" labelName="lableName" extId="0"
|
||||
labelValue="${lableValue}"
|
||||
title="label" url="/basics/serviceDictInfo/treeData?itType=3" notAllowSelectRoot="true" allowClear="true" notAllowSelectParent="false"
|
||||
checked="true" cssClass="required form-control" checkedPS="" unCheckedPS=""/>
|
||||
<%-- <select name="lable" multiple class="selectpicker form-control" title=<spring:message code="select"/>>
|
||||
<c:forEach items="${lables}" var="lable">
|
||||
<c:choose>
|
||||
<c:when test="${_cfg.lable==null or _cfg.lable==''}">
|
||||
@@ -112,17 +151,17 @@
|
||||
${lable.itemValue}
|
||||
</option>
|
||||
</c:if>
|
||||
<%-- <c:forEach items="${fn:split(_cfg.lable,',')}" var="_lable">
|
||||
<c:forEach items="${fn:split(_cfg.lable,',')}" var="_lable">
|
||||
<option value="${lable.serviceDictId}"
|
||||
<c:if test="${lable.isValid==0}">disabled="disabled"</c:if>
|
||||
<c:if test="${fn:trim(lable.serviceDictId) eq _lable}">selected</c:if>
|
||||
>${lable.itemValue}</option>
|
||||
</c:forEach> --%>
|
||||
</c:forEach>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</c:forEach>
|
||||
</select>
|
||||
</select> --%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user