group-display.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {template 'common/header'}
  2. <div class="we7-page-title">用户权限组管理</div>
  3. <ul class="we7-page-tab"></ul>
  4. <div class="clearfix we7-margin-bottom">
  5. <form action="" method="get">
  6. <div class="input-group pull-left col-sm-4">
  7. <input type="hidden" name="c" value="user">
  8. <input type="hidden" name="a" value="group">
  9. <input type="text" name="name" id="" value="{$_GPC['name']}" class="form-control" placeholder="搜索用户权限组"/>
  10. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  11. </div>
  12. </form>
  13. <div class="pull-right">
  14. <a href="{php echo url('user/group/post')}" class="btn btn-primary">+添加用户组</a>
  15. </div>
  16. </div>
  17. <table class="table we7-table table-hover" id="js-user-group-display" ng-controller="UserGroupDisplay" ng-cloak>
  18. <col width="120px"/>
  19. <col width="100px"/>
  20. <col width="120px"/>
  21. <col width="120px"/>
  22. <col width="120px"/>
  23. <col width="100px"/>
  24. <col width="100px"/>
  25. <col width="100px"/>
  26. <col width="100px"/>
  27. <col width="100px"/>
  28. <col width="160px"/>
  29. <tr>
  30. <th class="text-left">用户组</th>
  31. <th>有限期</th>
  32. <th>可创建公众号</th>
  33. <th>可创建小程序</th>
  34. <th>可创建PC</th>
  35. <th>可创建APP</th>
  36. <th>应用权限套餐</th>
  37. <th>可用应用</th>
  38. <th>可用小程序应用</th>
  39. <th>可用PC应用</th>
  40. <th>可用APP应用</th>
  41. <th class="text-right">操作</th>
  42. </tr>
  43. <tr ng-repeat="list in lists">
  44. <td class="text-left" ng-bind="list.name"></td>
  45. <td><span ng-if="list.timelimit != 0" ng-bind="list.timelimit+'天'"></span><span ng-if="list.timelimit == 0">永久有效</span></td>
  46. <td><span ng-if="list.maxaccount == 0">无权限</span><span ng-if="list.maxaccount != 0" ng-bind="list.maxaccount"></span></td>
  47. <td><span ng-if="list.maxwxapp == 0">无权限</span><span ng-if="list.maxwxapp != 0" ng-bind="list.maxwxapp"></span></td>
  48. <td><span ng-if="list.maxwebapp == 0">无权限</span><span ng-if="list.maxwebapp != 0" ng-bind="list.maxwebapp"></span></td>
  49. <td><span ng-if="list.maxphoneapp == 0">无权限</span><span ng-if="list.maxphoneapp != 0" ng-bind="list.maxphoneapp"></span></td>
  50. <td>
  51. <span ng-if="list.module_nums == -1">全部</span>
  52. <span ng-if="list.package != 'N;'" class="color-default" ng-bind="list.packages"></span>
  53. <span ng-if="list.package == 'N;'">无</span>
  54. </td>
  55. <td>
  56. <span ng-if="list.module_nums == -1">全部</span>
  57. <span ng-if="list.module_nums != -1" ng-bind="list.module_nums"></span>
  58. </td>
  59. <td>
  60. <span ng-if="list.wxapp_nums == -1">全部</span>
  61. <span ng-if="list.wxapp_nums != -1" ng-bind="list.wxapp_nums"></span>
  62. </td>
  63. <td>
  64. <span ng-if="list.webapp_nums == -1">全部</span>
  65. <span ng-if="list.webapp_nums != -1" ng-bind="list.webapp_nums"></span>
  66. </td>
  67. <td>
  68. <span ng-if="list.phoneapp_nums == -1">全部</span>
  69. <span ng-if="list.phoneapp_nums != -1" ng-bind="list.phoneapp_nums"></span>
  70. </td>
  71. <td>
  72. <div class="link-group">
  73. <a href="javascript:;" ng-click="editGroup(list.id)">编辑</a>
  74. <a href="javascript:;" ng-click="delGroup(list.id)" class="del">删除</a>
  75. </div>
  76. </td>
  77. </tr>
  78. </table>
  79. <script>
  80. angular.module('userGroup').value('config', {
  81. lists: {php echo !empty($lists) ? json_encode($lists) : 'null'},
  82. links: {
  83. groupPost: "{php echo url('user/group/post')}",
  84. groupDel: "{php echo url('user/group/del')}",
  85. }
  86. });
  87. angular.bootstrap($('#js-user-group-display'), ['userGroup']);
  88. </script>
  89. {template 'common/footer'}