Showing
2 changed files
with
21 additions
and
4 deletions
| ... | @@ -1220,8 +1220,10 @@ export default { | ... | @@ -1220,8 +1220,10 @@ export default { |
| 1220 | queryRouteByFltNo({ fltNo: this.infoForm.fltNo }).then(res => { | 1220 | queryRouteByFltNo({ fltNo: this.infoForm.fltNo }).then(res => { |
| 1221 | if (res.code === 200) { | 1221 | if (res.code === 200) { |
| 1222 | if (res.data.list.length > 0) { | 1222 | if (res.data.list.length > 0) { |
| 1223 | - this.routeList = res.data.list | 1223 | + let isEtesRoute = res.data.list.filter((item) => item.isEtesRoute == "N"); // 过滤ET86航线 |
| 1224 | - res.data.list.forEach(item => { | 1224 | + this.routeList = isEtesRoute |
| 1225 | + if(isEtesRoute.length){ | ||
| 1226 | + isEtesRoute.forEach(item => { | ||
| 1225 | this.infoForm.list.push({ | 1227 | this.infoForm.list.push({ |
| 1226 | purposeOfFlightNo: this.infoForm.fltNo, | 1228 | purposeOfFlightNo: this.infoForm.fltNo, |
| 1227 | ruleDate: this.infoForm.fltDate, | 1229 | ruleDate: this.infoForm.fltDate, |
| ... | @@ -1229,6 +1231,9 @@ export default { | ... | @@ -1229,6 +1231,9 @@ export default { |
| 1229 | routePriority: item.ordinal | 1231 | routePriority: item.ordinal |
| 1230 | }) | 1232 | }) |
| 1231 | }) | 1233 | }) |
| 1234 | + }else{ | ||
| 1235 | + this.msgWarning('未查询到航线信息!') | ||
| 1236 | + } | ||
| 1232 | } else { | 1237 | } else { |
| 1233 | this.msgWarning('未查询到航线信息!') | 1238 | this.msgWarning('未查询到航线信息!') |
| 1234 | this.routeList = [] | 1239 | this.routeList = [] | ... | ... |
| ... | @@ -608,9 +608,16 @@ export default { | ... | @@ -608,9 +608,16 @@ export default { |
| 608 | queryRouteByFltNo({ fltNo: this.form.fltNo }).then(res => { | 608 | queryRouteByFltNo({ fltNo: this.form.fltNo }).then(res => { |
| 609 | this.routeLoading = false | 609 | this.routeLoading = false |
| 610 | if (res.code === 200) { | 610 | if (res.code === 200) { |
| 611 | - this.routeList = res.data.list | 611 | + if(res.data.list.length){ |
| 612 | + let isEtesRoute = res.data.list.filter((item) => item.isEtesRoute == "N"); // 过滤ET86航线 | ||
| 613 | + this.routeList = isEtesRoute | ||
| 614 | + if (isEtesRoute.length == 0) { | ||
| 615 | + this.form.route = ""; | ||
| 616 | + } | ||
| 617 | + } | ||
| 612 | if (res.data.list.length == 0) { | 618 | if (res.data.list.length == 0) { |
| 613 | this.form.route = ""; | 619 | this.form.route = ""; |
| 620 | + this.routeList = [] | ||
| 614 | this.msgError("该航班没有设置航线"); | 621 | this.msgError("该航班没有设置航线"); |
| 615 | } | 622 | } |
| 616 | } else { | 623 | } else { |
| ... | @@ -858,7 +865,12 @@ export default { | ... | @@ -858,7 +865,12 @@ export default { |
| 858 | queryRouteByFltNo({ fltNo: this.form.fltNo }).then(res => { | 865 | queryRouteByFltNo({ fltNo: this.form.fltNo }).then(res => { |
| 859 | this.routeLoading = false | 866 | this.routeLoading = false |
| 860 | if (res.code === 200) { | 867 | if (res.code === 200) { |
| 861 | - this.routeList = res.data.list | 868 | + if(res.data.list.length){ |
| 869 | + let isEtesRoute = res.data.list.filter((item) => item.isEtesRoute == "N"); // 过滤ET86航线 | ||
| 870 | + this.routeList = isEtesRoute | ||
| 871 | + }else{ | ||
| 872 | + this.routeList = [] | ||
| 873 | + } | ||
| 862 | } else { | 874 | } else { |
| 863 | this.msgWarning(res.msg) | 875 | this.msgWarning(res.msg) |
| 864 | } | 876 | } | ... | ... |
-
Please register or login to post a comment