| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <style>
- #user-lists{
- max-height: 600px;
- overflow-x: hidden;
- overflow-y: scroll;
- }
- @media screen and (max-width: 1366px){
- #user-lists{
- max-height: 368px;
- }
- }
- @media screen and (max-width: 1600px){
- #user-lists{
- max-height: 480px;
- }
- }
- </style>
- <div class="modal-header">
- <h3 class="modal-title">
- 权限转移
- </h3>
- </div>
- <div class="form-group" id="window-search" style="height: 36px; margin-bottom: 0; margin-top: 5px;">
- <div class="col-sm-12">
- <input type="text" class="form-control input-sm ng-pristine ng-invalid ng-invalid-required ng-touched" required="" placeholder="输入用户名关键词搜索" autofocus="" ng-model="keyword" ng-search="onSearch(keyword)" />
- <a class="btn input-group-addon" ng-click="onSearch()">搜索</a>
- </div>
- </div>
- <div class="modal-body" id="user-lists">
- <div>
- <table width="99%" class="block table table-bordered table-striped table-hover">
- <thead>
- <th width="80px;">用户UU</th>
- <th width="100px;">用户名称</th>
- <th width="40px;"></th>
- </thead>
- <tbody ng-if="thisUser.sys">
- <!-- 当前用户是管理员时 -->
- <tr ng-repeat="user in userinfos| filter: keyword" ng-if="thisUser.userUU != user.userUU" style="overflow-y:scroll; width:100%;max-height:500px" ng-if="!user.sys">
- <td width="80px;">{{user.userUU}}</td>
- <td width="100px;">{{user.userName}}</td>
- <td width="40px;" style="text-align: center"><input ng-model="user.transfer" name="checkbox" ng-click="checkOne(user)" ng-checked="user.checked" type="checkbox" title="选择"></td>
- </tr>
- </tbody>
- <tbody ng-if="!thisUser.sys && thisUser.transfer">
- <!-- 当前用户是被管理员转移权限时 -->
- <tr ng-repeat="user in userinfos| filter: keyword" ng-if="!user.sys && thisUser.userUU != user.userUU">
- <td width="80px;">{{user.userUU}}</td>
- <td width="100px;">{{user.userName}}</td>
- <td width="40px;" style="text-align: center"><input ng-model="user.transfer" name="checkbox" ng-click="checkOne(user)" ng-checked="user.checked" type="checkbox" title="选择"></td>
- </tr>
- </tbody>
- <tbody ng-if="!thisUser.sys && !thisUser.transfer">
- <!-- 当前用户是非管理员,但有查看权限时 -->
- <tr ng-repeat="user in userinfos| filter: keyword" ng-if="!user.distribute && !user.sys && thisUser.userUU != user.userUU">
- <td width="80px;">{{user.userUU}}</td>
- <td width="100px;">{{user.userName}}</td>
- <td width="40px;" style="text-align: center"><input ng-model="user.transfer" name="distribute" ng-click="checkOne(user)" ng-checked="user.checked" type="checkbox" title="选择"></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="modal-footer">
- <button class="btn btn-primary" ng-click="close(true)" ng-disabled="!isChanged">确认</button>
- <button class="btn btn-default" ng-click="close(false)" type="button">取消</button>
- </div>
|