index.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!--#include file="/inc/header.html"-->
  2. <script type="text/javascript">
  3. window.renderHeader=function(e)
  4. {
  5. var template="{{#childenList}}<li class=\"bif-nav-item\" data-type=\"{{moduleType}}\">{{moduleName}}</li>{{/childenList}}";
  6. var views = Mustache.render(template, e);
  7. $("#bif-nav-ul").html(views);
  8. $(".tree-breadcrumb #nav-item-a").html($("#bif-nav-ul li:first-child").html());
  9. $("#bif-nav-ul li:first-child").addClass("active");
  10. tabSelect.superviseTree(e.childenList);
  11. };
  12. $(function(){
  13. var modules=JSON.parse(window.sessionStorage.getItem("modules"));
  14. if(window.treemap){
  15. renderHeader(window.treemap[2]);
  16. }else if(modules){
  17. renderHeader(modules.treemap[2]);
  18. }
  19. })
  20. </script>
  21. <style type="text/css">.hide{display: none;}</style>
  22. <div class="con-wrap">
  23. <!-- <div class="tree-breadcrumb">
  24. <span class="nav-prov">首页</span>&gt;
  25. <span class="nav-prov"><a href="/pages/supervisecheck/index.html">检查管理</a></span>
  26. &gt;
  27. <span class="nav-item"><a href="javascript:;" id="nav-item-a"></a></span>
  28. </div>-->
  29. <div class="bif-nav">
  30. <ul id="bif-nav-ul">
  31. </ul>
  32. </div>
  33. <div id="con-map" class="main3">
  34. <div class="bif-container">
  35. </div>
  36. </div>
  37. </div>
  38. <!--#include file="/inc/footer.html"-->
  39. <style>
  40. #con-map{
  41. height:400px;
  42. min-height: 400px;
  43. }
  44. #con-main{
  45. min-height:420px;
  46. }
  47. .bif-nav-item{
  48. width: 150px;
  49. text-align: center;
  50. }
  51. </style>
  52. <script type="text/javascript">
  53. $(function() {
  54. tabSelect.superviseTree();
  55. });
  56. </script>
  57. </body>
  58. </html>