index.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. };
  11. $(function(){
  12. var modules=JSON.parse(window.sessionStorage.getItem("modules"));
  13. for(var i = 0;i<window.treemap[20].childenList.length;i++){
  14. if(window.treemap[20].childenList[i].moduleName === '用户管理'){
  15. var treemap = window.treemap[20].childenList[i]
  16. }
  17. }
  18. // var treemap = window.treemap[20].childenList[0]
  19. // var treemap = {
  20. // moduleName:'用户管理',
  21. // moduleType:'pages/usermanage/index.html',
  22. // moduleUrl:'pages/usermanage/index.html',
  23. // childenList:[
  24. // {
  25. // moduleName:'用户管理',
  26. // moduleType:'userManage',
  27. // moduleUrl:'userManage',
  28. // },{
  29. // moduleName:'保管人员信息',
  30. // moduleType:'storemanInfo',
  31. // moduleUrl:'storemanInfo',
  32. // },{
  33. // moduleName:'角色组管理',
  34. // moduleType:'roleGroupManage',
  35. // moduleUrl:'roleGroupManage',
  36. // },{
  37. // moduleName:'组织架构维护',
  38. // moduleType:'organizationMaintence',
  39. // moduleUrl:'organizationMaintence',
  40. // }
  41. // ]
  42. // }
  43. if(window.treemap){
  44. renderHeader(treemap);//用户管理ID 6
  45. }else if(modules){
  46. renderHeader(treemap);
  47. }
  48. })
  49. </script>
  50. <div class="con-wrap" style="width:1180px">
  51. <div class="bif-nav">
  52. <ul id="bif-nav-ul">
  53. </ul>
  54. </div>
  55. <div id="con-map" class="main3" style="width:1180px">
  56. <div class="bif-container" >
  57. </div>
  58. </div>
  59. </div>
  60. <div class="easyui-window rgm-w role-manage-addedit" id="role-manage-addedit" data-options="closed:true" style="padding: 10px;width:700px;height: 500px;">
  61. <form class="role-form">
  62. <input type="easyui-textbox" style="display: none;" name="id">&emsp;&emsp;
  63. 角色组名:<input type="easyui-textbox easyui-validatebox name" name="name" id="role-name" data-options="validType:'length[0,20]'">&emsp;&emsp;
  64. 备注: <input type="easyui-textbox easyui-validatebox remark" name="remark" id="role-remark" data-options="validType:'length[0,20]'">
  65. </form>
  66. <br />
  67. <ul id="rgm-tree" class="easyui-tree" style="margin: 10px 0;"></ul>
  68. <button type="button" href="#" class="easyui-linkbutton bd-add-s bd-win-y " plain="true">确定</button>
  69. </div>
  70. <!--#include file="/inc/footer.html"-->
  71. <style>
  72. .tool-wrap,.logo-wrap,.nav-wrap,.bottom-wrap{
  73. display: none
  74. }
  75. .hide {
  76. display: none;
  77. }
  78. .pic {
  79. width: 300px;
  80. }
  81. .bif-nav-item {
  82. /* width: 100px; */
  83. text-align: center;
  84. }
  85. .form-left {
  86. width: 500px;
  87. float: left;
  88. }
  89. .form-right {
  90. width: 200px;
  91. min-height: 150px;
  92. float: left;
  93. }
  94. .form-right .pic {
  95. border: 1px solid #ccc;
  96. float: left;
  97. width: 100%;
  98. min-height: 150px;
  99. background: #ccc;
  100. }
  101. #file {
  102. border-color: #ffa8a8;
  103. background-color: #F30000;
  104. color: #000;
  105. width: 100%;
  106. height: 20px;
  107. margin-top: 10px;
  108. }
  109. .pf-pitem-li {
  110. min-width: 100px;
  111. }
  112. </style>
  113. <script>
  114. $(function() {
  115. userManage.init();
  116. // base.renderwindow('#role-manage-addedit',
  117. // {
  118. // title: '更新角色组',
  119. // width: 700,
  120. // height: 500,
  121. // close:false
  122. // });
  123. });
  124. </script>
  125. </body>
  126. </html>