fix alarm and performance chart bug
[usecase-ui.git] / usecaseui-monitor / src / main / webapp / app / uui / fusion / scripts / view-models / performance.html
1 <!--
2     Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8             http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15 -->
16 <div class="templatemo-content-wrapper" ng-controller="perGridCtrl">
17     <div class="templatemo-content">
18         <h3>Performance</h3>
19         <div>
20             <div class="table-container" ng-controller="pipeCtrl as mc">
21                 <ul class="list" style="padding-left:0;">
22                     <li>Source Id
23                         <input type="text" ng-model="seek1" />
24                     </li>
25                     <li>Source Name
26                         <input type="text" ng-model="seek2" />
27                     </li>
28                     <li>Priority
29                         <input type="text" ng-model="seek3" />
30                     </li>
31                     <button class="btn btn-primary" ng-click="mc.callServer(tableState)">search</button>
32                 </ul>
33                 <ul class="list" style="padding-left:0;" ng-show='menuState.show'>
34                     <li>
35                         <p class="input-group" style="float:left">
36                             <div style="float:left;line-height:100px;padding-right:4px;">StartTime</div>
37                             <div style="float:left;padding-top:33px">
38                                 <input type="text" class="form-control" readonly ng-click="open1()" uib-datepicker-popup ng-model="seek4" is-open="popup1.opened"
39                                     datepicker-options ng-required="true" close-text="Close" />
40                             </div>
41                             <div style="display:block;float:left;" uib-timepicker ng-model="seek4" hour-step minute-step show-meridian></div>
42                         </p>
43                     </li>
44                     <li>
45                         <p class="input-group" style="float:left">
46                             <div style="float:left;line-height:100px;padding-right:4px;">End Time</div>
47                             <div style="float:left;padding-top:33px">
48                                 <input type="text" class="form-control" readonly ng-click="open2()" uib-datepicker-popup ng-model="seek5" is-open="popup2.opened"
49                                     datepicker-options ng-required="true" close-text="Close" />
50                             </div>
51                             <div style="display:block;float:left" uib-timepicker ng-model="seek5" hour-step minute-step show-meridian></div>
52                         </p>
53                     </li>
54                 </ul>
55                 <div class="row">
56                     <div class="col-md-5" style="border-top:1px dotted #ddd">
57                     </div>
58                     <div class="col-md-2" style="border:1px dotted #ddd;border-top:none;text-align:center" ng-click="toggleMenu()">
59                         <span class="caret"></span>
60                     </div>
61                     <div class="col-md-5" style="border-top:1px dotted #ddd">
62                     </div>
63                 </div>
64                 <div class="row">
65                     <div class="col-md-11">
66                         <div class="table-responsive">
67                             <h4 class="margin-bottom-15">Query Result</h4>
68                         </div>
69                     </div>
70                     <div class="col-md-1">
71                         <button ng-click="toChart()" class="btn btn-primary">Chart</button>
72                     </div>
73                 </div>
74
75
76                 <table class="table" st-pipe="mc.callServer" st-table="mc.displayed">
77                     <thead>
78                         <tr>
79                             <th width="10%">Id</th>
80                             <th width="25%">Event Name</th>
81                             <th width="25%">Source Name</th>
82                             <th width="10%">Priority</th>
83                             <th width="20%">Start Time</th>
84                             <th>Option</th>
85                         </tr>
86                     </thead>
87                     <tbody ng-show="!mc.isLoading">
88                         <tr ng-repeat="row in mc.displayed track by $index">
89                             <td>{{tableState.pagination.start+$index+1}}</td>
90                             <td>{{row.performanceHeader.eventName}}</td>
91                             <td>{{row.performanceHeader.sourceName}}</td>
92                             <td>{{row.performanceHeader.priority}}</td>
93                             <td>{{row.performanceHeader.createTime}}</td>
94                             <td>
95                                 <button ng-click="jump(row.performanceHeader.id)" class="btn btn-primary">Detail</button>
96                             </td>
97                         </tr>
98                     </tbody>
99                     <tbody ng-show="mc.isLoading">
100                         <tr>
101                             <td colspan="4" class="text-center">
102                                 <div class="loading-indicator"></div>
103                             </td>
104                         </tr>
105                     </tbody>
106                     <tfoot>
107                         <tr>
108                             <td class="text-center" style="padding-top:30px" colspan="3">
109                                 <label for="items" style="float:left;width:100px;line-height:30px;">items by page</label>
110                                 <div style="float:left;width:130px;">
111                                     <input class="input-sm form-control" name="items" id="items" type="number" ng-model="itemsByPage" />
112                                 </div>
113                             </td>
114                             <td class="text-center" st-pagination="" st-items-by-page="itemsByPage" st-template="app/uui/fusion/scripts/view-models/pagination.html"
115                                 colspan="3">
116                             </td>
117                         </tr>
118                     </tfoot>
119                 </table>
120             </div>
121         </div>
122     </div>
123 </div>