| | |
| | | }
|
| | | html += "<tr><td>"+cur.name+"</td><td>"+str+"</td><td>"+time+"</td></tr>";
|
| | | }else{
|
| | | html += "<tr><td>"+cur.name+"</td><td>"+renderValue(device.id,device.type,cur.passcode,cur.value)+"</td><td>"+time+"</td></tr>";
|
| | | html += "<tr><td>"+cur.name+"</td><td>"+renderValue(device.id,device.type,cur)+"</td><td>"+time+"</td></tr>";
|
| | |
|
| | |
|
| | | //渲染列表
|
| | |
| | | }
|
| | | html += "<tr><td>"+cur.name+"</td><td>"+str+"</td><td>"+time+"</td></tr>";
|
| | | }else{
|
| | | html += "<tr><td>"+cur.name+"</td><td>"+renderValue(device.id,device.type,cur.passcode,cur.value)+"</td><td>"+time+"</td></tr>";
|
| | | html += "<tr><td>"+cur.name+"</td><td>"+renderValue(device.id,device.type,cur)+"</td><td>"+time+"</td></tr>";
|
| | |
|
| | | //渲染列表
|
| | | // html += "<tr><td>"+cur.name+"</td><td>"+(cur.value?cur.value:"")+"</td><td>"+time+"</td></tr>";
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | function renderValue(id,type,code,value) {
|
| | | var res = value;
|
| | | function renderValue(id,type,cur) {
|
| | | var res = cur.value;
|
| | |
|
| | | // if(type == "1001"){
|
| | | // if(code == 3 || code == 5){
|