index.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.equipmentDeviceTree(e.childenList);
  11. };
  12. $(function(){
  13. var modules=JSON.parse(window.sessionStorage.getItem("modules"));
  14. if(window.treemap){
  15. renderHeader(window.treemap[10]);//器材设备管理ID 10
  16. }else if(modules){
  17. renderHeader(modules.treemap[10]);
  18. }
  19. })
  20. var getGrainData = {};
  21. $.ajax({
  22. type: "get",
  23. dataType: 'json',
  24. async: false,
  25. url: config.baseUrl + config.organization.getAllGrainList,
  26. success: function(e) {
  27. getGrainData = e.data.data;
  28. },
  29. error: function(e) {
  30. console.log(e);
  31. }
  32. });
  33. </script>
  34. <div class="con-wrap">
  35. <div class="tree-breadcrumb">
  36. <span class="nav-prov">首页</span>&gt;
  37. <span class="nav-item"><a href="javascript:;" id="nav-item-a"></a></span>
  38. </div>
  39. <div class="bif-nav">
  40. <div id="jsonId"></div>
  41. <ul id="bif-nav-ul">
  42. </ul>
  43. </div>
  44. <div id="con-main">
  45. <div id="con-map" class="main3">
  46. </div>
  47. </div>
  48. </div>
  49. <!--#include file="/inc/footer.html"-->
  50. <style>
  51. #con-map{
  52. height:400px;
  53. min-height: 400px;
  54. }
  55. #con-main{
  56. min-height:420px;
  57. }
  58. .bif-nav-item{
  59. width: 150px;
  60. text-align: center;
  61. }
  62. </style>
  63. <script type="text/javascript" src="/src/toDo.js"></script>
  64. </body>
  65. </html>