index.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. };
  10. $(function() {
  11. var modules = JSON.parse(window.sessionStorage.getItem("modules"));
  12. if (window.treemap) {
  13. renderHeader(window.treemap[3]); //资产管理ID 3
  14. } else if (modules) {
  15. renderHeader(modules.treemap[3]);
  16. }
  17. })
  18. </script>
  19. <div class="con-wrap">
  20. <div class="tree-breadcrumb">
  21. <span class="nav-prov">首页</span>&gt;
  22. <span class="nav-prov"><a href="/pages/deviceDrug/index.html">资产管理</a></span>&gt;
  23. <span class="nav-item"><a href="javascript:;" id="nav-item-a"></a></span>
  24. </div>
  25. <div class="bif-nav">
  26. <ul id="bif-nav-ul">
  27. <!-- <li class="bif-nav-item active" data-type="1">药品入库记录</li>
  28. <li class="bif-nav-item" data-type="2">药品出库记录</li>
  29. <li class="bif-nav-item" data-type="3">设备入库记录</li>
  30. <li class="bif-nav-item" data-type="4">设备出库记录</li> -->
  31. </ul>
  32. </div>
  33. <div id="con-main">
  34. <div id="con-map" class="main3">
  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.deviceDrugTree();
  55. });
  56. </script>
  57. <script type="text/javascript" src="/src/sub/inAndOut.js"></script>
  58. <script type="text/javascript" src="/src/sub/dm.js"></script>
  59. </body>
  60. </html>