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 13:48:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
58ae9ddc251eb219a607eb76a37ef849a29388a3
58ae9ddc
1 parent
78e95c8a
modify
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
47 deletions
src/views/allocationConfig/flightAllocConfig/flightRouteInfo/index.vue
src/views/allocationConfig/flightAllocConfig/mixins/index.js
src/views/allocationConfig/flightAllocConfig/flightRouteInfo/index.vue
View file @
58ae9dd
...
...
@@ -70,7 +70,7 @@ import {
batchUpdateOrAddFlight, // 航班航线优先级更新
queryRouteByFltNo, // 通过航班号查询航线
} from "@/api/destinationFlight";
import { findAllFltDataApi } from "@/api/findAllFltData";
//
import { findAllFltDataApi } from "@/api/findAllFltData";
import indexMixins from "../mixins";
export default {
components: {
...
...
@@ -109,7 +109,6 @@ export default {
判断有日期的找到了就走有日期的,如果日期级别的没有找到再去走一次普通级别的接口
*/
created() {
// console.log(this.$route.query.flightRouteListStr);
const parmas = {
querySpecifyData: this.$route.query.querySpecifyData || "", // 查询特殊数据字段 1、2
purposeOfFlightNo: this.$route.query.purposeOfFlightNo || "", // 航班号
...
...
@@ -122,15 +121,15 @@ export default {
id: this.$route.query.id || "",
};
this.getAllDictData(); // 获取全部字典
this.queryFindAllFltDataApi({
fltNo: parmas.purposeOfFlightNo,
fltDateEnd: parmas.flightDate,
fltDateStart: parmas.flightDate,
limitSize: 20,
limitStart: 0,
pageNum: 1,
start: 0,
}); // 通过航班号查询航线
//
this.queryFindAllFltDataApi({
//
fltNo: parmas.purposeOfFlightNo,
//
fltDateEnd: parmas.flightDate,
//
fltDateStart: parmas.flightDate,
//
limitSize: 20,
//
limitStart: 0,
//
pageNum: 1,
//
start: 0,
//
}); // 通过航班号查询航线
// 指定隐藏或显示From表单域
this.hiddenFormItem(parmas);
// queryCondition只负责接收参数和接口调用
...
...
src/views/allocationConfig/flightAllocConfig/mixins/index.js
View file @
58ae9dd
...
...
@@ -95,29 +95,30 @@ export default {
queryParmas
:
function
()
{
// 非日期级别
if
(
parmas
.
querySpecifyData
==
"2"
)
{
_this
.
queryForm
=
_this
.
$route
.
query
;
// 获取跳转过来的参数
_this
.
noDateLevelData
(
this
.
noDateParmas
);
}
// 日期级别
if
(
parmas
.
querySpecifyData
==
"1"
)
{
_this
.
queryForm
=
_this
.
$route
.
query
;
// 获取跳转过来的参数
_this
.
dateLevelData
({
dateParmas
:
this
.
dateParmas
,
noDateParmas
:
this
.
noDateParmas
,
});
}
_this
.
queryForm
=
_this
.
$route
.
query
;
// 获取跳转过来的参数
},
},
// 航班信息维护
flightInformationMaintenance
:
{
noDateParmas
:
{
purposeOfFlightNo
:
parmas
.
purposeOfFlightNo
,
flightRouteListStr
:
parmas
.
flightRouteListStr
,
flightRouteListStr
:
this
.
$route
.
query
.
flightRouteListStr
,
status
:
""
,
},
dateParmas
:
{
purposeOfFlightNo
:
parmas
.
purposeOfFlightNo
,
flightDate
:
parmas
.
flightDate
,
flightRouteListStr
:
parmas
.
flightRouteListStr
,
flightRouteListStr
:
this
.
$route
.
query
.
flightRouteListStr
,
status
:
""
,
},
queryParmas
:
function
()
{
...
...
@@ -488,20 +489,20 @@ export default {
// White Tail只展示当前查询的一条
const
route
=
this
.
$route
.
query
.
flightRouteListStr
;
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
;
//
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
(
...
...
@@ -601,27 +602,26 @@ 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
)
=>
{
return
noEtesRoutes
.
some
((
el
)
=>
el
.
route
===
item
.
route
);
});
const
result
=
noRoutes
.
filter
((
item2
)
=>
{
return
noEtesRoutes
.
some
((
item1
)
=>
{
return
item1
.
route
===
item2
.
route
;
});
})
.
sort
((
a
,
b
)
=>
{
return
(
noEtesRoutes
.
findIndex
((
item
)
=>
item
.
route
===
a
.
route
)
-
noEtesRoutes
.
findIndex
((
item
)
=>
item
.
route
===
b
.
route
)
);
});
// // 跳转传过来的对应的航线把ET86航线的过滤掉
// let noEtesRoutes = inRoutes.filter((item) => item.etesRule == "N");
// let noRoutes = dateList.filter((item) => {
// return noEtesRoutes.some((el) => el.route === item.route);
// });
// const result = noRoutes
// .filter((item2) => {
// return noEtesRoutes.some((item1) => {
// return item1.route === item2.route;
// });
// })
// .sort((a, b) => {
// return (
// noEtesRoutes.findIndex((item) => item.route === a.route) -
// noEtesRoutes.findIndex((item) => item.route === b.route)
// );
// });
// this.defaultRouteData(result) // 默认航线配置信息数据;
this
.
routeList
=
dateRouteList
;
// 航线优先级
this
.
routesInfo
=
resul
t
;
this
.
routesInfo
=
dateLis
t
;
this
.
pageLoading
=
false
;
}
else
{
this
.
routeList
=
dateRouteList
;
// 航线优先级
...
...
Please
register
or
login
to post a comment