Showing
1 changed file
with
11 additions
and
4 deletions
| ... | @@ -774,10 +774,9 @@ export default { | ... | @@ -774,10 +774,9 @@ export default { |
| 774 | if (this.routeSatus == 'FlightAllocConfig') { | 774 | if (this.routeSatus == 'FlightAllocConfig') { |
| 775 | let infoRouteList = [] | 775 | let infoRouteList = [] |
| 776 | res.data.list.forEach(dateItem => { | 776 | res.data.list.forEach(dateItem => { |
| 777 | - this.infoForm.list.push( | 777 | + if (!infoRouteList.includes(JSON.parse(JSON.stringify(dateItem.flightRoute)))) { |
| 778 | - this.dataHandle(dateItem) | 778 | + infoRouteList.push(JSON.parse(JSON.stringify(dateItem.flightRoute))) |
| 779 | - ) | 779 | + } |
| 780 | - infoRouteList.push(dateItem.flightRoute) | ||
| 781 | }) | 780 | }) |
| 782 | //判断是否有日期,看是否需要查询无日期维度 | 781 | //判断是否有日期,看是否需要查询无日期维度 |
| 783 | if (obj.flightDate != null && obj.flightDate != '' && obj.flightDate != ' ') { | 782 | if (obj.flightDate != null && obj.flightDate != '' && obj.flightDate != ' ') { |
| ... | @@ -812,6 +811,14 @@ export default { | ... | @@ -812,6 +811,14 @@ export default { |
| 812 | }) | 811 | }) |
| 813 | this.newRoute(sub) | 812 | this.newRoute(sub) |
| 814 | } | 813 | } |
| 814 | + } else { | ||
| 815 | + infoRouteList.forEach((item, index) => { | ||
| 816 | + if (item == route.route) { | ||
| 817 | + this.infoForm.list.push( | ||
| 818 | + this.dataHandle(res.data.list[index]) | ||
| 819 | + ) | ||
| 820 | + } | ||
| 821 | + }) | ||
| 815 | } | 822 | } |
| 816 | }) | 823 | }) |
| 817 | } | 824 | } | ... | ... |
-
Please register or login to post a comment