人人商城

founder-group.html 3.0KB

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