Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Elements-SY
2023-10-20 21:45:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c41e2bedb9f4697450ab8fbdfb43901ff2b6421b
c41e2bed
1 parent
c12079fe
modify
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
src/views/allocationConfig/flightAllocConfig/flightRouteInfo/index.vue
src/views/allocationConfig/flightAllocConfig/mixins/index.js
src/views/allocationConfig/flightAllocConfig/flightRouteInfo/index.vue
View file @
c41e2be
...
...
@@ -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) {
...
...
src/views/allocationConfig/flightAllocConfig/mixins/index.js
View file @
c41e2be
...
...
@@ -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"
...
...
Please
register
or
login
to post a comment