Showing
1 changed file
with
14 additions
and
10 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 { queryRoute } from "@/api/system/dictionary.js"; // 通过航班号查询航班航线 | 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: { |
| ... | @@ -108,12 +108,6 @@ export default { | ... | @@ -108,12 +108,6 @@ export default { |
| 108 | 判断有日期的找到了就走有日期的,如果日期级别的没有找到再去走一次普通级别的接口 | 108 | 判断有日期的找到了就走有日期的,如果日期级别的没有找到再去走一次普通级别的接口 |
| 109 | */ | 109 | */ |
| 110 | created() { | 110 | created() { |
| 111 | - this.getAllDictData(); // 获取全部字典 | ||
| 112 | - this.getQueryRoute({ | ||
| 113 | - fltNo: this.$route.query.purposeOfFlightNo, | ||
| 114 | - page: 1, | ||
| 115 | - size: 20, | ||
| 116 | - }); // 通过航班号查询航线 | ||
| 117 | const parmas = { | 111 | const parmas = { |
| 118 | querySpecifyData: this.$route.query.querySpecifyData || "", // 查询特殊数据字段 1、2 | 112 | querySpecifyData: this.$route.query.querySpecifyData || "", // 查询特殊数据字段 1、2 |
| 119 | purposeOfFlightNo: this.$route.query.purposeOfFlightNo || "", // 航班号 | 113 | purposeOfFlightNo: this.$route.query.purposeOfFlightNo || "", // 航班号 |
| ... | @@ -125,6 +119,16 @@ export default { | ... | @@ -125,6 +119,16 @@ export default { |
| 125 | pageName: this.$route.query.pageName || "", // flightAllocConfig、flightInformationMaintenance、flightRandConfig、dmLog | 119 | pageName: this.$route.query.pageName || "", // flightAllocConfig、flightInformationMaintenance、flightRandConfig、dmLog |
| 126 | id: this.$route.query.id || "", | 120 | id: this.$route.query.id || "", |
| 127 | }; | 121 | }; |
| 122 | + this.getAllDictData(); // 获取全部字典 | ||
| 123 | + this.queryFindAllFltDataApi({ | ||
| 124 | + fltNo: parmas.purposeOfFlightNo, | ||
| 125 | + fltDateEnd: parmas.flightDate, | ||
| 126 | + fltDateStart: parmas.flightDate, | ||
| 127 | + limitSize: 20, | ||
| 128 | + limitStart: 0, | ||
| 129 | + pageNum: 1, | ||
| 130 | + start: 0, | ||
| 131 | + }); // 通过航班号查询航线 | ||
| 128 | // 指定隐藏或显示From表单域 | 132 | // 指定隐藏或显示From表单域 |
| 129 | this.hiddenFormItem(parmas); | 133 | this.hiddenFormItem(parmas); |
| 130 | // queryCondition只负责接收参数和接口调用 | 134 | // queryCondition只负责接收参数和接口调用 |
| ... | @@ -132,9 +136,9 @@ export default { | ... | @@ -132,9 +136,9 @@ export default { |
| 132 | }, | 136 | }, |
| 133 | mounted() {}, | 137 | mounted() {}, |
| 134 | methods: { | 138 | methods: { |
| 135 | - // 通过航班号查询航线 | 139 | + // 航班信息维护查询 |
| 136 | - getQueryRoute(parmas) { | 140 | + queryFindAllFltDataApi(parmas) { |
| 137 | - queryRoute(parmas) | 141 | + findAllFltDataApi(parmas) |
| 138 | .then((res) => { | 142 | .then((res) => { |
| 139 | console.log(res); | 143 | console.log(res); |
| 140 | }) | 144 | }) | ... | ... |
-
Please register or login to post a comment