<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"}}
]
}
]
}
]
效果图