修正分类、性质、标签字典只查询非叶子节点的错误
Signed-off-by: zhangwei <zhangwei@intranet.com>
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
</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"
|
||||
title="type" url="/basics/serviceDictInfo/treeData?itType=1&isShowLeaf=true" 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"/>>
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
</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"
|
||||
title="attribute" url="/basics/serviceDictInfo/treeData?itType=2&isShowLeaf=true" 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">
|
||||
@@ -134,7 +134,7 @@
|
||||
</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"
|
||||
title="label" url="/basics/serviceDictInfo/treeData?itType=3&isShowLeaf=true" 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">
|
||||
|
||||
@@ -185,7 +185,7 @@ label.errorShow {
|
||||
<div class="col-md-4">
|
||||
<c:set var="fatherName"><spring:message code="root_node"/></c:set>
|
||||
<sys:treeselect id="serviceDictInfo" name="parent.serviceDictId" value="${serviceDictInfo.parent.serviceDictId}" labelName="parent.itemValue" labelValue="${serviceDictInfo.parent.serviceDictId eq '0'?fatherName:fns:getServiceDictInfoById(serviceDictInfo.parent.serviceDictId).itemValue}"
|
||||
title="菜单" url="/basics/serviceDictInfo/treeData?itType=${itType}" extId="${serviceDictInfo.serviceDictId}" cssClass="required form-control"/>
|
||||
title="菜单" url="/basics/serviceDictInfo/treeData?itType=${itType}" cssClass="required form-control"/>
|
||||
<label class="errorShow" style="display: none;"><spring:message code="isLevelNoSure"/></label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
}
|
||||
}
|
||||
$(document).ready(function(){
|
||||
$.get("${ctx}${url}${fn:indexOf(url,'?')==-1?'?':'&'}&extId=${extId}&isAll=${isAll}&module=${module}&t="
|
||||
$.get("${ctx}${url}${fn:indexOf(url,'?')==-1?'?':'&'}&extId=${extId}&selectIds: $('#${id}Id').val()&isAll=${isAll}&module=${module}&t="
|
||||
+ new Date().getTime(), function(zNodes){
|
||||
// 初始化树结构
|
||||
//处理根节点国际化
|
||||
@@ -85,7 +85,7 @@
|
||||
for(var i=0; i<ids.length; i++) {
|
||||
var node = tree.getNodeByParam("id", (type==3?"u_":"")+ids[i]);
|
||||
//如果节点id与排除id相同,不被选中
|
||||
if(node.id!=${extId}){
|
||||
if(node.id!="${extId}"){
|
||||
if("${checked}" == "true"){
|
||||
try{tree.checkNode(node, true, true);}catch(e){}
|
||||
tree.selectNode(node, false);
|
||||
|
||||
Reference in New Issue
Block a user