jquery tree

<script type="text/javascript">
		$(function(){
			$('#tt2').tree({
				url: '<%=basePath%>admin.json',
				onClick:function(node){
					$(this).tree('toggle', node.target);
					if(node.attributes!=undefined)
					{
					  addTab(node.text, node.attributes.url);
					}
				}
			});
		});
		function reload(){
			$('#tt2').tree('reload');
		}
	</script>

 

[
 {"id":1,"text":"我的菜单","state":"open",
    "children":
              [
              
     {"id":2,"text":"预约挂号统计报表","state":"closed",
     "children":
                [
                 {"id":3,"text":"医院统计报表","attributes":{"url":"hospitalTongji.jsp"}},
                
                 {"id":4,"text":"科室统计报表","attributes":{"url":"KeshiTongji.jsp"}}
                 
                ]
     },
   
          {"id":5,"text":"统计查询","state":"closed",
     "children":
                [
                 {"id":6,"text":"统计查询","attributes":{"url":"sample.jsp"}},
                
                 {"id":7,"text":"查看挂号","attributes":{"url":"guahao.jsp"}}
                 
                ]
     },

      {"id":8,"text":"综合统计报表","state":"closed",
     "children":
                [
                 {"id":9,"text":"综合统计","attributes":{"url":"initZongheTongjizhuanjiaAction"}},
                {"id":9,"text":"各医院预约订单数量统计报表","attributes":{"url":"test/tongji08.jsp"}},
		{"id":9,"text":"各医院预约订单来源及类别统计报表","attributes":{"url":"test/tongji04.jsp"}},
		{"id":9,"text":"用户满意度调查统计报表","attributes":{"url":"test/tongji07.jsp"}},
		{"id":9,"text":"全省医院各科室预约情况分析(可排序,可输出直方图或饼图)","attributes":{"url":"test/tongji06.jsp"}},
                 {"id":10,"text":"统计时间","attributes":{"url":"guahao.jsp"}}
                 
                ]
     },
      {"id":11,"text":"用户管理","state":"closed",
     "children":
                [
                {"id":12,"text":"医院管理","attributes":{"url":"test/addHospital.jsp"}},
                  {"id":13,"text":"科室管理","attributes":{"url":"test/addKeshi.jsp"}},
                  {"id":14,"text":"专家管理","attributes":{"url":"test/addZhuanjia.jsp"}}
                 
                ]
     }

 

	  ]
     
   }
   
  

 ]

 效果图

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值