标签:ids ade 逗号 input close false value orm span
$(function() {
resourceTree = $(‘#resourceTree‘).tree({//json格式
url : ‘‘,
parentField : ‘pid‘,
//lines : true,
checkbox : true,
onClick : function(node) {
},
onLoadSuccess : function(node, data) {
var ids = $.stringToList(‘${info.ids}‘);//当前页面返回逗号隔开
if (ids.length > 0) {
for ( var i = 0; i < ids.length; i++) {
if (resourceTree.tree(‘find‘, ids[i])) {
resourceTree.tree(‘check‘, resourceTree.tree(‘find‘, ids[i]).target);
}
}
}
$(‘#‘).layout(‘panel‘, ‘west‘).panel(‘setTitle‘, $.formatString(‘‘, ‘${info.name}‘));
parent.$.messager.progress(‘close‘);
},
cascadeCheck : false
});
<form id="form" method="post">
<input name="id" type="hidden" class="span2" value="${info.id}" readonly="readonly">
<ul id="resourceTree"></ul>
<input id="resourceIds" name="resourceIds" type="hidden" />
</form>
标签:ids ade 逗号 input close false value orm span
原文地址:https://www.cnblogs.com/donotgiveup/p/8794691.html