transfer_userInfo.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <style>
  2. #user-lists{
  3. max-height: 600px;
  4. overflow-x: hidden;
  5. overflow-y: scroll;
  6. }
  7. @media screen and (max-width: 1366px){
  8. #user-lists{
  9. max-height: 368px;
  10. }
  11. }
  12. @media screen and (max-width: 1600px){
  13. #user-lists{
  14. max-height: 480px;
  15. }
  16. }
  17. </style>
  18. <div class="modal-header">
  19. <h3 class="modal-title">
  20. 权限转移
  21. </h3>
  22. </div>
  23. <div class="form-group" id="window-search" style="height: 36px; margin-bottom: 0; margin-top: 5px;">
  24. <div class="col-sm-12">
  25. <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)" />
  26. <a class="btn input-group-addon" ng-click="onSearch()">搜索</a>
  27. </div>
  28. </div>
  29. <div class="modal-body" id="user-lists">
  30. <div>
  31. <table width="99%" class="block table table-bordered table-striped table-hover">
  32. <thead>
  33. <th width="80px;">用户UU</th>
  34. <th width="100px;">用户名称</th>
  35. <th width="40px;"></th>
  36. </thead>
  37. <tbody ng-if="thisUser.sys">
  38. <!-- 当前用户是管理员时 -->
  39. <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">
  40. <td width="80px;">{{user.userUU}}</td>
  41. <td width="100px;">{{user.userName}}</td>
  42. <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>
  43. </tr>
  44. </tbody>
  45. <tbody ng-if="!thisUser.sys && thisUser.transfer">
  46. <!-- 当前用户是被管理员转移权限时 -->
  47. <tr ng-repeat="user in userinfos| filter: keyword" ng-if="!user.sys && thisUser.userUU != user.userUU">
  48. <td width="80px;">{{user.userUU}}</td>
  49. <td width="100px;">{{user.userName}}</td>
  50. <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>
  51. </tr>
  52. </tbody>
  53. <tbody ng-if="!thisUser.sys && !thisUser.transfer">
  54. <!-- 当前用户是非管理员,但有查看权限时 -->
  55. <tr ng-repeat="user in userinfos| filter: keyword" ng-if="!user.distribute && !user.sys && thisUser.userUU != user.userUU">
  56. <td width="80px;">{{user.userUU}}</td>
  57. <td width="100px;">{{user.userName}}</td>
  58. <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>
  59. </tr>
  60. </tbody>
  61. </table>
  62. </div>
  63. </div>
  64. <div class="modal-footer">
  65. <button class="btn btn-primary" ng-click="close(true)" ng-disabled="!isChanged">确认</button>
  66. <button class="btn btn-default" ng-click="close(false)" type="button">取消</button>
  67. </div>