easyui03(tree后台工作)

一.数据库脚本

create table TB_MODULE
(
  id      NUMBER not null,
  pid     NUMBER not null,
  text    VARCHAR2(150) not null,
  iconcls VARCHAR2(100) not null,
  url     VARCHAR2(100),
  sort    NUMBER not null
)

insert into TB_MODULE (id, pid, text, iconcls, url, sort)
values (20, -1, '订单管理', 'icon-organization', null, 2);
insert into TB_MODULE (id, pid, text, iconcls, url, sort)
values (2001, 20, '订单处理', 'icon-cart-edit', 'jsp/order/orderList.jsp', 6);
insert into TB_MODULE (id, pid, text, iconcls, url, sort)
values (2002, 20, '订单统计', 'icon-money-yen', 'jsp/order/orderCount.jsp ', 7);
insert into TB_MODULE (id, pid, text, iconcls, url, sort)
values (21, -1, '系统管理', 'icon-cog', null, 3);
insert into TB_MODULE (id, pid, text, iconcls, url, sort)
values (2101, 21, '用户管理', 'icon-user-edit', 'jsp/system/userManage.jsp', 8);
insert into TB_MODULE (id, pid, text, iconcls, url, sort)
values (2102, 21, '权限管理', 'icon-heart', 'jsp/system/authManage.jsp', 9);
insert into TB_MODULE (id, pid, text, iconcls, url, sort)
values (2103, 21, '字典管理', 'icon-page-edit', 'jsp/system/dictList.jsp', 10);
insert into TB_MODULE (id, pid, text, iconcls, url, sort)
values (22, -1, '商品管理', 'icon-color', null, 1);
insert into TB_MODULE (id, pid, text, iconcls, url, sort)
values (2201, 22, '新增商品', 'icon-tag-blue-add', 'jsp/goods/addGoods.jsp', 5);
insert into TB_MODULE (id, pid, text, iconcls, url, sort)
values (2202, 22, '商品列表', 'icon-application-view-list', 'jsp/goods/goodsList.jsp', 4);
commit;

二. 无限极分类表 自关联表  递归

easyui03(tree后台工作)_第1张图片

select * from tb_module where pid=21

iframe src="" 内嵌框架

你可能感兴趣的:(java,servlet,开发语言,easyui,后端)