| | |
| | | module.exports = { |
| | | // 设备运行状态 |
| | | runningStatus: function (s) { |
| | | switch (parseInt(s)) { |
| | | case 0: |
| | | return '未联网'; |
| | | case 1: |
| | | return '上线中'; |
| | | case 2: |
| | | return '已下线'; |
| | | case 3: |
| | | default: |
| | | return '已拆除'; |
| | | // 设备信息更新时间样式 |
| | | updateTimeStyle: function (month) { |
| | | if (month >= 3) { |
| | | return 'type-error' |
| | | } else if (month >= 2){ |
| | | return 'type-warning' |
| | | } else { |
| | | return 'type-success' |
| | | } |
| | | }, |
| | | // 设备类型 |
| | | runningStatus: function (s) { |
| | | switch (parseInt(s)) { |
| | | case 0: |
| | | return '未联网'; |
| | | case 1: |
| | | return '上线中'; |
| | | case 2: |
| | | return '已下线'; |
| | | case 3: |
| | | default: |
| | | return '已拆除'; |
| | | } |
| | | }, |
| | | } |
| | | }; |