1 组织结构树标签(acsTags:tree)
1.1 引入js
<script type="text/javascript" src="${resourcesCtx}/widgets/
jstree/jquery.jstree.js"></script>
1.2 用法
1.2.1 开发系统中添加以下资源;查询是否已加入编号为tag_tree的资源,若没有则添加
编号:tag_tree,名称:标签树资源,路径:/portal/tree.action
编号:tag_search_tree,名称:标签树查询资源,路径: /portal / search -tree.action
将该资源分给“普通用户”角色
1.2.2在项目的web.xml中加入action的过滤器:
<filter>
<filter-name>struts2Filter</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<!-- 树插件 -->
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/portal/tree.action</url-pattern>
</filter-mapping>
<!-- 树查询action -->
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/portal/search-tree.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2Filter</filter-name>
<url-pattern>*.action</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
< acsTags:tree defaultable="true" multiple="true" treeType="COMPANY" treeId="companyTree"></acsTags:tree>
参数说明:
defaultable:"true/false" ,当一个页面需要加载多个树时,需要有一颗树为默认显示的树,若只有一颗树则设为”true”即可
treeId:"companyTree", 树的id
treeType:树的类型。
multiple:"true/false" ,多选树/单选树。
树的类型如下:
COMPANY 公司树
MAN_DEPARTMENT_GROUP_TREE 部门工作组人员树
MAN_DEPARTMENT_TREE 部门人员树
MAN_GROUP_TREE 工作组人员树
DEPARTMENT_TREE 部门树
GROUP_TREE 工作组树
DEPARTMENT_WORKGROUP_TREE 部门工作组树
<acsTags:tree defaultable="true" multiple="true" treeType="COMPANY"
treeId="companyTree"></acsTags:tree>
iMatrix6.0.0.RC1Demo演示登陆地址:http://demo.imatrix.net.cn:8888/imatrix
如有使用iMatrix平台问题请登录iMatrix平台论坛咨询:
http://bbs.imatrix.net.cn/forum.php?mod=forumdisplay&fid=37
相关推荐
tree.js树形结构,多用于组织结构tree.js树形结构,多用于组织结构tree.js树形结构,多用于组织结构tree.js树形结构,多用于组织结构
Struts2中关于s:tree标签的使用,详细的例子说明,带图片演示
树形结构菜单treedemo,树形结构菜单treedemo,树形结构菜单treedemo
仿企查查、天眼查关联投资机构 股权结构 tree树形结构 控股结构组件使用方法: <!-- treeName:树形结构的主题名称 treeData: 树形结构的填充数据 目前支持三级树形结构--> (curTreeName.length > 0)" :treeName=...
组织结构树的各种画法 横向左到右汇总,横向右到左汇总,上下汇总, 代码简洁,配有注释。
<vs-tree :data="treeDate" :props="props" breadcrumb :max="5" show-checkbox @limit-check="limitCheck" @check-change="handleCheckChange"> </vs-tree> const data = [ {name: '上海分部', id: 2, ...
js 树结构 tree js 树结构 tree js 树结构 tree
filetree 以树形结构显示文件目录结构,它非常适合给别人介绍文件目录的组成框架
Vue实现树形结构,不采用tree组件,利用循环方式得到;实现全选,勾选父节点自动勾选子节点,勾选子节点反勾选相应父节点功能
例程可正常使用,非常的简单,基本上学过几天代码的人都能够正常使用。采用纯js编写,不复杂
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered from 1 to 6) is traversed, the ...
利用labview自带的tree控件(不需要安装额外的工具包)创建树形结构,分为3层,主机层,分机层,节点层。还包括一篇介绍tree属性和方法的文档。
二级树形菜单示例:CSS TreeMenu
进入到指定文件夹中,生成文件树 使用指令 tree -L 2 ,如下/TextScanning tree -L 2。
纯as3.0写的Tree,完美支持xml,用法: <fx:Declarations> <!-- 将非可视元素(例如服务、值对象)放在此处 --> <fx:XML source="assets/relation.xml" id="data"/> </fx:Declarations> <component:UserTree id...
关于Java的一个树结构,类似于本论坛左侧的样式,对初学者有一定的帮助
需求: vue-cli项目树形控件:一级节点为本地节点,默认展开一级节点,增删改后局部刷新数据。 增加节点,点击确定后局部刷新,渲染新数据。 源码 element组件样式 <el-tree class="treeitems" :data="data...
TreeTime是使用链接树而不是表的平面列表的常规数据组织,管理和分析工具。 树是一种层次结构,可将数据分为单位和子单位。 可以递归计算数学函数(总和,差,均值,比率)。 链接树是在它们之间共享数据的不同树。...
数据结构英文教学课件:chapter6 Tree.ppt