This repository was archived by the owner on Sep 17, 2019. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathfaillogs.html
More file actions
66 lines (65 loc) · 2.12 KB
/
Copy pathfaillogs.html
File metadata and controls
66 lines (65 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">备份失败日志</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="row">
<div class="col-md-3">
<input class="form-control" placeholder="主机名" ng-model="query.host">
</div>
<div class="col-md-3">
<input class="form-control" placeholder="日期(2017-08-31)" ng-model="query.date">
</div>
<div class="col-md-1">
<button type="button" class="btn btn-primary" ng-click="recordsGet(query)">
<i class="fa fa-search fa-fw"></i> 查询
</button>
</div>
</div>
<table class="col-lg-12 table table-striped">
<thead>
<th></th>
<th>
时间
</th>
<th>
主机名
</th>
<th>
错误信息
</th>
<th></th>
</thead>
<tbody>
<tr ng-repeat="log in failLogs">
<td class="table-td-padding"></td>
<td class="table-td-padding">{{
log.time=='0001-01-01T00:00:00Z'?
'-':
log.time.indexOf('+') != -1?
log.time.replace('+', '-'):
log.time.indexOf('-') != -1?
log.time.replace('-', '+'):
log.time
|date: 'yyyy-MM-dd HH:mm:ss':'Z'}}</td>
<td class="table-td-padding">{{log.host.name}} ({{log.host.ip}})</td>
<td class="table-td-padding">{{log.log}}</td>
<td style="text-align:right">
</td>
</tr>
</tbody>
</table>
<div ng-show="failLogs.length > numPerPage" class="align-to-right">
<uib-pagination
total-items="failLogs.length"
max-size="5"
previous-text="‹" next-text="›" first-text="«" last-text="»"
ng-model="currentPage"
boundary-links="true"
items-per-page="numPerPage"
></uib-pagination>
</div>
</div>