Commit 26ff6bbb authored by van.chen's avatar van.chen

加图片

parent 8238acd4
...@@ -120,7 +120,7 @@ export class ProProfileAdvancedComponent implements OnInit { ...@@ -120,7 +120,7 @@ export class ProProfileAdvancedComponent implements OnInit {
if (res && res.towerNo) { if (res && res.towerNo) {
this.base = res; this.base = res;
this.base.tiltWarn = (res.tilt && Number(res.tilt) < 20 && Number(res.tilt) > -20) || res.tilt === 'N/A' ? true : false; this.base.tiltWarn = (res.tilt && Number(res.tilt) < 20 && Number(res.tilt) > -20) || res.tilt === 'N/A' ? true : false;
this.base.lightWarn = (res.tilt && Number(res.tilt) < 20 && Number(res.tilt) > -20) || res.tilt === 'N/A' ? true : false; this.base.lightWarn = (res.light && Number(res.light) < 20 && Number(res.light) > -20) || res.light === 'N/A' ? true : false;
} else { } else {
this.message.error(res.message); this.message.error(res.message);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment