Showing
2 changed files
with
46 additions
and
47 deletions
| ... | @@ -70,7 +70,7 @@ import { | ... | @@ -70,7 +70,7 @@ import { |
| 70 | batchUpdateOrAddFlight, // 航班航线优先级更新 | 70 | batchUpdateOrAddFlight, // 航班航线优先级更新 |
| 71 | queryRouteByFltNo, // 通过航班号查询航线 | 71 | queryRouteByFltNo, // 通过航班号查询航线 |
| 72 | } from "@/api/destinationFlight"; | 72 | } from "@/api/destinationFlight"; |
| 73 | -import { findAllFltDataApi } from "@/api/findAllFltData"; | 73 | +// import { findAllFltDataApi } from "@/api/findAllFltData"; |
| 74 | import indexMixins from "../mixins"; | 74 | import indexMixins from "../mixins"; |
| 75 | export default { | 75 | export default { |
| 76 | components: { | 76 | components: { |
| ... | @@ -109,7 +109,6 @@ export default { | ... | @@ -109,7 +109,6 @@ export default { |
| 109 | 判断有日期的找到了就走有日期的,如果日期级别的没有找到再去走一次普通级别的接口 | 109 | 判断有日期的找到了就走有日期的,如果日期级别的没有找到再去走一次普通级别的接口 |
| 110 | */ | 110 | */ |
| 111 | created() { | 111 | created() { |
| 112 | - // console.log(this.$route.query.flightRouteListStr); | ||
| 113 | const parmas = { | 112 | const parmas = { |
| 114 | querySpecifyData: this.$route.query.querySpecifyData || "", // 查询特殊数据字段 1、2 | 113 | querySpecifyData: this.$route.query.querySpecifyData || "", // 查询特殊数据字段 1、2 |
| 115 | purposeOfFlightNo: this.$route.query.purposeOfFlightNo || "", // 航班号 | 114 | purposeOfFlightNo: this.$route.query.purposeOfFlightNo || "", // 航班号 |
| ... | @@ -122,15 +121,15 @@ export default { | ... | @@ -122,15 +121,15 @@ export default { |
| 122 | id: this.$route.query.id || "", | 121 | id: this.$route.query.id || "", |
| 123 | }; | 122 | }; |
| 124 | this.getAllDictData(); // 获取全部字典 | 123 | this.getAllDictData(); // 获取全部字典 |
| 125 | - this.queryFindAllFltDataApi({ | 124 | + // this.queryFindAllFltDataApi({ |
| 126 | - fltNo: parmas.purposeOfFlightNo, | 125 | + // fltNo: parmas.purposeOfFlightNo, |
| 127 | - fltDateEnd: parmas.flightDate, | 126 | + // fltDateEnd: parmas.flightDate, |
| 128 | - fltDateStart: parmas.flightDate, | 127 | + // fltDateStart: parmas.flightDate, |
| 129 | - limitSize: 20, | 128 | + // limitSize: 20, |
| 130 | - limitStart: 0, | 129 | + // limitStart: 0, |
| 131 | - pageNum: 1, | 130 | + // pageNum: 1, |
| 132 | - start: 0, | 131 | + // start: 0, |
| 133 | - }); // 通过航班号查询航线 | 132 | + // }); // 通过航班号查询航线 |
| 134 | // 指定隐藏或显示From表单域 | 133 | // 指定隐藏或显示From表单域 |
| 135 | this.hiddenFormItem(parmas); | 134 | this.hiddenFormItem(parmas); |
| 136 | // queryCondition只负责接收参数和接口调用 | 135 | // queryCondition只负责接收参数和接口调用 | ... | ... |
| ... | @@ -95,29 +95,30 @@ export default { | ... | @@ -95,29 +95,30 @@ export default { |
| 95 | queryParmas: function () { | 95 | queryParmas: function () { |
| 96 | // 非日期级别 | 96 | // 非日期级别 |
| 97 | if (parmas.querySpecifyData == "2") { | 97 | if (parmas.querySpecifyData == "2") { |
| 98 | + _this.queryForm = _this.$route.query; // 获取跳转过来的参数 | ||
| 98 | _this.noDateLevelData(this.noDateParmas); | 99 | _this.noDateLevelData(this.noDateParmas); |
| 99 | } | 100 | } |
| 100 | // 日期级别 | 101 | // 日期级别 |
| 101 | if (parmas.querySpecifyData == "1") { | 102 | if (parmas.querySpecifyData == "1") { |
| 103 | + _this.queryForm = _this.$route.query; // 获取跳转过来的参数 | ||
| 102 | _this.dateLevelData({ | 104 | _this.dateLevelData({ |
| 103 | dateParmas: this.dateParmas, | 105 | dateParmas: this.dateParmas, |
| 104 | noDateParmas: this.noDateParmas, | 106 | noDateParmas: this.noDateParmas, |
| 105 | }); | 107 | }); |
| 106 | } | 108 | } |
| 107 | - _this.queryForm = _this.$route.query; // 获取跳转过来的参数 | ||
| 108 | }, | 109 | }, |
| 109 | }, | 110 | }, |
| 110 | // 航班信息维护 | 111 | // 航班信息维护 |
| 111 | flightInformationMaintenance: { | 112 | flightInformationMaintenance: { |
| 112 | noDateParmas: { | 113 | noDateParmas: { |
| 113 | purposeOfFlightNo: parmas.purposeOfFlightNo, | 114 | purposeOfFlightNo: parmas.purposeOfFlightNo, |
| 114 | - flightRouteListStr: parmas.flightRouteListStr, | 115 | + flightRouteListStr: this.$route.query.flightRouteListStr, |
| 115 | status: "", | 116 | status: "", |
| 116 | }, | 117 | }, |
| 117 | dateParmas: { | 118 | dateParmas: { |
| 118 | purposeOfFlightNo: parmas.purposeOfFlightNo, | 119 | purposeOfFlightNo: parmas.purposeOfFlightNo, |
| 119 | flightDate: parmas.flightDate, | 120 | flightDate: parmas.flightDate, |
| 120 | - flightRouteListStr: parmas.flightRouteListStr, | 121 | + flightRouteListStr: this.$route.query.flightRouteListStr, |
| 121 | status: "", | 122 | status: "", |
| 122 | }, | 123 | }, |
| 123 | queryParmas: function () { | 124 | queryParmas: function () { |
| ... | @@ -488,20 +489,20 @@ export default { | ... | @@ -488,20 +489,20 @@ export default { |
| 488 | // White Tail只展示当前查询的一条 | 489 | // White Tail只展示当前查询的一条 |
| 489 | const route = this.$route.query.flightRouteListStr; | 490 | const route = this.$route.query.flightRouteListStr; |
| 490 | let noDateRouteInfo, result, byFlightRouteListSort; | 491 | let noDateRouteInfo, result, byFlightRouteListSort; |
| 491 | - byFlightRouteListSort = dateRouteList | 492 | + // byFlightRouteListSort = dateRouteList |
| 492 | - .filter((item2) => { | 493 | + // .filter((item2) => { |
| 493 | - return this.flightRouteList.some((item1) => { | 494 | + // return this.flightRouteList.some((item1) => { |
| 494 | - return item1.route === item2.route; | 495 | + // return item1.route === item2.route; |
| 495 | - }); | 496 | + // }); |
| 496 | - }) | 497 | + // }) |
| 497 | - .sort((a, b) => { | 498 | + // .sort((a, b) => { |
| 498 | - return ( | 499 | + // return ( |
| 499 | - this.flightRouteList.findIndex((item) => item.route === a.route) - | 500 | + // this.flightRouteList.findIndex((item) => item.route === a.route) - |
| 500 | - this.flightRouteList.findIndex((item) => item.route === b.route) | 501 | + // this.flightRouteList.findIndex((item) => item.route === b.route) |
| 501 | - ); | 502 | + // ); |
| 502 | - }); | 503 | + // }); |
| 503 | - // this.routeList = dateRouteList; | 504 | + this.routeList = dateRouteList; |
| 504 | - this.routeList = byFlightRouteListSort; | 505 | + // this.routeList = byFlightRouteListSort; |
| 505 | // 从日期取 | 506 | // 从日期取 |
| 506 | if (dateListHas.length) { | 507 | if (dateListHas.length) { |
| 507 | const dateRouteInfo = dateListHas.filter( | 508 | const dateRouteInfo = dateListHas.filter( |
| ... | @@ -601,27 +602,26 @@ export default { | ... | @@ -601,27 +602,26 @@ export default { |
| 601 | }); | 602 | }); |
| 602 | // 把处理ET86航线优先级展示 | 603 | // 把处理ET86航线优先级展示 |
| 603 | this.queryForm.flightRouteListStr = routes.join(";"); | 604 | this.queryForm.flightRouteListStr = routes.join(";"); |
| 604 | - // console.log(this.queryForm); | 605 | + // // 跳转传过来的对应的航线把ET86航线的过滤掉 |
| 605 | - // 跳转传过来的对应的航线把ET86航线的过滤掉 | 606 | + // let noEtesRoutes = inRoutes.filter((item) => item.etesRule == "N"); |
| 606 | - let noEtesRoutes = inRoutes.filter((item) => item.etesRule == "N"); | 607 | + // let noRoutes = dateList.filter((item) => { |
| 607 | - let noRoutes = dateList.filter((item) => { | 608 | + // return noEtesRoutes.some((el) => el.route === item.route); |
| 608 | - return noEtesRoutes.some((el) => el.route === item.route); | 609 | + // }); |
| 609 | - }); | 610 | + // const result = noRoutes |
| 610 | - const result = noRoutes | 611 | + // .filter((item2) => { |
| 611 | - .filter((item2) => { | 612 | + // return noEtesRoutes.some((item1) => { |
| 612 | - return noEtesRoutes.some((item1) => { | 613 | + // return item1.route === item2.route; |
| 613 | - return item1.route === item2.route; | 614 | + // }); |
| 614 | - }); | 615 | + // }) |
| 615 | - }) | 616 | + // .sort((a, b) => { |
| 616 | - .sort((a, b) => { | 617 | + // return ( |
| 617 | - return ( | 618 | + // noEtesRoutes.findIndex((item) => item.route === a.route) - |
| 618 | - noEtesRoutes.findIndex((item) => item.route === a.route) - | 619 | + // noEtesRoutes.findIndex((item) => item.route === b.route) |
| 619 | - noEtesRoutes.findIndex((item) => item.route === b.route) | 620 | + // ); |
| 620 | - ); | 621 | + // }); |
| 621 | - }); | ||
| 622 | // this.defaultRouteData(result) // 默认航线配置信息数据; | 622 | // this.defaultRouteData(result) // 默认航线配置信息数据; |
| 623 | this.routeList = dateRouteList; // 航线优先级 | 623 | this.routeList = dateRouteList; // 航线优先级 |
| 624 | - this.routesInfo = result; | 624 | + this.routesInfo = dateList; |
| 625 | this.pageLoading = false; | 625 | this.pageLoading = false; |
| 626 | } else { | 626 | } else { |
| 627 | this.routeList = dateRouteList; // 航线优先级 | 627 | this.routeList = dateRouteList; // 航线优先级 | ... | ... |
-
Please register or login to post a comment