diff options
author | 2017-12-05 16:07:51 +0800 | |
---|---|---|
committer | 2017-12-05 16:08:00 +0800 | |
commit | 62430d66781234816d4eee66600380b915c04089 (patch) | |
tree | 9173411c78ffc6a44db6a75b0b8ab3545be212a1 /usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models | |
parent | 3caa21ed184ef2c75902896433d2ec485fd33f82 (diff) |
Fix alarm and performance display bugs
Change-Id: I12b07d4252336de7e4a4c64ea578ef625873e432
Issue-ID: USECASEUI-62
Signed-off-by: shentao <shentao@chinamobile.com>
Diffstat (limited to 'usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models')
7 files changed, 342 insertions, 184 deletions
diff --git a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/alarm-chart.html b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/alarm-chart.html index c04f1cff..55b8bce5 100644 --- a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/alarm-chart.html +++ b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/alarm-chart.html @@ -14,89 +14,117 @@ limitations under the License. --> <style> - body { - overflow-y:scroll; - } - text { - font: 12px sans-serif; - } - svg { - display: block; - } - #chart svg { - height: 200px; - width: 400px; - min-width: 100px; - min-height: 100px; - } - tr.z-row-over > td.z-row-inner, tr.z-row-over > .z-cell { background-color: rgb(255, 255, 255); } - .nodatadiv { - display: table-cell; - width: 600px; - height:300px; - text-align:center; - vertical-align: middle; - } - .nodatainner { - padding: 10px; - } - </style> - <!--/.navbar-collapse --> - <div class="templatemo-content-wrapper"> - <div class="templatemo-content"> - <h1>alarm Chart</h1> - <div class="row" style="min-height: 500px" ng-controller="alarmchartCtrl"> - <div class="col-md-12 col-sm-12"> - <div class="row"> - <div class="col-md-6"> - <p class="input-group" style="float:left"> - <label style="float:left;width:80px;line-height:100px">startTime:</label> - <div style="float:left;width:100px;padding-top:33px"> - <input type="text" class="form-control" readonly ng-change="startTimeChanged()" uib-datepicker-popup ng-click="open1()" ng-model="startTime" is-open="popup1.opened" datepicker-options ng-required="true" close-text="Close" /> - </div> - <div style="display:block;float:left" uib-timepicker ng-model="startTime" ng-change="startTimeChanged()" hour-step minute-step show-meridian></div> - </p> + body { + overflow-y: scroll; + } + + text { + font: 12px sans-serif; + } + + svg { + display: block; + } + + #chart svg { + height: 200px; + width: 400px; + min-width: 100px; + min-height: 100px; + } + + tr.z-row-over > td.z-row-inner, tr.z-row-over > .z-cell { + background-color: rgb(255, 255, 255); + } + + .nodatadiv { + display: table-cell; + width: 600px; + height: 300px; + text-align: center; + vertical-align: middle; + } + + .nodatainner { + padding: 10px; + } +</style> +<!--/.navbar-collapse --> +<div class="templatemo-content-wrapper"> + <div class="templatemo-content"> + <h1>alarm Chart</h1> + <div class="row" style="min-height: 500px" ng-controller="alarmchartCtrl"> + <div class="col-md-12 col-sm-12"> + <div class="row"> + <div class="col-md-6"> + <p class="input-group" style="float:left"> + <label style="float:left;width:80px;line-height:100px">startTime:</label> + <div style="float:left;width:100px;padding-top:33px"> + <input type="text" class="form-control" readonly ng-change="startTimeChanged()" + uib-datepicker-popup ng-click="open1()" ng-model="startTime" is-open="popup1.opened" + datepicker-options ng-required="true" close-text="Close"/> + </div> + <div style="display:block;float:left" uib-timepicker ng-model="startTime" + ng-change="startTimeChanged()" hour-step minute-step show-meridian></div> + </p> + </div> + + <div class="col-md-6" style="float:left"> + <p class="input-group" style="float:left"> + <label style="float:left;width:80px;line-height:100px">endTime:</label> + <div style="float:left;width:100px;padding-top:33px;"> + <input type="text" class="form-control" readonly ng-change="endTimeChanged()" + ng-click="open2()" uib-datepicker-popup ng-model="endTime" is-open="popup2.opened" + datepicker-options ng-required="true" close-text="Close"/> + </div> + <div style="display:block;float:left" uib-timepicker ng-model="endTime" + ng-change="endTimeChanged()" hour-step minute-step show-meridian></div> + </p> + </div> + <div class="col-md-6" style="width:100%;padding-bottom:20px;"> + <p> + <div style="float:left;padding-right:30px;"> + <label style="float:left;width:80px;line-height:30px;">sourceId:</label> + <div style="float:left;width:130px;"> + <select class="form-control" ng-change="sourceIdChanged()" ng-model="sourceId" + ng-options="s for s in sourceIds"> + <option value="">--- All ---</option> + </select> </div> + </div> + <div style="float:left"> + <button style="padding-top:6px;" class="btn btn-default" ng-click="genDiagram()">submit + </button> + </div> + </p> + </div> + <div style="float:left;padding-left:15px;"> + <label style="float:left;width:50px;line-height:30px;">mode:</label> + <div style="float:left;width:100px;"> + <select class="form-control" ng-change="showModeIdChanged()" ng-model="showModeId" + ng-options="sm for sm in showModeIds"> + <option value="">-- Auto --</option> + </select> + </div> + </div> - <div class="col-md-6" style="float:left"> - <p class="input-group" style="float:left"> - <label style="float:left;width:80px;line-height:100px">endTime:</label> - <div style="float:left;width:100px;padding-top:33px;"> - <input type="text" class="form-control" readonly ng-change="endTimeChanged()" ng-click="open2()" uib-datepicker-popup ng-model="endTime" is-open="popup2.opened" datepicker-options ng-required="true" close-text="Close" /> - </div> - <div style="display:block;float:left" uib-timepicker ng-model="endTime" ng-change="endTimeChanged()" hour-step minute-step show-meridian></div> - </p> + <div class="col-md-6 col-sm-12" style="width:100%"> + <div class="panel panel-success" ng-show="chartShow"> + <div class="panel-heading">Chart + <button ng-click="generateCsv('cpu');" class="btn btn-primary" + style="float: right;margin-top:-7px;display: none ">CSV + </button> </div> - <div class="col-md-6" style="width:100%;padding-bottom:20px;"> - <p> - <div style="float:left;padding-right:30px;"> - <label style="float:left;width:80px;line-height:30px;">sourceId:</label> - <div style="float:left;width:130px;"> - <select class="form-control" ng-change="sourceIdChanged()" ng-model="sourceId" ng-options="s for s in sourceIds" > - <option value="">--- chose ---</option> - </select> - </div> - </div> - <div style="float:left" ng-show="goIsShow"> - <button style="padding-top:6px;" class="btn btn-default" ng-click="genDiagram()">submit</button> - </div> - </p> - </div> - - <div class="col-md-6 col-sm-12" style="width:100%"> - <div class="panel panel-success" ng-show="chartShow"> - <div class="panel-heading">Chart - <button ng-click="generateCsv('cpu');" class="btn btn-primary" style="float: right;margin-top:-7px;display: none ">CSV</button> - </div> - <div align="center"><H3></H3></div><div id="chart_alarm"> <svg></svg> </div> - </div> - </div> - </div> + <div ng-show="ndaShow" style="text-align: center"><h2>No Data Available</h2></div> + <nvd3 ng-show="hdaShow" options="options" data="data" api="api" ></nvd3> + </div> </div> - <br /> - <br /> - <br /> - <br /> </div> </div> - </div>
\ No newline at end of file + <br/> + <br/> + <br/> + <br/> + </div> + </div> +</div>
\ No newline at end of file diff --git a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/alarm-details.html b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/alarm-details.html index 15cebe57..f0c91660 100644 --- a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/alarm-details.html +++ b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/alarm-details.html @@ -95,5 +95,6 @@ </tbody> </table> </div> - <br><br> + <br /> + <br /> </div>
\ No newline at end of file diff --git a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/alarm.html b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/alarm.html index 612631d6..1f0611ed 100644 --- a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/alarm.html +++ b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/alarm.html @@ -17,63 +17,124 @@ <h3>VNF Alarm</h3> <div class="row margin-bottom-20"> </div> - <!--div class="row margin-bottom-10"> - <div class="col-md-4"> - <ul class="nav nav-pills"> - <li style="background-color: #ddd" ng-repeat="O in open" - ng-click="selectOpen(O.id)" - ng-class="{active:activeOpen(O.id)}"> - <a href=""> - {{O.name}} - <span class="badge">{{O.count}}</span> - </a> - </li> - <input type="hidden" ng-model="selectedOpen"/> - </ul> + <div class="table-container" ng-controller="pipeAlarmCtrl as amc"> + <div class="row margin-bottom-10"> + <div class="col-md-4"> + <ul class="nav nav-pills"> + <li style="background-color: #ddd" ng-repeat="O in open" + ng-click="selectOpen(O.id)" + ng-class="{active:activeOpen(O.id)}"> + <a href=""> + {{O.name}} + <span class="badge">{{O.count}}</span> + </a> + </li> + <input type="hidden" ng-model="selectedOpen"/> + </ul> + </div> </div> - </div--> - <ul class="list"> - <li>Source Id <input ng-model="condition1" type="text"/></li> - <li>Source Name <input ng-model="condition2" type="text"/></li> - <li>Priority <input ng-model="condition3" type="text"/></li> - <button ng-click="alarmSearch()">search</button> - </ul> - <ul class="list" ng-show='menuState.show'> - <li><p class="input-group" style="float:left"> - <div style="float:left;line-height:100px;padding-right:4px;">Start Time</div> - <div style="float:left;padding-top:33px"><input type="text" class="form-control" readonly ng-click="open1()" uib-datepicker-popup ng-model="condition4" is-open="popup1.opened" datepicker-options ng-required="true" close-text="Close" /></div> - <div style="display:block;float:left" uib-timepicker ng-model="condition4" hour-step minute-step show-meridian></div> - </p></li> - <li><p class="input-group" style="float:left"> - <div style="float:left;line-height:100px;padding-right:4px;">End Time</div> - <div style="float:left;padding-top:33px"><input type="text" class="form-control" ng-click="open2()" readonly uib-datepicker-popup ng-model="condition5" is-open="popup2.opened" datepicker-options ng-required="true" close-text="Close" /></div> - <div style="display:block;float:left" uib-timepicker ng-model="condition5" hour-step minute-step show-meridian></div> - </p></li> - </ul> - <div class="row"> - <div class="col-md-5" style="border-top:1px dotted #ddd"> + <ul class="list" style="padding-left:0;"> + <li>Source Id <input ng-model="condition1" type="text"/></li> + <li>Source Name <input ng-model="condition2" type="text"/></li> + <li>Priority <input ng-model="condition3" type="text"/></li> + <button class="btn btn-primary" ng-click="amc.callServer(tableState)">search</button> + </ul> + <ul class="list" style="padding-left:0;" ng-show='menuState.show'> + <li><p class="input-group" style="float:left"> + <div style="float:left;line-height:100px;padding-right:4px;">Start Time</div> + <div style="float:left;padding-top:33px"><input type="text" class="form-control" readonly + ng-click="open1()" uib-datepicker-popup + ng-model="condition4" is-open="popup1.opened" + datepicker-options ng-required="true" + close-text="Close"/></div> + <div style="display:block;float:left" uib-timepicker ng-model="condition4" hour-step minute-step + show-meridian></div> + </p></li> + <li><p class="input-group" style="float:left"> + <div style="float:left;line-height:100px;padding-right:4px;">End Time</div> + <div style="float:left;padding-top:33px"><input type="text" class="form-control" ng-click="open2()" + readonly uib-datepicker-popup ng-model="condition5" + is-open="popup2.opened" datepicker-options + ng-required="true" close-text="Close"/></div> + <div style="display:block;float:left" uib-timepicker ng-model="condition5" hour-step minute-step + show-meridian></div> + </p></li> + </ul> + <div class="row"> + <div class="col-md-5" style="border-top:1px dotted #ddd"> + </div> + <div class="col-md-2" style="border:1px dotted #ddd;border-top:none;text-align:center" + ng-click="toggleMenu()"> + <span class="caret"></span> + </div> + <div class="col-md-5" style="border-top:1px dotted #ddd"> + </div> </div> - <div class="col-md-2" style="border:1px dotted #ddd;border-top:none;text-align:center" ng-click="toggleMenu()"> - <span class="caret"></span> + <div class="row"> + <div class="col-md-11"> + <h4 class="margin-bottom-15">Query Result</h4> + </div> + <div class="col-md-1"> + <!--<button ng-click="generateCsv()" class="btn btn-primary">CSV</button>--> + <button ng-click="toChart()" class="btn btn-primary">Chart</button> + </div> </div> - <div class="col-md-5" style="border-top:1px dotted #ddd" > - </div> - </div> - <div class="row"> - <div class="col-md-11"> - <h4 class="margin-bottom-15">Query Result</h4> - </div> - <div class="col-md-1"> - <!--<button ng-click="generateCsv()" class="btn btn-primary">CSV</button>--> - <button ng-click="toChart()" class="btn btn-primary">Chart</button> + <label for="items" style="float:left;width:100px;line-height:30px;">items by page</label> + <div style="float:left;width:130px;"> + <input class="input-sm form-control" name="items" id="items" type="number" ng-model="itemsByPage" /> </div> - </div> - <div> - <div ui-grid="gridOptions" style="width:100%;text-align:center;" ui-grid-edit - ui-grid-pagination - ui-grid-selection ui-grid-resize-columns ui-grid-auto-resize> + <div> + <table class="table" st-pipe="amc.callServer" st-table="amc.displayed"> + <thead> + <tr> + <th>Id</th> + <th>Event Id</th> + <th>Event Name</th> + <th>Source Id</th> + <th>Source Name</th> + <th>Reporting Entity Id</th> + <th>Reporting Entity Name</th> + <th>Priority</th> + <th>Start Time</th> + <th>Status</th> + <th>Option</th> + </tr> + </thead> + <tbody ng-show="!amc.isLoading"> + <tr ng-repeat="row in amc.displayed"> + <td>{{row.alarmsHeader.id}}</td> + <td>{{row.alarmsHeader.eventId}}</td> + <td>{{row.alarmsHeader.eventName}}</td> + <td>{{row.alarmsHeader.sourceId}}</td> + <td>{{row.alarmsHeader.sourceName}}</td> + <td>{{row.alarmsHeader.reportingEntityId}}</td> + <td>{{row.alarmsHeader.reportingEntityName}}</td> + <td>{{row.alarmsHeader.priority}}</td> + <td>{{row.alarmsHeader.createTime}}</td> + <td>{{row.alarmsHeader.status == 1?"Active":"Closed"}}</td> + <td> + <button ng-click="jump(row.alarmsHeader.sourceId)" class="btn btn-primary">Details</button> + </td> + </tr> + </tbody> + <tbody ng-show="amc.isLoading"> + <tr> + <td colspan="4" class="text-center"> + <div class="loading-indicator"></div> + </td> + </tr> + </tbody> + <tfoot> + <tr> + <td class="text-center" st-pagination="" st-items-by-page="itemsByPage" + st-template="app/uui/fusion/scripts/view-models/pagination.html" colspan="9"> + </td> + </tr> + </tfoot> + </table> </div> </div> + </div> diff --git a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/pagination.html b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/pagination.html new file mode 100644 index 00000000..7b9ff077 --- /dev/null +++ b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/pagination.html @@ -0,0 +1,9 @@ +<nav ng-if="pages.length >= 2"> + <ul class="pagination"> + <li><a ng-click="selectPage(1)">First</a> + </li><li><a ng-click="selectPage(currentPage - 1)"><</a> + </li><li><a><page-select></page-select> of {{numPages}}</a> + </li><li><a ng-click="selectPage(currentPage + 1)">></a> + </li><li><a ng-click="selectPage(numPages)">Last</a></li> + </ul> +</nav>
\ No newline at end of file diff --git a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance-chart.html b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance-chart.html index eb6c50fb..67acab0f 100644 --- a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance-chart.html +++ b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance-chart.html @@ -70,7 +70,7 @@ <div class="col-md-6" style="width:100%;padding-bottom:20px;"> <p> <div style="float:left;padding-right:30px;"> - <label style="float:left;width:80px;line-height:30px;">sourceId:</label> + <label style="float:left;width:80px;line-height:30px;">*sourceId:</label> <div style="float:left;width:130px;"> <select class="form-control" ng-change="sourceIdChanged()" ng-model="sourceId" ng-options="s for s in sourceIds" > <option value="">--- chose ---</option> @@ -78,35 +78,46 @@ </div> </div> <div style="float:left;padding-right:30px" ng-show="namesPIsShow"> - <label style="float:left;width:50px;line-height:30px;">name:</label> + <label style="float:left;width:50px;line-height:30px;">*name:</label> <div style="float:left;width:130px;"> <select class="form-control" ng-change="namePChanged()" ng-model="nameP" ng-options="np for np in namePs" > <option value="">--- chose ---</option> </select> </div> </div> - <div style="float:left;padding-right:30px" ng-show="namesCIsShow" style="float:left"> + <!--<div style="float:left;padding-right:30px" ng-show="namesCIsShow" style="float:left"> <label style="float:left;width:50px;line-height:30px;">name:</label> <div style="float:left;width:130px;"> <select class="form-control" ng-model="nameC" ng-change="nameCChanged()" ng-options="nc for nc in nameCs" > - <option value="">--- chose ---</option> + <option value="">--- chose ---</option> </select> </div> - </div> - <div ng-show="goIsShow" style="float:left"> - <button style="padding-top:6px;" class="btn btn-default" ng-click="genDiagram()">submit</button> + </div>--> + <div style="float:left"> + <button ng-disabled="goIsShow" style="padding-top:6px;" class="btn btn-default" ng-click="genDiagram()">submit</button> </div> </p> </div> - + <div style="float:left;padding-left:15px;"> + <label style="float:left;width:90px;line-height:30px;">show mode:</label> + <div style="float:left;width:100px;"> + <select class="form-control" ng-change="showModeIdChanged()" ng-model="showModeId" + ng-options="sm for sm in showModeIds"> + <option value="">-- auto --</option> + </select> + </div> + </div> + <div class="col-md-12 col-sm-12" > - <div class="panel panel-success" ng-show="chartShow"> - <div class="panel-heading">Chart + <div class="panel panel-success" ng-show="chartShow" > + <!--<div class="panel-heading">Chart <button ng-click="generateCsv('cpu');" class="btn btn-primary" style="float: right;margin-top:-7px;display: none ">CSV</button> - </div> - <div id="chart_performance"> <svg></svg> </div> - </div> - </div> + </div>--> + <div ng-show="ndaShow" style="text-align: center"><h2>No Data Available</h2></div> + <nvd3 ng-show="hdaShow" options="options" data="data" api="api" ></nvd3> + </div> + + </div> </div> </div> <br /> diff --git a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance-details.html b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance-details.html index f70bba06..6ed800aa 100644 --- a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance-details.html +++ b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance-details.html @@ -70,5 +70,7 @@ </tbody> </table> </div> - <br><br> + + <br /> + <br /> </div>
\ No newline at end of file diff --git a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance.html b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance.html index 83f4385e..9187a838 100644 --- a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance.html +++ b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/view-models/performance.html @@ -17,47 +17,93 @@ <div class="templatemo-content"> <h3>Performance</h3> <div> - <ul class="list"> - <li>Source Id <input type="text" ng-model="seek1"/></li> - <li>Source Name <input type="text" ng-model="seek2"/></li> - <li>Priority <input type="text" ng-model="seek3"/></li> - <button ng-click="getSearch()">search</button> - </ul> - <ul class="list" ng-show='menuState.show'> - <li> <p class="input-group" style="float:left"> - <div style="float:left;line-height:100px;padding-right:4px;">StartTime</div><div style="float:left;padding-top:33px"><input type="text" class="form-control" readonly ng-click="open1()" uib-datepicker-popup ng-model="seek4" is-open="popup1.opened" datepicker-options ng-required="true" close-text="Close" /></div> - <div style="display:block;float:left;" uib-timepicker ng-model="seek4" hour-step minute-step show-meridian></div> - </p></li> - <li><p class="input-group" style="float:left"> - <div style="float:left;line-height:100px;padding-right:4px;">End Time</div><div style="float:left;padding-top:33px"><input type="text" class="form-control" readonly ng-click="open2()" uib-datepicker-popup ng-model="seek5" is-open="popup2.opened" datepicker-options ng-required="true" close-text="Close" /></div> - <div style="display:block;float:left" uib-timepicker ng-model="seek5" hour-step minute-step show-meridian></div> - </p></li> - </ul> - <div class="row"> - <div class="col-md-5" style="border-top:1px dotted #ddd"> - </div> - <div class="col-md-2" style="border:1px dotted #ddd;border-top:none;text-align:center" - ng-click="toggleMenu()"> - <span class="caret"></span> - </div> - <div class="col-md-5" style="border-top:1px dotted #ddd"> - </div> - </div> - <div class="row"> - <div class="col-md-11"> - <div class="table-responsive"> - <h4 class="margin-bottom-15">Query Result</h4> + <div class="table-container" ng-controller="pipeCtrl as mc"> + <ul class="list" style="padding-left:0;"> + <li>Source Id <input type="text" ng-model="seek1"/></li> + <li>Source Name <input type="text" ng-model="seek2"/></li> + <li>Priority <input type="text" ng-model="seek3"/></li> + <button class="btn btn-primary" ng-click="mc.callServer(tableState)">search</button> + </ul> + <ul class="list" style="padding-left:0;" ng-show='menuState.show'> + <li> <p class="input-group" style="float:left"> + <div style="float:left;line-height:100px;padding-right:4px;">StartTime</div><div style="float:left;padding-top:33px"><input type="text" class="form-control" readonly ng-click="open1()" uib-datepicker-popup ng-model="seek4" is-open="popup1.opened" datepicker-options ng-required="true" close-text="Close" /></div> + <div style="display:block;float:left;" uib-timepicker ng-model="seek4" hour-step minute-step show-meridian></div> + </p></li> + <li><p class="input-group" style="float:left"> + <div style="float:left;line-height:100px;padding-right:4px;">End Time</div><div style="float:left;padding-top:33px"><input type="text" class="form-control" readonly ng-click="open2()" uib-datepicker-popup ng-model="seek5" is-open="popup2.opened" datepicker-options ng-required="true" close-text="Close" /></div> + <div style="display:block;float:left" uib-timepicker ng-model="seek5" hour-step minute-step show-meridian></div> + </p></li> + </ul> + <div class="row"> + <div class="col-md-5" style="border-top:1px dotted #ddd"> + </div> + <div class="col-md-2" style="border:1px dotted #ddd;border-top:none;text-align:center" + ng-click="toggleMenu()"> + <span class="caret"></span> + </div> + <div class="col-md-5" style="border-top:1px dotted #ddd"> </div> </div> - <div class="col-md-1"> - <!-- <button ng-click="generateCsv()" class="btn btn-primary">CSV</button>--> - <button ng-click="toChart()" class="btn btn-primary">Chart</button> + <div class="row"> + <div class="col-md-11"> + <div class="table-responsive"> + <h4 class="margin-bottom-15">Query Result</h4> + </div> + </div> + <div class="col-md-1"> + <!-- <button ng-click="generateCsv()" class="btn btn-primary">CSV</button>--> + <button ng-click="toChart()" class="btn btn-primary">Chart</button> + </div> </div> + + <label for="items" style="float:left;width:100px;line-height:30px;">items by page</label> + <div style="float:left;width:130px;"> + <input class="input-sm form-control" name="items" id="items" type="number" ng-model="itemsByPage" /> + </div> + <table class="table" st-pipe="mc.callServer" st-table="mc.displayed"> + <thead> + <tr> + <th >Id</th> + <th >Event Id</th> + <th >Event Name</th> + <th >Source Id</th> + <th >Source Name</th> + <th >Reporting Entity Id</th> + <th >Reporting Entity Name</th> + <th >Priority</th> + <th >Start Time</th> + <th >Option</th> + </tr> + </thead> + <tbody ng-show="!mc.isLoading"> + <tr ng-repeat="row in mc.displayed"> + <td>{{row.performanceHeader.id}}</td> + <td>{{row.performanceHeader.eventId}}</td> + <td>{{row.performanceHeader.eventName}}</td> + <td>{{row.performanceHeader.sourceId}}</td> + <td>{{row.performanceHeader.sourceName}}</td> + <td>{{row.performanceHeader.reportingEntityId}}</td> + <td>{{row.performanceHeader.reportingEntityName}}</td> + <td>{{row.performanceHeader.priority}}</td> + <td>{{row.performanceHeader.createTime}}</td> + <td><button ng-click="jump(row.performanceHeader.sourceId)" class="btn btn-primary" >Details</button></td> + </tr> + </tbody> + <tbody ng-show="mc.isLoading"> + <tr> + <td colspan="4" class="text-center"><div class="loading-indicator"></div> + </td> + </tr> + </tbody> + <tfoot> + <tr> + <td class="text-center" st-pagination="" st-items-by-page="itemsByPage" st-template="app/uui/fusion/scripts/view-models/pagination.html" colspan="9"> + </td> + </tr> + </tfoot> + </table> </div> - <div ui-grid="gridOptions" style="width: 100%;margin-top:10px; text-align: center;" ui-grid-edit - ui-grid-pagination - ui-grid-selection ui-grid-resize-columns ui-grid-auto-resize> - </div> + </div> </div> </div> |