fault_tool.html
2.8 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<meta name="referrer" content="no-referrer">
<title>故障底部操作栏</title>
<link rel="stylesheet" type="text/css" href="http://iot.uccc.cc:9090/app/css/api.css"/>
<link rel="stylesheet" type="text/css" href="http://iot.uccc.cc:9090/app/css/aui.css"/>
<style>
html,
body{
background: #FFFFFF;
}
</style>
</head>
<body>
<div style="box-shadow:0px 1px 0px rgba(0, 0, 0, 0.3) inset;border-bottom:1px solid rgba(217,229,255,1);">
<div style="margin-left:15px;margin-right:15px;">
<div class="aui-row aui-row-flex" style="height:64px;">
<div class="aui-col aui-col-span-12" style="margin-top:18px;height:28px;">
<div class="aui-row aui-row-flex" style="line-height:28px;" tapmode onclick="selectAll(this);">
<img src="http://iot.uccc.cc:9090/product/01001/icon_unselected_sm.png" id="img_select" style="width:18px;height:18px;margin-top:0.2rem;" />
<span> 全部选择</span>
</div>
</div>
<div class="aui-col aui-col-span-12 aui-row-flex-center aui-row-flex-middle aui-row-flex-end" style="margin-top:18px;height:28px;" tapmode onclick="signRead();">
<div style="border:1px solid rgba(91,127,248,1);border-radius:17px;">
<span style="font-size:14px;font-family:PingFang SC;font-weight:500;color:rgba(91,127,248,1);margin-left:10px;margin-right:10px;margin-top:5px;margin-bottom:5px;">标记已处理</span>
</div>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="http://iot.uccc.cc:9090/app/js/api.js"></script>
<script type="text/javascript">
var ischooseall = false;
apiready = function(){
api.parseTapmode();
};
function selectAll(dom) {
ischooseall = !ischooseall;
api.sendEvent({
name: 'faultSelectAll',
extra: {
chooseAll: ischooseall,
}
});
if (ischooseall) {
((dom.childNodes)[1]).src = 'http://iot.uccc.cc:9090/product/01001/icon_selected_sm.png';
}else {
((dom.childNodes)[1]).src = 'http://iot.uccc.cc:9090/product/01001/icon_unselected_sm.png';
}
}
function signRead() {
if (api.pageParam.isSelf) {
api.sendEvent({
name: 'signReadForSlefFault'
});
}else {
api.sendEvent({
name: 'signReadForFault'
});
}
}
</script>
</html>