system.html 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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-danger" style="float: right;margin-right: 10px;height: 30px;font-size: 12px;" ng-click="disableAll()">全部禁用</button>-->
  18. <button class="btn btn-primary" style="float: right; margin-right: 10px; height: 30px;font-size: 12px;" ng-click="getMachineRules()">刷新</button>
  19. <input class="form-control witdh-200" placeholder="关键字" ng-model="searchKey">
  20. <div class="control-group" style="float:right;margin-right: 10px;margin-bottom: -10px;">
  21. <selectize id="gsInput" class="selectize-input-200" config="macsInputConfig" options="macsInputOptions" ng-model="macInputModel"
  22. placeholder="机器"></selectize>
  23. </div>
  24. </div>
  25. <!--.tools-header -->
  26. <div class="card-body" style="padding: 0px 0px;">
  27. <table class="table" style="border-left: none; border-right:none;margin-top: 10px;">
  28. <thead>
  29. <tr style="background: #F3F5F7;">
  30. <td style="width: 40%;">
  31. 阈值类型
  32. </td>
  33. <td style="width: 40%;">
  34. 单机阈值
  35. </td>
  36. <td style="width: 12%;">
  37. 操作
  38. </td>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <tr dir-paginate="rule in rules | filter : searchKey | itemsPerPage: rulesPageConfig.pageSize " current-page="rulesPageConfig.currentPageIndex"
  43. pagination-id="entriesPagination">
  44. <td style="word-wrap:break-word;word-break:break-all;">
  45. <span ng-if="rule.highestSystemLoad >= 0">系统 load(自适应)</span>
  46. <span ng-if="rule.avgRt >= 0">平均 RT</span>
  47. <span ng-if="rule.maxThread >= 0">并发数</span>
  48. <span ng-if="rule.qps >= 0">入口 QPS</span>
  49. <span ng-if="rule.highestCpuUsage >= 0">CPU 使用率</span>
  50. </td>
  51. <td style="word-wrap:break-word;word-break:break-all;">
  52. <span ng-if="rule.highestSystemLoad >= 0">{{rule.highestSystemLoad}}</span>
  53. <span ng-if="rule.avgRt >= 0">{{rule.avgRt}}</span>
  54. <span ng-if="rule.maxThread >= 0">{{rule.maxThread}}</span>
  55. <span ng-if="rule.qps >= 0">{{rule.qps}}</span>
  56. <span ng-if="rule.highestCpuUsage >= 0">{{rule.highestCpuUsage}}</span>
  57. </td>
  58. <td>
  59. <button class="btn btn-xs btn-default" type="button" ng-click="editRule(rule)" style="font-size: 12px; height:25px;">编辑</button>
  60. <button class="btn btn-xs btn-default" type="button" ng-click="deleteRule(rule)" style="font-size: 12px; height:25px;">删除</button>
  61. </td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. </div>
  66. <!-- .card-body -->
  67. <div class="pagination-footer">
  68. <dir-pagination-controls boundary-links="true" template-url="app/views/pagination.tpl.html" pagination-id="entriesPagination"
  69. on-page-change="">
  70. </dir-pagination-controls>
  71. <div class="tools" style="">
  72. <span>共 {{rulesPageConfig.totalCount}} 条记录, </span>
  73. <span>
  74. 每页
  75. <input class="form-control" ng-model="rulesPageConfig.pageSize"> 条记录,
  76. </span>
  77. <span>第 {{rulesPageConfig.currentPageIndex}} / {{rulesPageConfig.totalPage}} 页</span>
  78. </div>
  79. <!-- .tools -->
  80. </div>
  81. <!-- pagination-footer -->
  82. </div>
  83. <!-- .card -->
  84. </div>
  85. <!-- .col-md-12 -->
  86. </div>
  87. <!-- -->
  88. </div>
  89. <!-- .container-fluid -->