menuManage.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <style>
  2. li ~ span {
  3. padding-left: 4px;
  4. padding-right: -4px;
  5. }
  6. .panel-body li:hover {
  7. background-color: #F5F5F5;
  8. }
  9. .treeitem > li > span:nth-child(1) {
  10. padding-left: 16px;
  11. padding-right: -16px;
  12. }
  13. .treeitem .treeitem li > span:nth-child(1) {
  14. padding-left: 32px;
  15. padding-right: -32px;
  16. }
  17. .treeitem .treeitem .treeitem li > span:nth-child(1) {
  18. padding-left: 48px;
  19. padding-right: -48px;
  20. }
  21. </style>
  22. <span class="title-menu">
  23. <ol class="breadcrumb gt_breadcrumb">
  24. <li>
  25. <a href="javascript:void(0);">
  26. 系统配置
  27. </a>
  28. </li>
  29. <li>
  30. <a href="javascript:void(0);">
  31. 系统菜单配置
  32. </a>
  33. </li>
  34. </ol>
  35. </span>
  36. <div class="dj-list" style="padding-top: 5px;">
  37. <div class="dj-list-body">
  38. <div class="dj-list-content content1">
  39. <div class="card">
  40. <div activate-input class="header search-header">
  41. <div class="search-param-panel">
  42. <div class="search-input">
  43. <div class="row clearfix form-inline">
  44. <div class="col-lg3 col-md-3 dj-label">
  45. <label>菜单名称</label>
  46. </div>
  47. <div class="col-lg3 col-md-3">
  48. <div class="form-group">
  49. <div class="form-line">
  50. <input type="text" class="form-control" ng-model="MenuName" ng-keypress="($event.which === 13)?searchMenu():0"
  51. name="menuname"/>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="col-lg3 col-md-3 dj-label">
  56. <label>菜单编号</label>
  57. </div>
  58. <div class="col-lg3 col-md-3">
  59. <div class="form-group">
  60. <div class="form-line">
  61. <input type="text" class="form-control" ng-model="MenuNo" ng-keypress="($event.which === 13)?searchMenu():0"
  62. name="menuno"/>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="search-btn" style="margin-right: 20px;">
  69. <div style="min-width: 13em">
  70. <button role-permission-code="menumanage.btnSearch" class="btn btn-default1"
  71. type="submit"
  72. ng-click="searchMenu()">查询
  73. </button>
  74. <button role-permission-code="partyList.btnReset" class="btn btn-default1 btn-reset"
  75. ng-click="reset()">重置
  76. </button>
  77. <!--<button role-permission-code="menumanage.btnAdd" class="btn btn-default1" ng-click="addMenu()">新增-->
  78. <!--</button>-->
  79. </div>
  80. </div>
  81. </div>
  82. <div class="search-btn" style="margin-right: 20px;">
  83. <div style="float: right">
  84. <button role-permission-code="menumanage.btnAdd" class="btn btn-default1"
  85. ng-click="addMenu()">新增
  86. </button>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="body">
  91. <div class="list-table-panel">
  92. <script type="text/ng-template" id="nodes.html">
  93. <li class="row" style="border-bottom:1px solid #f5f5f5; padding:6px 0px">
  94. <span style="width:25%;display: inline-block;">
  95. <div ng-click="loadChildMenu(menu)">
  96. <i class="material-icons" style="position: relative;top:7px;">{{menu.isExpand ? 'expand_more' : 'chevron_right'}}</i>
  97. <span class="icon-name">{{menu.menuname}}</span>
  98. </div>
  99. </span>
  100. <span style="width:15%;display:inline-block;">{{menu.menuno}}</span>
  101. <span style="width:15%;display:inline-block;">{{menu.menupic}}</span>
  102. <span style="width:15%;display:inline-block;">{{menu.isvisible==true ? '显示':'不显示'}}</span>
  103. <span style="width:10%;display:inline-block;">{{menu.menuorder}}</span>
  104. <span style="width:15%;display:inline-block;">
  105. <button role-permission-code="menumanage.btnUpdate"
  106. class="btn td-btn bg-light-green waves-effect" ng-click="editModal(menu)"
  107. title="修改">
  108. 修改
  109. </button>
  110. <button role-permission-code="menumanage.btnDelete"
  111. class="btn td-btn bg-pink waves-effect" ng-click="delete(menu)" title="删除">
  112. 删除
  113. </button>
  114. </span>
  115. </li>
  116. <div ng-hide="!menu.isExpand">
  117. <div class="treeitem" ng-repeat="menu in menu.childMenus" ng-include="'nodes.html'"
  118. style="cursor: pointer;"></div>
  119. </div>
  120. </script>
  121. <table class="table table-bordered table-striped table-hover js-basic-example dataTable"
  122. style="margin-bottom: 0px;">
  123. <thead>
  124. <tr>
  125. <th width="25%">菜单名称</th>
  126. <th width="15%">菜单编号</th>
  127. <th width="15%">菜单图标</th>
  128. <th width="15%">是否显示</th>
  129. <th width="10%">排序</th>
  130. <th width="20%">操作</th>
  131. </tr>
  132. <tr ng-if="tempMenu.length<=0">
  133. <td colspan="7" style="text-align:center">暂无数据</td>
  134. </tr>
  135. </thead>
  136. </table>
  137. <ul style="list-style:none;padding:0px 15px; margin:0px;border-left:1px solid #f5f5f5;border-right: 1px solid #f5f5f5 "
  138. ng-repeat="menu in tempMenu"
  139. ng-include="'nodes.html'">
  140. </ul>
  141. <!--参数含义:page-Index:当前页面,page-Size:每页显示多少数据,total-Length:数据总长度-->
  142. <pagination ng-if="tempMenu.length>0" data-pageindex="selectdata.pageindex"
  143. data-pagesize="selectdata.pagesize" data-ptotal="selectdata.ptotal"></pagination>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>