Elements-SY

modify

......@@ -70,6 +70,7 @@ import {
batchUpdateOrAddFlight, // 航班航线优先级更新
queryRouteByFltNo, // 通过航班号查询航线
} from "@/api/destinationFlight";
import { queryRoute } from "@/api/system/dictionary.js"; // 通过航班号查询航班航线
import indexMixins from "../mixins";
export default {
components: {
......@@ -108,6 +109,11 @@ export default {
*/
created() {
this.getAllDictData(); // 获取全部字典
this.getQueryRoute({
fltNo: this.$route.query.purposeOfFlightNo,
page: 1,
size: 20,
}); // 通过航班号查询航线
const parmas = {
querySpecifyData: this.$route.query.querySpecifyData || "", // 查询特殊数据字段 1、2
purposeOfFlightNo: this.$route.query.purposeOfFlightNo || "", // 航班号
......@@ -126,6 +132,14 @@ export default {
},
mounted() {},
methods: {
// 通过航班号查询航线
getQueryRoute(parmas) {
queryRoute(parmas)
.then((res) => {
console.log(res);
})
.catch((error) => {});
},
// 【通过航班号查询航线】
getQueryRouteByFltNo(parmas) {
queryRouteByFltNo(parmas)
......@@ -211,6 +225,22 @@ export default {
return;
}
}
/*
日期级别:
处理routeSpecifyDateSeq
*/
if (item.createTime && this.queryForm.flightDate) {
let routeSpecifyDate = this.routeSpecifyDateSeq.filter(
(item) => item.etesRule == "N"
);
let routes = [];
if (routeSpecifyDate.length) {
routeSpecifyDate.map((item) => {
routes.push(item.route);
});
parmas.routeSpecifyDateSeq = routes.join(";");
}
}
// 校验表单域的选项
let validate = validateForm.some((key) => parmas[key]);
if (validate) {
......
......@@ -12,6 +12,7 @@ export default {
queryForm: {
// 表单参数
},
routeSpecifyDateSeq: [], // 日期级别航班顺位
};
},
computed: {
......@@ -282,6 +283,7 @@ export default {
return;
}
let dateDataLists = data.routeList; // 只负责展示航线优先级
this.routeSpecifyDateSeq = data.routeList; // 日期级别航班顺位
// 航班航线基本信息(过滤ET86航线的)
let dateRouteList = data.routeList.filter(
(item) => item.etesRule == "N"
......