8001_index.html
5.3 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">安防雷达</h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div>
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="row">
<div class="col-md-12">
<table class="table table-hover">
<tbody>
<tr>
<th>报警内容</th>
<th>报警区域</th>
<th>报警时间</th>
</tr>
{% if radar is none %}
<tr>
<td colspan="3">当日暂无报警数据</td>
</tr>
{% else %}
{% for v in radar.items %}
<tr>
<td>{{ v.msg }}</td>
<td>{{ v.device.detectingpoint.no }}#{{ v.device.detectingpoint.name }}</td>
<td>{{ v.addtime }}</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
<!-- /.col -->
<div class="col-md-12">
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">设备列表</h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
</div>
</div>
<div class="box-body">
<ul class="products-list product-list-in-box">
{% for d in device_data %}
{% if d.devicetype.type == 8001 %}
{% for dd in d.devicetype.device %}
<li class="item">
<div class="product-img">
<img src="{{ url_for('static',filename='admin/dist/img/default-50x50.gif') }}" alt="pimg">
</div>
<div class="product-info">
<a href="javascript:void(0)" class="product-title">{{dd.title}}
<span class="label label-success pull-right">在线</span>
</a>
<span class="product-description">
检测区域:{{ dd.detectingpoint.no }}#{{ dd.detectingpoint.name }}
</span>
</div>
</li>
{% endfor %}
{% endif %}
{% endfor %}
<!--li class="item">
<div class="product-img">
<img src="{{ url_for('static',filename='admin/dist/img/default-50x50.gif') }}" alt="pimg">
</div>
<div class="product-info">
<a href="javascript:void(0)" class="product-title">压力传感器-P01
<span class="label label-success pull-right">在线</span>
</a>
<span class="product-description">
检测区域:1#管道;压力:0
</span>
</div>
</li>
<li class="item">
<div class="product-img">
<img src="{{ url_for('static',filename='admin/dist/img/default-50x50.gif') }}" alt="pimg">
</div>
<div class="product-info">
<a href="javascript:void(0)" class="product-title">压力传感器-P02
<span class="label label-success pull-right">在线</span>
</a>
<span class="product-description">
检测区域:2#管道;压力:0
</span>
</div>
</li-->
</ul>
</div>
</div>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.box-body -->
<div class="box-footer no-padding">
</div>
<!-- /.footer -->
</div>