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-22 12:01:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
78e95c8af310dbef7b19604ac232b4a28ca37eeb
78e95c8a
1 parent
9bc29184
modify
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
src/views/allocationConfig/flightAllocConfig/flightRouteInfo/index.vue
src/views/allocationConfig/flightAllocConfig/mixins/index.js
src/views/allocationConfig/flightAllocConfig/flightRouteInfo/index.vue
View file @
78e95c8
...
...
@@ -102,12 +102,14 @@ export default {
serviceCode: [], // Service Code
handlingCode: [], // Handling Code
subCategory: [], // Sub Category
flightRouteList: [], // 航班信息维护查询
};
},
/*
判断有日期的找到了就走有日期的,如果日期级别的没有找到再去走一次普通级别的接口
*/
created() {
// console.log(this.$route.query.flightRouteListStr);
const parmas = {
querySpecifyData: this.$route.query.querySpecifyData || "", // 查询特殊数据字段 1、2
purposeOfFlightNo: this.$route.query.purposeOfFlightNo || "", // 航班号
...
...
@@ -140,7 +142,10 @@ export default {
queryFindAllFltDataApi(parmas) {
findAllFltDataApi(parmas)
.then((res) => {
console.log(res);
const { code, data, msg } = res;
if(code == 200){
this.flightRouteList = data.list;
}
})
.catch((error) => {});
},
...
...
src/views/allocationConfig/flightAllocConfig/mixins/index.js
View file @
78e95c8
...
...
@@ -487,8 +487,21 @@ export default {
if
(
this
.
$route
.
query
.
flightKindName
==
"White Tail"
)
{
// White Tail只展示当前查询的一条
const
route
=
this
.
$route
.
query
.
flightRouteListStr
;
let
noDateRouteInfo
,
result
;
this
.
routeList
=
dateRouteList
;
let
noDateRouteInfo
,
result
,
byFlightRouteListSort
;
byFlightRouteListSort
=
dateRouteList
.
filter
((
item2
)
=>
{
return
this
.
flightRouteList
.
some
((
item1
)
=>
{
return
item1
.
route
===
item2
.
route
;
});
})
.
sort
((
a
,
b
)
=>
{
return
(
this
.
flightRouteList
.
findIndex
((
item
)
=>
item
.
route
===
a
.
route
)
-
this
.
flightRouteList
.
findIndex
((
item
)
=>
item
.
route
===
b
.
route
)
);
});
// this.routeList = dateRouteList;
this
.
routeList
=
byFlightRouteListSort
;
// 从日期取
if
(
dateListHas
.
length
)
{
const
dateRouteInfo
=
dateListHas
.
filter
(
...
...
@@ -559,7 +572,6 @@ export default {
this
.
setattrVal
(
item
);
// 设置属性值
}
});
this
.
routeList
=
dateRouteList
;
// 航线优先级
// 查找包含的航线并且按照dateList航线排序
dateList
.
sort
((
a
,
b
)
=>
{
return
(
...
...
@@ -589,6 +601,7 @@ export default {
});
// 把处理ET86航线优先级展示
this
.
queryForm
.
flightRouteListStr
=
routes
.
join
(
";"
);
// console.log(this.queryForm);
// 跳转传过来的对应的航线把ET86航线的过滤掉
let
noEtesRoutes
=
inRoutes
.
filter
((
item
)
=>
item
.
etesRule
==
"N"
);
let
noRoutes
=
dateList
.
filter
((
item
)
=>
{
...
...
@@ -607,9 +620,11 @@ export default {
);
});
// this.defaultRouteData(result) // 默认航线配置信息数据;
this
.
routeList
=
dateRouteList
;
// 航线优先级
this
.
routesInfo
=
result
;
this
.
pageLoading
=
false
;
}
else
{
this
.
routeList
=
dateRouteList
;
// 航线优先级
this
.
queryForm
=
this
.
$route
.
query
;
// 获取跳转过来的参数
this
.
routesInfo
=
dateList
;
this
.
pageLoading
=
false
;
...
...
Please
register
or
login
to post a comment