zTree静态树与动态树的用法——(七)
0.【简介】
zTree 是利用 JQuery 的核心代码,实现一套能完成大部分常用功能的 Tree 插件
- 兼容 IE、FireFox、Chrome 等浏览器
- 在一个页面内可同时生成多个 Tree 实例
- 支持 JSON 数据
- 支持一次性静态生成 和 Ajax 异步加载 两种方式
- 支持多种事件响应及反馈
- 支持 Tree 的节点移动、编辑、删除
- 支持任意更换皮肤 / 个性化图标(依靠css)
- 支持极其灵活的 checkbox 或 radio 选择功能
- 简单的参数配置实现 灵活多变的功能
zTree博客地址:http://ztreeapi.iteye.com/
目前zTree作者已经入驻ItEye,如果有什么需要学习的完全可以到作者博客上去学习,而且zTree的版本已经更新了很多次了,下面的内容跟最新版估计会有很大出入,我不能保证下面的教程在最新版可用。zTree真的是非常强大的树组件,希望能对大家有所帮助!
在官网能够下载到zTree的源码、实例和API,其中作者pdf的API写得非常详细(中文的哦)
【部分函数和属性介绍】
- 核心:zTree(setting, [zTreeNodes])
这个函数接受一个JSON格式的数据对象setting和一个JSON格式的数据对象zTreeNodes,从而建立 Tree。
- 核心参数:setting
zTree 的参数配置都在这里完成,简单的说:树的样式、事件、访问路径等都在这里配置
setting举例:
var setting = {
showLine: true,
checkable: true
};
因为参数太多,具体参数详见zTreeAPI
- 核心参数:zTreeNodes
zTree 的全部节点数据集合,采用由JSON对象组成的数据结构,简单的说:这里使用Json格式保存了树的所有信息
zTreeNodes的格式分为两种:利用Json格式嵌套体现父子关系和Array简单格式
①带有父子关系的标准 zTreeNodes 举例:
var zTreeNodes = [
{"id":1, "name":"test1", "nodes":[
{"id":11, "name":"test11", "nodes":[
{"id":111, "name":"test111"}
]},
{"id":12, "name":"test12"}
]},
......
];
②带有父子关系的简单 Array 格式(isSimpleData)的 zTreeNodes 举例:
var treeNodes = [
{"id":1, "pId":0, "name":"test1"},
{"id":11, "pId":1, "name":"test11"},
{"id":12, "pId":1, "name":"test12"},
{"id":111, "pId":11, "name":"test111"},
......
];
③在进入页面时生成树结构:
var zTree;
$(function() {
zTree = $("#tree").zTree(setting, treeNodes);
});
1.静态树用法:
<!DOCTYPE html>
<HTML> <HEAD>
<TITLE> ZTREE DEMO - Simple Data</TITLE>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../css/demo.css" type="text/css">
<link rel="stylesheet" href="../../../css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="../../../js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../../../js/jquery.ztree.core.js"></script>
<!-- <script type="text/javascript" src="../../../js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="../../../js/jquery.ztree.exedit.js"></script>-->
<SCRIPT type="text/javascript">
<!--
var setting = {
data: {
simpleData: {
enable: true
}
}
}; var zNodes = [{
id: 1,
pId: 0,
name: "父节点1 - 展开",
open: true
},
{
id: 11,
pId: 1,
name: "父节点11 - 折叠"
},
{
id: 111,
pId: 11,
name: "叶子节点111"
},
{
id: 112,
pId: 11,
name: "叶子节点112"
},
{
id: 113,
pId: 11,
name: "叶子节点113"
},
{
id: 114,
pId: 11,
name: "叶子节点114"
},
{
id: 12,
pId: 1,
name: "父节点12 - 折叠"
},
{
id: 121,
pId: 12,
name: "叶子节点121"
},
{
id: 122,
pId: 12,
name: "叶子节点122"
},
{
id: 123,
pId: 12,
name: "叶子节点123"
},
{
id: 124,
pId: 12,
name: "叶子节点124"
},
{
id: 13,
pId: 1,
name: "父节点13 - 没有子节点",
isParent: true
},
{
id: 2,
pId: 0,
name: "父节点2 - 折叠"
},
{
id: 21,
pId: 2,
name: "父节点21 - 展开",
open: true
},
{
id: 211,
pId: 21,
name: "叶子节点211"
}
]; $(document).ready(function() {
$.fn.zTree.init($("#treeDemo"), setting, zNodes);
});
//-->
</SCRIPT>
</HEAD> <BODY>
<div class="content_wrap">
<div class="zTreeDemoBackground left">
<ul id="treeDemo" class="ztree"></ul>
</div> </div>
</BODY> </HTML>
效果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAANYA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kF0ZqWb4p5/ef0ny1zLGgaYKkHQbspupqnYBW/CqIK+gefrWllCGv8WSwuGhTUzm1NA1+KF8f2/RoxAO4EIgUBzyAFAWGQgoAwSEFAGKQgIEyNUxD9Z1AuNU5B1vvPWB269ngoyFj/GatDBxAPBdnqP2N16CDirSCD/WcJrA4dDLwVZLD/LIHVoYOBt4IM9p+LWB06QHgryGj/GatDBwVvBVnrP2N16IDhrSBT/WesDh08ajwvGOz+M1aHDiI1vjrCcP8Zq0P7BGoKgDBQEBAGCgLCQEFAGCgICAMFAWGgICAMFASEgYKAMFAQEAYKAsJAQUAYKAgIAwUBYaAgIAwUBISBgoAwUBAQBgoCwkBBQBgoCAgDBQFhoCAgDBQEhIGCgDBQEBAGCgLCQEFAmP8DfDiXbC4Yc5wAAAAASUVORK5CYII=" alt="" />
2.动态树(JSON生成树)
①后台代码封装简单格式Json数据:
public void doGetPrivilegeTree() throws IOException{
String s1 = "{id:1, pId:0, name:\"test1\" , open:true}";
String s2 = "{id:2, pId:1, name:\"test2\" , open:true}";
String s3 = "{id:3, pId:1, name:\"test3\" , open:true}";
String s4 = "{id:4, pId:2, name:\"test4\" , open:true}";
List<String> lstTree = new ArrayList<String>();
lstTree.add(s1);
lstTree.add(s2);
lstTree.add(s3);
lstTree.add(s4);
//利用Json插件将Array转换成Json格式
response.getWriter().print(JSONArray.fromObject(lstTree).toString());
}
②页面使用Ajax获取zTreeNodes数据再生成树
JS代码:
var setting = {
isSimpleData : true, //数据是否采用简单 Array 格式,默认false
treeNodeKey : "id", //在isSimpleData格式下,当前节点id属性
treeNodeParentKey : "pId", //在isSimpleData格式下,当前节点的父节点id属性
showLine : true, //是否显示节点间的连线
checkable : true //每个节点上是否显示 CheckBox
}; var zTree;
var treeNodes; $(function(){
$.ajax({
async : false,
cache:false,
type: 'POST',
dataType : "json",
url: root+"/ospm/loginInfo/doGetPrivilegeTree.action",//请求的action路径
error: function () {//请求失败处理函数
alert('请求失败');
},
success:function(data){ //请求成功后处理函数。
alert(data);
treeNodes = data; //把后台封装好的简单Json格式赋给treeNodes
}
}); zTree = $("#tree").zTree(setting, treeNodes);
});
③最后显示效果
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI4AAABZCAIAAABnpIvIAAAgAElEQVR4nO2995dc9ZUvytx175r3/ov31ntrzR0GhKRWRhHFbrUyEhiMx/bM3Ikee4xtsMdhPA4E2QIBwgJssIfBGBmRFAAhclJWtzoodK6urq5cdeI37b0/74dvdZCMMDbBmne911m9qk+dSudz9v7u8Nn7XIZxYYJYMEGo8Xd8YwGLiGCSiAAMsIAJRGALJrCI+MMbm3+NAA4wAAGM9zhCAAEIoLHHDnCNPSxgBjFIYP0GODRe3zjef5ux7WJysWP4ItslJJdNPBT40zj2eGy3iAjGYZL3OK0Tv03ABDiIa/z1ODuBI48kWMaw/02oxk56A8zx4wA0vsPYR8mkV7nG9/7gJ/diR16iIHm57LcfMkkm4+S1ZOzCh0eCwA7swBbkQA4kcGOq4Bqgng+ViDDEK01Db4QEFmARGsMV4IlPAsG/hgUM8R/0vxFU8rtsBFhAAxawEAtxY6eM4AjOwTKMNI7ym2soAL8PVFZgIP4tx0Cisc/zGzW0SkQYlqEcEosUcL/x697/1H94aD9R+T2hGl9LxjZxjQudBCyN3eNn12PqDzwPKo+TG0Oa/Tokdnzla2gLTZjUMQMoAstQjIgREsI/QnVxOU8zMLaNrRmTIZBJ53jCAELGULUNJIUh0nBk7IQWgiHk3ZUx8QZYA1qQCCJBcj5UH8RN+DBuyB9A3g+q9xUGM9hDcqFLcPE38g7Ce+Dkt4a2sEAIE4vc+DZZkxsvEhiIt7QXfND/f6ECADAzO2cAOGcaGjB2XTPZiX+dhYphlWjtvTilWYAoNkzjGgaWxpJlBAQooy8A1LCYMeNoAB5/jkWzcrBGFEE7KAeVuIChxpx1FmIIVOwaFpIxKZo4DyFm53+Oc455/KSzMYrIehiccyJw7veA8xOSSVrl3a1xt5sbxoec0SqZ/Fi8i8fWRXWxCkCkrAMqsTV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zl3TOnfN6rlrm6/Z0Dpj2dJpKzfOXXdD6JPuSgEwQNnaW26/54vf+dEXv/n9f/nX79/8za1f+c72L37zri98ffvN39r5re898Nd/9y8vHXzNJx3FGsCJiL/lJVnfEWuFtcAa41TqfMpeRIjEOW/AbaoCY5T/8t5FSpMIsI7SalJxYN9YoAjFen1yYkkAoy+5Dvv3EL9Q+WwFM7/77rsALBkHS6xsEvrOmGoch0BdxF+Sjdudj/duCFJlHBAKaoTE38rZEZNNSWugYzD//OtH9x14bd/+lw688PbTz77y/GuHn9z/6u49rz+79+UXXnx2ZKQHAtYEOOtSn83TigRIE2utBaw1MfkuEbC1mhi+DVtbFaUVfwNblTqAnU1936NKA4LPrDfuKt6oX8KCFXHie4T/a6RrMYnX51XKOSdgRan4ippz1loCIiY9kfseq92NlVzBUCnF1tN6II0FgC1cSlY3Sj8gX/IiGEEiTIC1NDZZ2jljiay/pRjQmB7nM+j+HqBGaQjSNPbVCutgHTu2Aqts5CnKqe9JabRNWoEz4ETYEVhgBcpocSlEs2iBs+4S61q8mIwzKcazFd4kjk8gnUxrmSBdTC7gTPorE7M8LzzwgiLQ+TsnOskBXIRlxxfZ/57PTn6r80pQct7x7/+eH0o+Fq2Cb5sVQYOPODGj/o/ye8vHBdV4vxQm+YR/lA8jH4sH6BHyuSV/V/KP/FP+N5SPRasm0zQ9Tn/Uqg8vH1dmfVyTPGwXBFt/lN9DPt4Q2Fu/ydWQP8rvLR+LARwnLY3bvT8awA8vH5cH+Ef5yOWPUP2Xkf8P8ftTsJPwUU0AAAAASUVORK5CYII=" alt="" />
3.带有点击事件的zTree(动态设置树的节点与name)
1.页面中准备树的div
<div class="user_left_tree_info">
<div class="user_left_tree_info_title">部门</div>
<div class="hr"></div>
<div class="ztree" id="treeDemo"></div>
</div>
2.页面加载时候请求树:
searchUnitTree(); /**
* 请求树信息
*/
function searchUnitTree(){
$.ajax({
type : "post",
target : "#treeDemo",
dataType : "json",
url : "searchTreeAction2.action",
success : getTree
});
} /**
* 生成树
*/
function getTree(treeList2){
var treeList3 = eval("(" + treeList2 + ")");
var setting = {
data : {
simpleData : {
enable : true,
idKey: "unitId",
pIdKey: "upUnitId",
rootPId : "10",
},
key : {
name : "unitName",
}
},
callback : {
onClick : onClick
}
};
var zNodes = treeList3; //添加 树节点的 点击事件;
var log, className = "dark";
function onClick(event, treeId, treeNode, clickFlag) {
clickOnTree(event, treeId, treeNode, clickFlag);
}
$.fn.zTree.init($("#treeDemo"), setting, zNodes); var treeObj = $.fn.zTree.getZTreeObj("treeDemo");
treeObj.expandAll(true);
} /**
* 点击树节点的同时,将该部门信息对应的部门编号,部门名称,上级部门编号,上级部门名称保存下来
*/
function clickOnTree(event, treeId, treeNode, clickFlag){
//得到该节点的部门编号和部门名字
document.getElementById("bt_unitId").value = treeNode.unitId;
document.getElementById("bt_unitName").value = treeNode.unitName;
/*alert(treeNode.unitId);
alert(treeNode.unitName);*/
if (treeNode.unitId == "10") {
//如果本节点是根节点,那么就不能执行更新和删除操作
$("#unit_change,#unit_delete").attr("disabled","disabled");
} else {
//如果本节点不是根节点,就可以执行更新和删除操作
$("#unit_change,#unit_delete").removeAttr("disabled");
//父节点
var fatherNode=treeNode.getParentNode();
/*alert(fatherNode.unitId);
alert(fatherNode.unitName);*/
//得到父节点的部门编号和部门名称
document.getElementById("bt_upUnitId").value = fatherNode.unitId;
document.getElementById("bt_upUnitName").value = fatherNode.unitName;
}
searchUnit();
} /**
* 点击一下树节点表格输出下级节点的部门信息
*/
function searchUnit() {
$.ajax({
type : "post",
dataType : "json",
url : "searchUnitByUpId.action",
data : {
upUnitId : $("#bt_unitId").val(),
},
success : showTable
});
}
3.后台传JSON串
public String searchTree(){
try {
this.treeList =unitService.getUnitTree2();
} catch (SQLException e) {
e.printStackTrace();
}
JSONArray jsonArray = JSONArray.fromObject(treeList);
this.treeList2 = jsonArray.toString();
return SUCCESS;
}
[{"upUnitId":"","unitName":"中心","unitId":"10"},{"upUnitId":"10","unitName":"人才","unitId":"10001"},{"upUnitId":"10","unitName":"项部","unitId":"10002"},{"upUnitId":"10","unitName":"成果","unitId":"10003"},{"upUnitId":"10","unitName":"SS","unitId":"10009"}]
zTree静态树与动态树的用法——(七)的更多相关文章
- 【zTree】zTree的3.5.26静态树与动态树(实用)
1.静态树: 目录结构:(css与js为下载的原文件夹)
- luogu3703 [SDOI2017]树点涂色(线段树+树链剖分+动态树)
link 你谷的第一篇题解没用写LCT,然后没观察懂,但是自己YY了一种不用LCT的做法 我们考虑对于每个点,维护一个fa,代表以1为根时候这个点的父亲 再维护一个bel,由于一个颜色相同的段一定是一 ...
- 点分治Day2 动态树分治
蒟蒻Ez3real冬令营爆炸之后滚回来更新blog... 我们看一道题 bzoj3924 ZJOI2015D1T1 幻想乡战略游戏 给一棵$n$个点的树$(n \leqslant 150000)$ 点 ...
- 动态树之LCT(link-cut tree)讲解
动态树是一类要求维护森林的连通性的题的总称,这类问题要求维护某个点到根的某些数据,支持树的切分,合并,以及对子树的某些操作.其中解决这一问题的某些简化版(不包括对子树的操作)的基础数据结构就是LCT( ...
- bzoj 2631: tree 动态树+常数优化
2631: tree Time Limit: 30 Sec Memory Limit: 128 MBSubmit: 1716 Solved: 576[Submit][Status] Descrip ...
- 动态树LCT小结
最开始看动态树不知道找了多少资料,总感觉不能完全理解.但其实理解了就是那么一回事...动态树在某种意思上来说跟树链剖分很相似,都是为了解决序列问题,树链剖分由于树的形态是不变的,所以可以通过预处理节点 ...
- zoj 2112 Dynamic Rankings(主席树&动态第k大)
Dynamic Rankings Time Limit: 10 Seconds Memory Limit: 32768 KB The Company Dynamic Rankings has ...
- LCT总结——概念篇+洛谷P3690[模板]Link Cut Tree(动态树)(LCT,Splay)
为了优化体验(其实是强迫症),蒟蒻把总结拆成了两篇,方便不同学习阶段的Dalao们切换. LCT总结--应用篇戳这里 概念.性质简述 首先介绍一下链剖分的概念(感谢laofu的讲课) 链剖分,是指一类 ...
- 动态树Link-cut tree(LCT)总结
动态树是个好玩的东西 LCT题集 预备知识 Splay 树链剖分(好像关系并不大) 动态树(Link-cut tree) 先搬dalao博客 什么是LCT? 动态树是一类要求维护森林的连通性的题的总称 ...
随机推荐
- Java多线程(六) —— 线程并发库之并发容器
参考文献: http://www.blogjava.net/xylz/archive/2010/07/19/326527.html 一.ConcurrentMap API 从这一节开始正式进入并发容器 ...
- Class.getResourceAsStream 和 ClassLoder.getResourceAsStream 的区别
问题描述 最近学习MyBaits时用到了 InputStream Resources.getResourceAsStream(String resource)来读取MyBatis配置文件,为了方便使用 ...
- .net mvc nopi生成word
参考下面地址,实例已很不错了 https://www.cnblogs.com/ZaraNet/p/9691908.html
- Bracket Sequences Concatenation Problem CodeForces - 990C(括号匹配水题)
明确一下 一个字符串有x左括号不匹配 和 另一个字符串有x个右括号不匹配 这俩是一定能够匹配的 脑子有点迷 emm... 所以统计就好了 统计x个左括号的有几个,x个右括号的有几个 然后 乘一 ...
- vs2017自动生成的#include“stdafx.h”详解及解决方案
vs2017自动生成的#include“stdafx.h”详解及解决方案 问题描述: 在高版本的Visual Studio的默认设置中,会出现这么一个现象,在新建项目之后,项目会自动生成#includ ...
- SDOI2017硬币游戏
题面链接 洛咕 sol 神题,幸好我不是SD的QAQ. 假设你们都会\(O(n^3m^3)\)的高斯消元,具体来说就是建出\(Trie\)图然后套游走的板子. 然后我们发现可以把不能匹配任何串的概率压 ...
- idea中Hibernate错误:无法解析表
idea中Hibernate错误:无法解析表 这种情况主要是在idea中使用hibernate自定义注解,idea无法检查数据源 this inspecton controls whether the ...
- 解题:TJOI 2015 弦论
题面 好像是个经典问题,然而我没做过 建SAM,然后经过每个节点的子串数目就可以求了,多个相同子串算一个的话就把所有siz都搞成$1$,否则就是$right$集合的大小,然后就是常见的递推 求第$k$ ...
- bzoj 1406
%%% PoPoQQQ x^2=kn+1 x^2-1=kn (x+1)(x-1)=kn 令x+1=k1*n1,x-1=k2*n2,其中k1k2=k,n1n2=n 因此我们可以枚举n的约数中所有大于等于 ...
- ACM比赛_注意
ACM比赛_注意: 比赛前: 1.前一天早一点睡觉 2.避免参加激烈的活动,以免比赛时精力不足; 3.少喝水,并提前上厕所; 4.把账号,密码都准备好,放在txt中 5.提前创建多个程序(etc.10 ...