Showing
1 changed file
with
3 additions
and
2 deletions
| ... | @@ -1021,13 +1021,13 @@ export default { | ... | @@ -1021,13 +1021,13 @@ export default { |
| 1021 | const { code, data } = result; | 1021 | const { code, data } = result; |
| 1022 | if (code == 200) { | 1022 | if (code == 200) { |
| 1023 | let newRoute = JSON.parse(JSON.stringify(this.routeList.concat(data.routeList))) | 1023 | let newRoute = JSON.parse(JSON.stringify(this.routeList.concat(data.routeList))) |
| 1024 | - const result =newRoute.filter((item, index, self) => { | 1024 | + const result = newRoute.filter((item, index, self) => { |
| 1025 | return self.findIndex(t => JSON.stringify(t) === JSON.stringify(item)) === index; | 1025 | return self.findIndex(t => JSON.stringify(t) === JSON.stringify(item)) === index; |
| 1026 | }); | 1026 | }); |
| 1027 | this.routeList = Array.from(new Set(result)); | 1027 | this.routeList = Array.from(new Set(result)); |
| 1028 | - let routesStatus = 1 | ||
| 1029 | if (data.routeList.length) { | 1028 | if (data.routeList.length) { |
| 1030 | this.routeList.forEach(route => { | 1029 | this.routeList.forEach(route => { |
| 1030 | + let routesStatus = 1 | ||
| 1031 | data.list.forEach(item => { | 1031 | data.list.forEach(item => { |
| 1032 | if (route.route === item.flightRoute) { | 1032 | if (route.route === item.flightRoute) { |
| 1033 | routesStatus = 2 | 1033 | routesStatus = 2 |
| ... | @@ -1046,6 +1046,7 @@ export default { | ... | @@ -1046,6 +1046,7 @@ export default { |
| 1046 | routePriority: route.routePriority, | 1046 | routePriority: route.routePriority, |
| 1047 | }) | 1047 | }) |
| 1048 | } | 1048 | } |
| 1049 | + | ||
| 1049 | }) | 1050 | }) |
| 1050 | } | 1051 | } |
| 1051 | } | 1052 | } | ... | ... |
-
Please register or login to post a comment