index3.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!--#include file="/inc/header.html"-->
  2. <script type="text/javascript">
  3. window.renderHeader = function(e) {
  4. var template = "{{#childenList}}<li class=\"bif-nav-item\" data-type=\"{{moduleType}}\">{{moduleName}}</li>{{/childenList}}";
  5. var views = Mustache.render(template, e);
  6. $("#bif-nav-ul").html(views);
  7. $(".tree-breadcrumb #nav-item-a").html($("#bif-nav-ul li:first-child").html());
  8. $("#bif-nav-ul li:first-child").addClass("active");
  9. var num = sessionStorage.getItem('old')
  10. tabSelect.jiXieSheBei(num);
  11. };
  12. $(function() {
  13. var modules = JSON.parse(window.sessionStorage.getItem("modules"));
  14. renderHeader(window.treemap[10]); //器材设备管理ID 10
  15. $('.tool-wrap,.logo-wrap,.nav-wrap,.bottom-wrap,.bif-nav').hide()
  16. })
  17. var getGrainData = {};
  18. $.ajax({
  19. type: "get",
  20. dataType: 'json',
  21. async: false,
  22. url: config.baseUrl + config.organization.getAllGrainList,
  23. success: function(e) {
  24. getGrainData = e.data.data;
  25. },
  26. error: function(e) {
  27. console.log(e);
  28. }
  29. });
  30. </script>
  31. <div class="con-wrap">
  32. <div class="bif-nav">
  33. <ul id="bif-nav-ul">
  34. </ul>
  35. </div>
  36. <div id="con-main main6">
  37. <div id="con-map" class="main3 main6">
  38. </div>
  39. </div>
  40. </div>
  41. <style>
  42. #con-map {
  43. height: 400px;
  44. min-height: 400px;
  45. }
  46. #con-main {
  47. min-height: 420px;
  48. }
  49. .bif-nav-item {
  50. width: 150px;
  51. text-align: center;
  52. }
  53. </style>
  54. <!-- <script type="text/javascript" src="/src/sub/equipmentDevice.js"></script> -->