Elements-SY

修改航线覆盖问题

...@@ -1020,7 +1020,11 @@ export default { ...@@ -1020,7 +1020,11 @@ export default {
1020 findDestinationFltRuleByFlightNo(query).then(result => { 1020 findDestinationFltRuleByFlightNo(query).then(result => {
1021 const { code, data } = result; 1021 const { code, data } = result;
1022 if (code == 200) { 1022 if (code == 200) {
1023 - this.routeList = data.routeList; 1023 + let newRoute = JSON.parse(JSON.stringify(this.routeList.concat(data.routeList)))
1024 + const result =newRoute.filter((item, index, self) => {
1025 + return self.findIndex(t => JSON.stringify(t) === JSON.stringify(item)) === index;
1026 + });
1027 + this.routeList = Array.from(new Set(result));
1024 let routesStatus = 1 1028 let routesStatus = 1
1025 if (data.routeList.length) { 1029 if (data.routeList.length) {
1026 this.routeList.forEach(route => { 1030 this.routeList.forEach(route => {
......