authority.html 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <div class="row" style="margin-left: 1px; margin-top:10px; height: 50px;">
  2. <div class="col-md-6" style="margin-bottom: 10px;">
  3. <span style="font-size: 30px;font-weight: bold;">{{app}}</span>
  4. </div>
  5. <div class="col-md-6">
  6. <button class="btn btn-default-inverse" style="float: right; margin-right: 10px;" ng-disabled="!macInputModel" ng-click="addNewRule()">
  7. <i class="fa fa-plus"></i>&nbsp;&nbsp;新增授权规则</button>
  8. </div>
  9. </div>
  10. <div class="separator"></div>
  11. <div class="container-fluid">
  12. <div class="row" style="margin-top: 20px; margin-bottom: 20px;">
  13. <div class="col-md-12">
  14. <div class="card">
  15. <div class="inputs-header">
  16. <span class="brand" style="font-size: 13px;">授权规则</span>
  17. <button class="btn btn-primary" style="float: right; margin-right: 10px; height: 30px;font-size: 12px;" ng-click="getMachineRules()">刷新</button>
  18. <input class="form-control witdh-200" placeholder="关键字" ng-model="searchKey">
  19. <div class="control-group" style="float:right;margin-right: 10px;margin-bottom: -10px;">
  20. <selectize id="gsInput" class="selectize-input-200" config="macsInputConfig" options="macsInputOptions" ng-model="macInputModel"
  21. placeholder="机器"></selectize>
  22. </div>
  23. </div>
  24. <!--.tools-header -->
  25. <div class="card-body" style="padding: 0px 0px;">
  26. <table class="table" style="border-left: none; border-right:none;margin-top: 10px;">
  27. <thead>
  28. <tr style="background: #F3F5F7;">
  29. <td style="width: 40%">
  30. 资源名
  31. </td>
  32. <td style="width: 10%;">
  33. 流控应用
  34. </td>
  35. <td style="width: 10%;">
  36. 授权类型
  37. </td>
  38. <td style="width: 12%;">
  39. 操作
  40. </td>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <tr dir-paginate="ruleEntity in rules | filter: searchKey | itemsPerPage: rulesPageConfig.pageSize " current-page="rulesPageConfig.currentPageIndex"
  45. pagination-id="entriesPagination">
  46. <td style="word-wrap:break-word;word-break:break-all;">{{ruleEntity.rule.resource}}</td>
  47. <td style="word-wrap:break-word;word-break:break-all;">{{ruleEntity.rule.limitApp }}</td>
  48. <td>
  49. <span ng-if="ruleEntity.rule.strategy == 0">白名单</span>
  50. <span ng-if="ruleEntity.rule.strategy == 1">黑名单</span>
  51. </td>
  52. <td>
  53. <button class="btn btn-xs btn-default" type="button" ng-click="editRule(ruleEntity)" style="font-size: 12px; height:25px;">编辑</button>
  54. <button class="btn btn-xs btn-default" type="button" ng-click="deleteRule(ruleEntity)" style="font-size: 12px; height:25px;">删除</button>
  55. </td>
  56. </tr>
  57. </tbody>
  58. </table>
  59. </div>
  60. <!-- .card-body -->
  61. <div class="pagination-footer">
  62. <dir-pagination-controls boundary-links="true" template-url="app/views/pagination.tpl.html" pagination-id="entriesPagination"
  63. on-page-change="">
  64. </dir-pagination-controls>
  65. <div class="tools" style="">
  66. <span>共 {{rulesPageConfig.totalCount}} 条记录, </span>
  67. <span>
  68. 每页
  69. <input class="form-control" ng-model="rulesPageConfig.pageSize"> 条记录
  70. </span>
  71. </div>
  72. <!-- .tools -->
  73. </div>
  74. <!-- pagination-footer -->
  75. </div>
  76. <!-- .card -->
  77. </div>
  78. <!-- .col-md-12 -->
  79. </div>
  80. <!-- -->
  81. </div>
  82. <!-- .container-fluid -->