-
Notifications
You must be signed in to change notification settings - Fork 81
/
device.html
486 lines (475 loc) · 24.3 KB
/
device.html
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<title>设备管理 | Yeelink用户中心</title>
<link type="text/css" rel="stylesheet" href="resource/css/framework.css" />
<link type="text/css" rel="stylesheet" href="resource/css/switch.css" />
<link type="text/css" rel="stylesheet" href="resource/css/main.css" />
</head>
<body>
<div class="page">
<!--header begin-->
<header>
<div class="bigcontainer">
<div id="logo">
<a href="./">yeelink用户中心</a>
</div>
<div class="user">
<div class="ui inline labeled icon top right pointing dropdown">
<img class="ui avatar image" src="resource/images/avatar-default.gif">
欢迎,$用户名
<i class="dropdown icon"></i>
<div class="menu">
<a class="item" href="http://www.yeelink.net"><i class="reply mail icon"></i>返回首页</a>
<a class="item" href="/user/logout"><i class="sign out icon"></i>注销登录</a>
</div>
</div>
</div>
</div>
</header>
<!-- the main menu-->
<div class="ui teal inverted menu fluid">
<div class="bigcontainer">
<div class="right menu">
<a class="item" href="./index.html"><i class="home icon"></i>管理首页</a>
<a class="active item" href="./devices_list.html"><i class="sitemap icon"></i>设备</a>
<a class="item" href="user_profile.html"><i class="info icon"></i>账户</a>
</div>
</div>
</div>
<!--the main content begin-->
<div class="container">
<!--the content-->
<div class="ui grid">
<!--the vertical menu-->
<div class="four wide column">
<div class="verticalMenu">
<div class="ui vertical pointing menu fluid">
<a class="item" href="./add.html">
<i class="add icon"></i> 绑定新设备
</a>
<a class="active teal item" href="./devices_list.html">
<i class="settings icon"></i> 我的设备
</a>
<a class="item" href="./actions.html">
<i class="terminal icon"></i> 设备动作
</a>
</div>
</div>
</div>
<div class="twelve wide column">
<div class="pageHeader">
<div class="segment">
<h3 class="ui dividing header">
<i class="large setting icon"></i>
<div class="content">
设备管理
<div class="sub header">管理这个设备及其传感器</div>
</div>
</h3>
</div>
</div>
<!--the device info-->
<div class="ui device middle aligned vertical grid segment">
<div class="four wide column verborder">
<div class="ui info segment">
<img src="resource/images/avatar-default.gif" style="height:160px;">
</div>
</div>
<div class="seven wide column">
<div class="ui info segment">
<h5 class="ui header">设备名01 <span class="ui type label">pub</span>
<div class="sub header">
这里是设备描述!
</div>
</h5>
<p>设备ID: <span class="stress">2343</span></p>
<p>设备地址: <a class="externalUrl" href="http://www.yeelink.net/devices/5905" target="_blank">http://www.yeelink.net/devices/5905</a></p>
<p>API 地址: http://api.yeelink.net/devices/5905</p>
</div>
</div>
<div class="five wide center aligned column">
<a class="ui small green animated button" href="./">
<span class="hidden content"><i class="cloud icon"></i></span>
<span class="visible content">
<i class="rocket icon"></i>部 署
</span>
</a>
<a class="ui small blue button" href="./edit_device.html"><i class="edit icon"></i>编 辑</a>
</div>
</div>
<div class="ui vertical segment">
<a class="ui mini red labeled icon button" href="./new_sensor.html"><i class="add icon"></i>添加传感器</a>
<div class="ui mini icon input right">
<input type="text" placeholder="输入传感器名搜索……">
<i class="search icon"></i>
</div>
</div>
<!--the sensor info-->
<div class="ui middle aligned device vertical grid segment">
<div class="eleven wide column">
<div class="ui info segment">
<h5 class="ui header sprite-icon data">
传感器01 <span class="ui type label">数据型</span>
</h5>
<p>标示ID: <span class="stress">2343</span></p>
<p>地址: <a class="externalUrl" href="http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints" target="_blank">http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints</a></p>
<p>API 地址: http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints</p>
</div>
</div>
<div class="five wide center aligned column">
<div class="ui top right attached label show chart">
<a><i class="chart basic icon"></i>图表</a>
</div>
<div class="ui data segment">
<p class="data">24.4</p>
<p class="unit">摄氏度 / °C</p>
</div>
</div>
<div class="ui basic attached accordion action">
<a class="sensorEdit" href="./edit_sensor.html"><i class="edit icon"></i>编辑</a>
<a class="sensorEdit"><i class="trash icon"></i>删除</a>
<a class="title sensorEdit">
<i class="dropdown icon"></i>触发动作
</a>
<div class="content">
<table class="ui basic table">
<tr>
<td>当值大于50时,执行动作01</td>
<td><a><i class="edit icon"></i>编辑</a></td>
<td><a><i class="trash icon"></i>删除</a></td>
</tr>
<tr>
<td>当值大于60时,执行动作02</td>
<td><a><i class="edit icon"></i>编辑</a></td>
<td><a><i class="trash icon"></i>删除</a></td>
</tr>
</table>
<div class="ui vertical segment">
<div class="ui red mini addaction button"><i class="add icon"></i>添加触发
</div>
</div>
</div>
</div>
<div class="chartShow">
<div class="ui inverted active dimmer">
<div class="content">
<div class="center">
<h2 class="ui icon header">
<i class="chart basic icon"></i>
</h2>
</div>
</div>
</div>
</div>
</div>
<!--another sensor-->
<div class="ui middle aligned device vertical grid segment">
<div class="eleven wide column">
<div class="ui left corner label error" data-variation="inverted">
<div class="text">异常</div>
</div>
<div class="ui info segment">
<h5 class="ui header sprite-icon switchicon">
传感器02 <span class="ui type label">开关型</span>
</h5>
<p>标示ID: <span class="stress">2343</span></p>
<p>地址: <a class="externalUrl" href="http://api.yeelink.net/v1.0/device/5675/musensor/10385/datapoints" target="_blank">http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints</a></p>
<p>API 地址: http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints</p>
</div>
</div>
<div class="five wide center aligned column">
<div class="ui data segment">
<input type="checkbox" id="switch" checked>
<label class="switch" for="switch"></label>
</div>
</div>
<div class="ui basic attached accordion action">
<a class="sensorEdit" href="./edit_sensor.html"><i class="edit icon"></i>编辑</a>
<a class="sensorEdit"><i class="trash icon"></i>删除</a>
</div>
</div>
<!--another sensor-->
<div class="ui middle aligned device vertical grid segment">
<div class="eleven wide column">
<div class="ui left corner label error" data-variation="inverted">
<div class="text">异常</div>
</div>
<div class="ui info segment">
<h5 class="ui header sprite-icon gps">
传感器03 <span class="ui type label">GPS型</span>
</h5>
<p>标示ID: <span class="stress">2343</span></p>
<p>地址: <a class="externalUrl" href="http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints" target="_blank">http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints</a></p>
<p>API 地址: http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints</p>
</div>
</div>
<div class="five wide center aligned column">
<div class="ui top right attached label show"><i class="map icon"></i>地图</div>
<div class="ui data segment">
<p class="gps" title="详细值:36.3332526, 117.3332526">36.33, 117.21</p>
<p class="unit">经纬度</p>
</div>
</div>
<div class="ui basic attached accordion action">
<a class="sensorEdit" href="./edit_sensor.html"><i class="edit icon"></i>编辑</a>
<a class="sensorEdit"><i class="trash icon"></i>删除</a>
<a class="title sensorEdit">
<i class="dropdown icon"></i>触发动作
</a>
<div class="content">
<table class="ui basic table">
<tr>
<td>当值大于50时,执行动作01</td>
<td><a><i class="edit icon"></i>编辑</a></td>
<td><a><i class="trash icon"></i>删除</a></td>
</tr>
<tr>
<td>当值大于60时,执行动作02</td>
<td><a><i class="edit icon"></i>编辑</a></td>
<td><a><i class="trash icon"></i>删除</a></td>
</tr>
</table>
<div class="ui vertical segment">
<div class="ui red mini addaction button"><i class="add icon"></i>添加触发
</div>
</div>
</div>
</div>
</div>
<!--another sensor-->
<div class="ui middle aligned device vertical grid segment">
<div class="eleven wide column">
<div class="ui left corner label error" data-variation="inverted">
<div class="text">异常</div>
</div>
<div class="ui info segment">
<h5 class="ui header sprite-icon pic">
传感器04 <span class="ui type label">图片型</span>
</h5>
<p>标示ID: <span class="stress">2343</span></p>
<p>地址: <a class="externalUrl" href="http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints" target="_blank">http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints</a></p>
<p>API 地址: http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints</p>
</div>
</div>
<div class="five wide center aligned column">
<div class="ui top right attached label show"><i class="photos basic icon"></i>全部图片</div>
<div class="ui data segment">
<img src="resource/images/avatar-default.gif" height="60px" />
</div>
</div>
<div class="ui basic attached accordion action">
<a class="sensorEdit" href="./edit_sensor.html"><i class="edit icon"></i>编辑</a>
<a class="sensorEdit"><i class="trash icon"></i>删除</a>
</div>
</div>
<!--another sensor-->
<div class="ui middle aligned device vertical grid segment">
<div class="eleven wide column">
<div class="ui info segment">
<h5 class="ui header sprite-icon key">
传感器05 <span class="ui type label">泛传感器型</span>
</h5>
<p>标示ID: <span class="stress">2343</span></p>
<p>地址: <a class="externalUrl" href="http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints" target="_blank">http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints</a></p>
<p>API 地址: http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints</p>
</div>
</div>
<div class="five wide center aligned column">
<!-- <div class="ui top right attached label show"><a><i class="chart basic icon"></i>图表</a></div>-->
<div class="ui data segment">
</div>
</div>
<div class="ui basic attached accordion action">
<a class="sensorEdit" href="./edit_sensor.html"><i class="edit icon"></i>编辑</a>
<a class="sensorEdit"><i class="trash icon"></i>删除</a>
<a class="title sensorEdit">
<i class="dropdown icon"></i>触发动作
</a>
<div class="content">
<table class="ui basic table">
<tr>
<td>当值大于50时,执行动作01</td>
<td><a><i class="edit icon"></i>编辑</a></td>
<td><a><i class="trash icon"></i>删除</a></td>
</tr>
<tr>
<td>当值大于60时,执行动作02</td>
<td><a><i class="edit icon"></i>编辑</a></td>
<td><a><i class="trash icon"></i>删除</a></td>
</tr>
</table>
<div class="ui vertical segment">
<div class="ui red mini addaction button"><i class="add icon"></i>添加触发
</div>
</div>
</div>
</div>
</div>
<!--another sensor-->
<div class="ui middle aligned device vertical grid segment">
<div class="eleven wide column">
<div class="ui info segment">
<h5 class="ui header sprite-icon bird">
传感器05 <span class="ui type label">微博抓取型</span>
</h5>
<p>标示ID: <span class="stress">2343</span></p>
<p>地址: <a class="externalUrl" href="http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints" target="_blank">http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints</a></p>
<p>API 地址: http://api.yeelink.net/v1.0/device/5675/sensor/10385/datapoints</p>
</div>
</div>
<div class="five wide center aligned column">
<!-- <div class="ui top right attached label show"><a><i class="chart basic icon"></i>图表</a></div>-->
<div class="ui data segment">
<p class="data">3</p>
<p class="unit">条未读</p>
</div>
</div>
<div class="ui basic attached accordion action">
<a class="sensorEdit" href="./edit_sensor.html"><i class="edit icon"></i>编辑</a>
<a class="sensorEdit"><i class="trash icon"></i>删除</a>
<a class="title sensorEdit">
<i class="dropdown icon"></i>触发动作
</a>
<div class="content">
<table class="ui basic table">
<tr>
<td>当值大于50时,执行动作01</td>
<td><a><i class="edit icon"></i>编辑</a></td>
<td><a><i class="trash icon"></i>删除</a></td>
</tr>
<tr>
<td>当值大于60时,执行动作02</td>
<td><a><i class="edit icon"></i>编辑</a></td>
<td><a><i class="trash icon"></i>删除</a></td>
</tr>
</table>
<div class="ui vertical segment">
<div class="ui red mini addaction button"><i class="add icon"></i>添加触发
</div>
</div>
</div>
</div>
</div>
<div class="ui pagination menu">
<a class="icon item">
<i class="icon left arrow"></i>
</a>
<a class="active item">
1
</a>
<div class="disabled item">
...
</div>
<a class="item">
4
</a>
<a class="item">
5
</a>
<a class="item">
6
</a>
<a class="icon item">
<i class="icon right arrow"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<!--addNewDIYAction model-->
<div class="ui small test addNewDIYAction modal">
<i class="close icon"></i>
<div class="header">
一个新的促发动作
</div>
<div class="content">
<div class="ui form vertical segment">
<form name="form" method="post">
<div class="inline field">
<label>当数据满足:</label>
<div class="ui dropdown selection">
<input type="hidden" name="gender" value="1">
<div class="default text"> 大于 </div>
<i class="dropdown icon"></i>
<div class="menu">
<div class="item" data-value="大于" value="1"> 大于 </div>
<div class="item" data-value="大于或等于 " value="2"> 大于或等于 </div>
<div class="item" data-value="小于" value="3"> 小于 </div>
<div class="item" data-value="小于或等于" value="4"> 小于或等于 </div>
<div class="item" data-value="等于" value="5"> 等于 </div>
</div>
</div>
<input type="text" >
</div>
<div class="inline field">
<label>指定动作:</label>
<div class="ui dropdown selection">
<input type="hidden" name="gender" value="1">
<div class="default text"> 示例动作01 </div>
<i class="dropdown icon"></i>
<div class="menu">
<div class="item" data-value="示例动作01" value="1"> 示例动作01 </div>
<div class="item" data-value="示例动作02" value="2"> 示例动作02 </div>
<div class="item" data-value="示例动作01" value="3"> 示例动作03 </div>
</div>
</div>
<div class="ui pointing left label">
可在 设备动作 中添加新动作.
</div>
</div>
<div class="inline field">
<label>消息内容:</label>
<textarea placeholder="不超过120个字……"></textarea>
</div>
</form>
</div>
</div>
<div class="actions">
<div class="ui small black button">
取消
</div>
<div class="ui small positive right labeled icon button">
确定
<i class="checkmark icon"></i>
</div>
</div>
</div>
<!--footer begin-->
<footer>
<div id="copyrights">
<div class="inset">
<div class="bigcontainer">
<div class="fl">
<div class="logo"></div>
<p>© 2020 青岛亿联客信息技术有限公司, 版权所有<br />
<a href="http://www.miibeian.gov.cn" target="_blank">鲁ICP备12022271号</a></p>
</div>
</div>
</div>
</div>
</footer>
<script type="text/javascript" src="resource/javascript/jquery.min.js"></script>
<script type="text/javascript" src="resource/javascript/framework.js"></script>
<script>
$(document).ready(function(){
$('.ui.dropdown')
.dropdown()
;
$('.ui.accordion')
.accordion()
;
$('.show a').click(function(){
$('.show.chart').toggleClass('active');
$('.chartShow').toggleClass('active');
});
$('.test.addNewDIYAction.modal')
.modal('attach events','.addaction.button','show');
});
</script>
</body>
</html>