device_details_frm.html
7.18 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
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
<!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">
<title>设备详情_frm</title>
<link rel="stylesheet" type="text/css" href="../../../css/api.css"/>
<link rel="stylesheet" type="text/css" href="../../../css/aui.css"/>
<link rel="stylesheet" type="text/css" href="../../../css/home.css"/>
<link rel="stylesheet" type="text/css" href="../../../css/element.css"/>
<link rel="stylesheet" type="text/css" href="../../../css/style.css"/>
<style>
html,
body{
background: #F4F6F9;
}
</style>
</head>
<body>
<div id="app">
<div class="store01001-device-title">
<div style="margin-left:15px;margin-right:15.5px;">
<div class="aui-row aui-row-flex top-14">
<div class="aui-col aui-col-span-1">
<div class="store01001-title-sign" style="margin-top: 0.55rem;"></div>
</div>
<div class="aui-col aui-col-span-15">
<span class="store01001-device-details-name" style="margin-top: 0.6rem;">设备编号:{{ imei }}</span>
</div>
<div class="aui-col aui-col-span-8 aui-row-flex-end">
</div>
</div>
</div>
</div>
<div class="store01001-info-title2">
<el-row>
<el-col :span=8>{{ deviceServerInfoTitle }}</el-col>
<el-col :span=16 class="store01001-device-details-time">2019-07-16 17:05:23 更新</el-col>
</el-row>
</div>
<div class="store01001-device-details-infos">
<div class="store01001-device-details-list-panel">
<div class="store01001-device-details-list-panel-inside">
<el-row class="store01001-device-details-list-area" v-for="(list_d, list_i) in serverInfoListTemp">
<el-col :span=3>
<img :src="list_d.img" style="height: 22px;" />
</el-col>
<el-col :span=7>
<span>{{list_d.name}}</span>
</el-col>
<el-col :span=list_d.span1>
<el-row v-if="list_i===0">
<el-col :span=16>
<img v-if="list_d.extra1 === 0" src="http://iot.uccc.cc:9090/product/01001/icon_badgeDot_red.png" style="height: 12px;float: right;margin-top: 1.65rem;" />
<img v-if="list_d.extra1 === 1" src="http://iot.uccc.cc:9090/product/01001/icon_badgeDot_green.png" style="height: 12px;float: right;margin-top: 1.65rem;" />
</el-col>
<el-col :span=8>
<span v-if="list_d.extra1 === 0" style="font-size:14px;color:rgba(250,82,81,1);">故障</span>
<span v-if="list_d.extra1 === 1" style="font-size:14px;color:rgba(112,194,72,1);">正常</span>
</el-col>
</el-row>
<span v-if="list_i===2 || list_i===3 || list_i===4" class="hidden-font-one-line" style="color:rgba(174,184,206,1);font-size:12px;text-align: right;">{{list_d.extra1 }}</span>
</el-col>
<el-col :span=list_d.span2>
<el-row v-if="list_i===0">
<el-col :span=12>
<img v-if="list_d.extra2 === 0" src="http://iot.uccc.cc:9090/product/01001/icon_badgeDot_red.png" style="height: 12px;float: right;margin-top: 1.65rem;" />
<img v-if="list_d.extra2 === 1" src="http://iot.uccc.cc:9090/product/01001/icon_badgeDot_green.png" style="height: 12px;float: right;margin-top: 1.65rem;" />
</el-col>
<el-col :span=12>
<span v-if="list_d.extra2 === 0" style="font-size:14px;color:rgba(250,82,81,1);">离线</span>
<span v-if="list_d.extra2 === 1" style="font-size:14px;color:rgba(112,194,72,1);">在线</span>
</el-col>
</el-row>
<el-row v-if="list_i===1">
<el-col :span=16>
<img v-if="list_d.extra2 === 0" src="http://iot.uccc.cc:9090/product/01001/icon_badgeDot_red.png" style="height: 12px;float: right;margin-top: 1.65rem;" />
<img v-if="list_d.extra2 === 1" src="http://iot.uccc.cc:9090/product/01001/icon_badgeDot_green.png" style="height: 12px;float: right;margin-top: 1.65rem;" />
</el-col>
<el-col :span=8>
<span v-if="list_d.extra2 === 0" style="font-size:14px;color:rgba(250,82,81,1);">合闸</span>
<span v-if="list_d.extra2 === 1" style="font-size:14px;color:rgba(112,194,72,1);">分闸</span>
</el-col>
</el-row>
<i v-if="list_i===2 || list_i===3 || list_i===4" class="aui-iconfont aui-icon-right"></i>
</el-col>
<!-- ---- -->
</el-row>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="../../../script/api.js"></script>
<script type="text/javascript" src="../../../script/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../../../script/vue.min.js"></script>
<script type="text/javascript" src="../../../script/common.js"></script>
<script type="text/javascript" src="../../../script/element.js"></script>
<script type="text/javascript" src="../../../script/ctrl.js"></script>
<script type="text/javascript" src="../../../script/fastclick.js "></script>
<script type="text/javascript">
var vm;
apiready = function(){
api.parseTapmode();
$(function() {
FastClick.attach(document.body);
});
//---------初始化vue
vm = new Vue({
el: '#app',
data: {
productId: api.pageParam.productId,
imei: api.pageParam.imei,
deviceServerInfoTitle: '设备终端信息',
deviceMeasureInfoTitle: '用电测量信息',
serverInfoListTemp: [
{img: "http://iot.uccc.cc:9090/product/01001/icon_deviceInfo_sbzt.png", name: '设备状态', extra1: 0, extra2: 0, span1: 9, span2: 5},
{img: "http://iot.uccc.cc:9090/product/01001/icon_deviceInfo_kgzt.png", name: '开关状态', extra1: '', extra2: 0, span1: 0, span2: 14},
{img: "http://iot.uccc.cc:9090/product/01001/icon_deviceInfo_sbwz.png", name: '设备位置', extra1: '', extra2: '', span1: 12, span2: 2}, //设备位置
{img: "http://iot.uccc.cc:9090/product/01001/sbmm.png", name: '设备密码', extra1: '修改设备密码', extra2: '', span1: 12, span2: 2},
{img: "http://iot.uccc.cc:9090/product/01001/icon_deviceInfo_sbmm.png", name: '设备名称', extra1: '', extra2: '', span1: 12, span2: 2}, //设备名称
]
},
mounted() {
//window.chooseProduct = this.chooseProduct;
},
created() {
},
methods: {
}
})
};
</script>
</html>