Elements-SY

Merge branch 'et86-black' into uat

...@@ -520,6 +520,7 @@ export default { ...@@ -520,6 +520,7 @@ export default {
520 dateRouteList.findIndex((item) => item.route == b.route) 520 dateRouteList.findIndex((item) => item.route == b.route)
521 ); 521 );
522 }); 522 });
523 + // this.defaultRouteData(noDateRouteInfo) // 默认航线配置信息数据;
523 this.routesInfo = noDateRouteInfo; 524 this.routesInfo = noDateRouteInfo;
524 this.pageLoading = false; 525 this.pageLoading = false;
525 } 526 }
...@@ -591,6 +592,7 @@ export default { ...@@ -591,6 +592,7 @@ export default {
591 noEtesRoutes.findIndex((item) => item.route === b.route) 592 noEtesRoutes.findIndex((item) => item.route === b.route)
592 ); 593 );
593 }); 594 });
595 + // this.defaultRouteData(result) // 默认航线配置信息数据;
594 this.routesInfo = result; 596 this.routesInfo = result;
595 this.pageLoading = false; 597 this.pageLoading = false;
596 } else { 598 } else {
...@@ -600,6 +602,22 @@ export default { ...@@ -600,6 +602,22 @@ export default {
600 } 602 }
601 } 603 }
602 }, 604 },
605 + // 默认航线配置信息数据
606 + defaultRouteData(result) {
607 + // 如果当前航班号的航线下没有数据,新增规则给默认数据
608 + routeRuleForm.purposeOfFlightNo = this.$route.query.purposeOfFlightNo;
609 + this.setattrVal(routeRuleForm);
610 + const routesInfo = result.map((item) => {
611 + if (!item.config) {
612 + item = {
613 + ...item,
614 + ...routeRuleForm,
615 + };
616 + }
617 + return item;
618 + });
619 + return routesInfo;
620 + },
603 // 处理跳转显示航线种类 621 // 处理跳转显示航线种类
604 showFlightKind(dateDataLists) { 622 showFlightKind(dateDataLists) {
605 let flightRouteListStr = this.$route.query.flightRouteListStr.split(";"); // 跳转传过来的航线 623 let flightRouteListStr = this.$route.query.flightRouteListStr.split(";"); // 跳转传过来的航线
......