| | |
| | |
|
| | | function renderValue(type,item) {
|
| | | var result = item.value;
|
| | | // if(type == "2002" || type == "2020" || type == "2022"){
|
| | | // if(item.passcode >= 8 && item.passcode <= 998){
|
| | | // result = (item.value=="0"?"正常":"告警");
|
| | | // if(item.passcode == 16){
|
| | | // if(item.value=="0"){
|
| | | // result = "送风";
|
| | | // }
|
| | | // if(item.value=="1"){
|
| | | // result = "制热";
|
| | | // }
|
| | | // if(item.value=="2"){
|
| | | // result = "制冷";
|
| | | // }
|
| | | // // result = (item.value=="0"?"关闭":"开启");
|
| | | // }
|
| | | // }
|
| | | // }
|
| | | if(type == "2002" || type == "2020" || type == "2022"){
|
| | | if(item.passcode >= 13 && item.passcode <= 100){
|
| | | result = (item.value=="0"?"正常":"告警");
|
| | | }
|
| | | }
|
| | |
|
| | | var str = "";
|
| | | if(item.note && item.note.length > 0){
|
| | | str += item.note;
|
| | | }else{
|
| | | str += item.value;
|
| | | str += result;
|
| | | }
|
| | | if(item.unit && item.unit.length > 0){
|
| | | str += " " + item.unit;
|
| | | }
|
| | | result = str;
|
| | |
|
| | | return result;
|
| | | return str;
|
| | | }
|
| | |
|
| | |
|