1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- {template 'common/header'}
- <div class="we7-page-title">用户权限组管理</div>
- <ul class="we7-page-tab"></ul>
- <div class="clearfix we7-margin-bottom">
- <form action="" method="get">
- <div class="input-group pull-left col-sm-4">
- <input type="hidden" name="c" value="user">
- <input type="hidden" name="a" value="group">
- <input type="text" name="name" id="" value="{$_GPC['name']}" class="form-control" placeholder="搜索用户权限组"/>
- <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
- </div>
- </form>
- <div class="pull-right">
- <a href="{php echo url('user/group/post')}" class="btn btn-primary">+添加用户组</a>
- </div>
- </div>
- <table class="table we7-table table-hover" id="js-user-group-display" ng-controller="UserGroupDisplay" ng-cloak>
- <col width="120px"/>
- <col width="100px"/>
- <col width="120px"/>
- <col width="120px"/>
- <col width="120px"/>
- <col width="100px"/>
- <col width="100px"/>
- <col width="100px"/>
- <col width="100px"/>
- <col width="100px"/>
- <col width="160px"/>
- <tr>
- <th class="text-left">用户组</th>
- <th>有限期</th>
- <th>可创建公众号</th>
- <th>可创建小程序</th>
- <th>可创建PC</th>
- <th>可创建APP</th>
- <th>应用权限套餐</th>
- <th>可用应用</th>
- <th>可用小程序应用</th>
- <th>可用PC应用</th>
- <th>可用APP应用</th>
- <th class="text-right">操作</th>
- </tr>
- <tr ng-repeat="list in lists">
- <td class="text-left" ng-bind="list.name"></td>
- <td><span ng-if="list.timelimit != 0" ng-bind="list.timelimit+'天'"></span><span ng-if="list.timelimit == 0">永久有效</span></td>
- <td><span ng-if="list.maxaccount == 0">无权限</span><span ng-if="list.maxaccount != 0" ng-bind="list.maxaccount"></span></td>
- <td><span ng-if="list.maxwxapp == 0">无权限</span><span ng-if="list.maxwxapp != 0" ng-bind="list.maxwxapp"></span></td>
- <td><span ng-if="list.maxwebapp == 0">无权限</span><span ng-if="list.maxwebapp != 0" ng-bind="list.maxwebapp"></span></td>
- <td><span ng-if="list.maxphoneapp == 0">无权限</span><span ng-if="list.maxphoneapp != 0" ng-bind="list.maxphoneapp"></span></td>
- <td>
- <span ng-if="list.module_nums == -1">全部</span>
- <span ng-if="list.package != 'N;'" class="color-default" ng-bind="list.packages"></span>
- <span ng-if="list.package == 'N;'">无</span>
- </td>
- <td>
- <span ng-if="list.module_nums == -1">全部</span>
- <span ng-if="list.module_nums != -1" ng-bind="list.module_nums"></span>
- </td>
- <td>
- <span ng-if="list.wxapp_nums == -1">全部</span>
- <span ng-if="list.wxapp_nums != -1" ng-bind="list.wxapp_nums"></span>
- </td>
- <td>
- <span ng-if="list.webapp_nums == -1">全部</span>
- <span ng-if="list.webapp_nums != -1" ng-bind="list.webapp_nums"></span>
- </td>
- <td>
- <span ng-if="list.phoneapp_nums == -1">全部</span>
- <span ng-if="list.phoneapp_nums != -1" ng-bind="list.phoneapp_nums"></span>
- </td>
- <td>
- <div class="link-group">
- <a href="javascript:;" ng-click="editGroup(list.id)">编辑</a>
- <a href="javascript:;" ng-click="delGroup(list.id)" class="del">删除</a>
- </div>
- </td>
- </tr>
- </table>
- <script>
- angular.module('userGroup').value('config', {
- lists: {php echo !empty($lists) ? json_encode($lists) : 'null'},
- links: {
- groupPost: "{php echo url('user/group/post')}",
- groupDel: "{php echo url('user/group/del')}",
- }
- });
- angular.bootstrap($('#js-user-group-display'), ['userGroup']);
- </script>
- {template 'common/footer'}
|