seninel部署
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
6.1KB

  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="btn-group" style="float:right; margin-right: 30px;" ng-show="!isTreeView" ng-click="treeView()">
  6. <button class="btn btn-default-inverse" style="height: 30px;font-size: 12px;">树状视图</button>
  7. <button class="btn btn-main" style="height: 30px;font-size: 12px;">列表视图</button>
  8. </div>
  9. <div class="btn-group" style="float:right; margin-right: 30px;" ng-show="isTreeView" ng-click="listView()">
  10. <button class="btn btn-main" style="height: 30px;font-size: 12px;">树状视图</button>
  11. <button class="btn btn-default-inverse" style="height: 30px;font-size: 12px;">列表视图</button>
  12. </div>
  13. </div>
  14. <div class="separator"></div>
  15. <div class="container-fluid">
  16. <div class="row" style="margin-top: 20px; margin-bottom: 20px;">
  17. <div class="col-md-12">
  18. <div class="card">
  19. <div class="inputs-header">
  20. <span class="brand" style="font-size: 13px;">簇点链路</span>
  21. <button class="btn btn-primary" style="float: right; margin-right: 10px; height: 30px;font-size: 12px;" ng-click="queryIdentities()">刷新</button>
  22. <!-- <button class="btn btn-danger" style="float: right;margin-right: 10px;height: 30px;font-size: 12px;" ng-click="expandAll()"
  23. ng-if="!isExpand && isTreeView">展开</button>
  24. <button class="btn btn-danger" style="float: right;margin-right: 10px;height: 30px;font-size: 12px;" ng-click="collapseAll()"
  25. ng-if="isExpand && isTreeView">折叠</button> -->
  26. <input class="form-control witdh-200" placeholder="关键字" ng-model="searchKey" ng-change="searchChange(searchKey)">
  27. <div class="control-group" style="float:right;margin-right: 10px;margin-bottom: -10px;">
  28. <selectize id="gsInput" class="selectize-input-200" config="macsInputConfig" options="macsInputOptions" ng-model="macInputModel"
  29. placeholder="机器"></selectize>
  30. </div>
  31. </div>
  32. <!--.tools-header -->
  33. <div class="card-body" style="padding: 0px 0px;">
  34. <table rz-table id="identities" class="table" style="border-left: none; border-right:none;margin-top: 10px;">
  35. <thead>
  36. <thead>
  37. <tr style="background: #F3F5F7;">
  38. <td style="width: 40%;">
  39. 资源名
  40. </td>
  41. <td style="width: 7%;">通过QPS</td>
  42. <td style="width: 7%;">拒绝QPS</td>
  43. <td style="width: 5%;">线程数</td>
  44. <td style="width: 6%;">平均RT</td>
  45. <td style="width: 6%;">分钟通过</td>
  46. <td style="width: 6%;">分钟拒绝</td>
  47. <td style="width: 23%">操作</td>
  48. </tr>
  49. <tr></tr>
  50. </thead>
  51. <tbody>
  52. <tr dir-paginate="resource in identities | itemsPerPage: pageSize" current-page="currentPage" pagination-id="entriesPagination"
  53. data-tt-id="{{resource.ttId}}" data-tt-parent-id="{{resource.parentTtId}}" data-tt-visible="{{resource.visible}}">
  54. <td style="white-space: normal; text-align: left;">
  55. <!--<a ng-click="copyIdentity(resource.resource)"-->
  56. <!--title="{{resource.resource}} 单击复制到剪切板">-->
  57. <span style="word-wrap:break-word;word-break:break-all;">{{resource.resource}}</span>
  58. <!--</a>-->
  59. </td>
  60. <td>{{resource.passQps}}</td>
  61. <td>{{resource.blockQps}}</td>
  62. <td>{{resource.threadNum}}</td>
  63. <td>{{resource.averageRt}}</td>
  64. <td>{{resource.oneMinutePass}}</td>
  65. <td ng-if="$index==pageSize-1 || (currentPage>=identities.length/pageSize && $index==identities.length%pageSize-1)" ng-init="initTreeTable()">
  66. {{resource.oneMinuteBlock}}</td>
  67. <td ng-if="!($index==pageSize-1 || (currentPage>=identities.length/pageSize && $index==identities.length%pageSize-1))"> {{resource.oneMinuteBlock}}</td>
  68. <td>
  69. <div class="control-group">
  70. <button class="btn btn-xs btn-default" type="button" ng-click="addNewFlowRule(resource.resource)" style="font-size: 12px; height:25px;">
  71. <i class="fa fa-plus"></i>&nbsp;流控</button>
  72. <button class="btn btn-xs btn-default" type="button" ng-click="addNewDegradeRule(resource.resource)" style="font-size: 12px; height:25px;">
  73. <i class="fa fa-plus"></i>&nbsp;降级</button>
  74. <button class="btn btn-xs btn-default" type="button" ng-click="addNewParamFlowRule(resource.resource)" style="font-size: 12px; height:25px;">
  75. <i class="fa fa-plus"></i>&nbsp;热点</button>
  76. <button class="btn btn-xs btn-default" type="button" ng-click="addNewAuthorityRule(resource.resource)" style="font-size: 12px; height:25px;">
  77. <i class="fa fa-plus"></i>&nbsp;授权</button>
  78. </div>
  79. </td>
  80. </tr>
  81. </tbody>
  82. </table>
  83. </div>
  84. <!-- .card-body -->
  85. <div class="pagination-footer">
  86. <dir-pagination-controls boundary-links="true" template-url="app/views/pagination.tpl.html" pagination-id="entriesPagination"
  87. on-page-change="">
  88. </dir-pagination-controls>
  89. <div class="tools">
  90. <span>共 {{totalCount}} 条记录, </span>
  91. <span>
  92. 每页
  93. <input class="form-control" ng-model="pageSize"> 条记录
  94. </span>
  95. <!--<span>第 {{currentPage}} / {{totalPage}} 页</span>-->
  96. </div>
  97. <!-- .tools -->
  98. </div>
  99. <!-- pagination-footer -->
  100. </div>
  101. <!-- .card -->
  102. </div>
  103. <!-- .col-md-12 -->
  104. </div>
  105. <!-- -->
  106. </div>
  107. <!-- .container-fluid -->