index.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.grainChemicalTree(e.childenList);
  11. };
  12. $(function(){
  13. var modules=JSON.parse(window.sessionStorage.getItem("modules"));
  14. if(window.treemap){
  15. renderHeader(window.treemap[11]); //储粮化学药剂管理ID 11
  16. }else if(modules){
  17. renderHeader(modules.treemap[11]);
  18. }
  19. })
  20. </script>
  21. <div class="con-wrap">
  22. <div class="tree-breadcrumb">
  23. <span class="nav-prov">首页</span>&gt;
  24. <span class="nav-prov"><a href="/pages/grainChemical/index.html">储粮化学药剂管理</a></span>&gt;
  25. <span class="nav-item"><a href="javascript:;" id="nav-item-a"></a></span>
  26. </div>
  27. <div class="bif-nav">
  28. <ul id="bif-nav-ul">
  29. </ul>
  30. </div>
  31. <div id="con-main">
  32. <div id="con-map" class="main3">
  33. </div>
  34. </div>
  35. </div>
  36. <!--#include file="/inc/footer.html"-->
  37. <style>
  38. #con-map{
  39. height:400px;
  40. min-height: 400px;
  41. }
  42. #con-main{
  43. min-height:420px;
  44. }
  45. .bif-nav-item{
  46. width: 150px;
  47. text-align: center;
  48. }
  49. </style>
  50. <script type="text/javascript" src="/src/sub/grainChemical.js"></script>
  51. </body>
  52. </html>