jstree 中文帮助文档:http://blog.csdn.net/qq_24472595/article/details/70053863#search
创建后的没有层次的树如下
树的源码和树的结构如下:
@At
@Ok("json")
@RequiresPermissions("o2omarket.ProcurementCar")
public Object tree(@Param("pid") String pid) {
// List list = cmsChannelService.query(Cnd.where("parentId", "=", Strings.sBlank(pid)).asc("location").asc("path"));
List list = null;
if (pid != null && pid.toLowerCase().indexOf("shopsearch") != -1) {
if (pid.split(",") != null && pid.split(",").length > 1){
SqlExpressionGroup e1 = Cnd.exps("fdShopName", "LIKE", "%" + pid.split(",")[1]+"%").and("1", "=", "1");
list = shopService.query(Cnd.where(e1));
}
else
list = shopService.query(Cnd.where("1","=","1"));
}
else
list = shopService.query(Cnd.where("1","=","1"));
List
<%
layout("/layouts/platform.html"){
%>
选择商家
<%}%>
创建有层次的树如下:
<% layout("/layouts/platform.html"){ %>
选择商家
<%}%>
@At
@Ok("json")
@RequiresPermissions("o2omarket.monthWarranty")
public Object tree(@Param("pid") String pid ,@Param("site") String site) {
List