Commit cb8feed6 authored by van.chen's avatar van.chen

调整倾斜范围

parent c47a3a11
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"ng": "ng", "ng": "ng",
"start": "npm run color-less && ng serve -o", "start": "npm run color-less && ng serve -o",
"hmr": "npm run color-less && ng serve -c=hmr", "hmr": "npm run color-less && ng serve -c=hmr",
"build": "npm run color-less && ng build --prod --build-optimizer --c=production --aot", "build": "npm run color-less && ng build --prod --build-optimizer --c=production",
"analyze": "ng build --prod --build-optimizer --stats-json", "analyze": "ng build --prod --build-optimizer --stats-json",
"lint": "npm run lint:ts && npm run lint:style", "lint": "npm run lint:ts && npm run lint:style",
"lint:ts": "tslint -p src/tsconfig.app.json -c tslint.json 'src/**/*.ts'", "lint:ts": "tslint -p src/tsconfig.app.json -c tslint.json 'src/**/*.ts'",
......
...@@ -109,7 +109,7 @@ export class ProProfileAdvancedComponent implements OnInit { ...@@ -109,7 +109,7 @@ export class ProProfileAdvancedComponent implements OnInit {
this.handle(res, () => { this.handle(res, () => {
if (res && res.towerNo) { if (res && res.towerNo) {
this.base = res; this.base = res;
this.base.tiltWarn = (res.tilt && Number(res.tilt) < 10) || res.tilt === 'N/A' ? true : false; this.base.tiltWarn = (res.tilt && Number(res.tilt) < 10 && Number(res.tilt) > -10) || res.tilt === '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