Elements-SY

modify

1 <template> 1 <template>
2 <div ref="barEcharts" class="route-info-container"> 2 <div ref="barEcharts" class="route-info-container">
3 - <!-- v-loading="pageLoading" --> 3 + <!-- v-loading="pageLoading" -->
4 <!-- 航线设置规则信息查询条件 --> 4 <!-- 航线设置规则信息查询条件 -->
5 <el-row style="padding: 0 50px"> 5 <el-row style="padding: 0 50px">
6 <el-col> 6 <el-col>
...@@ -70,6 +70,7 @@ import { ...@@ -70,6 +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 indexMixins from "../mixins"; 74 import indexMixins from "../mixins";
74 export default { 75 export default {
75 components: { 76 components: {
...@@ -108,6 +109,11 @@ export default { ...@@ -108,6 +109,11 @@ export default {
108 */ 109 */
109 created() { 110 created() {
110 this.getAllDictData(); // 获取全部字典 111 this.getAllDictData(); // 获取全部字典
112 + this.getQueryRoute({
113 + fltNo: this.$route.query.purposeOfFlightNo,
114 + page: 1,
115 + size: 20,
116 + }); // 通过航班号查询航线
111 const parmas = { 117 const parmas = {
112 querySpecifyData: this.$route.query.querySpecifyData || "", // 查询特殊数据字段 1、2 118 querySpecifyData: this.$route.query.querySpecifyData || "", // 查询特殊数据字段 1、2
113 purposeOfFlightNo: this.$route.query.purposeOfFlightNo || "", // 航班号 119 purposeOfFlightNo: this.$route.query.purposeOfFlightNo || "", // 航班号
...@@ -126,6 +132,14 @@ export default { ...@@ -126,6 +132,14 @@ export default {
126 }, 132 },
127 mounted() {}, 133 mounted() {},
128 methods: { 134 methods: {
135 + // 通过航班号查询航线
136 + getQueryRoute(parmas) {
137 + queryRoute(parmas)
138 + .then((res) => {
139 + console.log(res);
140 + })
141 + .catch((error) => {});
142 + },
129 // 【通过航班号查询航线】 143 // 【通过航班号查询航线】
130 getQueryRouteByFltNo(parmas) { 144 getQueryRouteByFltNo(parmas) {
131 queryRouteByFltNo(parmas) 145 queryRouteByFltNo(parmas)
...@@ -211,6 +225,22 @@ export default { ...@@ -211,6 +225,22 @@ export default {
211 return; 225 return;
212 } 226 }
213 } 227 }
228 + /*
229 + 日期级别:
230 + 处理routeSpecifyDateSeq
231 + */
232 + if (item.createTime && this.queryForm.flightDate) {
233 + let routeSpecifyDate = this.routeSpecifyDateSeq.filter(
234 + (item) => item.etesRule == "N"
235 + );
236 + let routes = [];
237 + if (routeSpecifyDate.length) {
238 + routeSpecifyDate.map((item) => {
239 + routes.push(item.route);
240 + });
241 + parmas.routeSpecifyDateSeq = routes.join(";");
242 + }
243 + }
214 // 校验表单域的选项 244 // 校验表单域的选项
215 let validate = validateForm.some((key) => parmas[key]); 245 let validate = validateForm.some((key) => parmas[key]);
216 if (validate) { 246 if (validate) {
......
...@@ -12,6 +12,7 @@ export default { ...@@ -12,6 +12,7 @@ export default {
12 queryForm: { 12 queryForm: {
13 // 表单参数 13 // 表单参数
14 }, 14 },
15 + routeSpecifyDateSeq: [], // 日期级别航班顺位
15 }; 16 };
16 }, 17 },
17 computed: { 18 computed: {
...@@ -282,6 +283,7 @@ export default { ...@@ -282,6 +283,7 @@ export default {
282 return; 283 return;
283 } 284 }
284 let dateDataLists = data.routeList; // 只负责展示航线优先级 285 let dateDataLists = data.routeList; // 只负责展示航线优先级
286 + this.routeSpecifyDateSeq = data.routeList; // 日期级别航班顺位
285 // 航班航线基本信息(过滤ET86航线的) 287 // 航班航线基本信息(过滤ET86航线的)
286 let dateRouteList = data.routeList.filter( 288 let dateRouteList = data.routeList.filter(
287 (item) => item.etesRule == "N" 289 (item) => item.etesRule == "N"
......