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-09-20 10:50:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d88e3f3a4c6f523eab8d3da0ff179aeae93c58c5
d88e3f3a
1 parent
ebcf0643
添加航班航线做ET86航线过滤
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
src/views/allocationConfig/flightAllocConfig/info.vue
src/views/basicInformation/flightInformationMaintenance/index.vue
src/views/allocationConfig/flightAllocConfig/info.vue
View file @
d88e3f3
...
...
@@ -1220,8 +1220,10 @@ export default {
queryRouteByFltNo({ fltNo: this.infoForm.fltNo }).then(res => {
if (res.code === 200) {
if (res.data.list.length > 0) {
this.routeList = res.data.list
res.data.list.forEach(item => {
let isEtesRoute = res.data.list.filter((item) => item.isEtesRoute == "N"); // 过滤ET86航线
this.routeList = isEtesRoute
if(isEtesRoute.length){
isEtesRoute.forEach(item => {
this.infoForm.list.push({
purposeOfFlightNo: this.infoForm.fltNo,
ruleDate: this.infoForm.fltDate,
...
...
@@ -1229,6 +1231,9 @@ export default {
routePriority: item.ordinal
})
})
}else{
this.msgWarning('未查询到航线信息!')
}
} else {
this.msgWarning('未查询到航线信息!')
this.routeList = []
...
...
src/views/basicInformation/flightInformationMaintenance/index.vue
View file @
d88e3f3
...
...
@@ -608,9 +608,16 @@ export default {
queryRouteByFltNo({ fltNo: this.form.fltNo }).then(res => {
this.routeLoading = false
if (res.code === 200) {
this.routeList = res.data.list
if(res.data.list.length){
let isEtesRoute = res.data.list.filter((item) => item.isEtesRoute == "N"); // 过滤ET86航线
this.routeList = isEtesRoute
if (isEtesRoute.length == 0) {
this.form.route = "";
}
}
if (res.data.list.length == 0) {
this.form.route = "";
this.routeList = []
this.msgError("该航班没有设置航线");
}
} else {
...
...
@@ -858,7 +865,12 @@ export default {
queryRouteByFltNo({ fltNo: this.form.fltNo }).then(res => {
this.routeLoading = false
if (res.code === 200) {
this.routeList = res.data.list
if(res.data.list.length){
let isEtesRoute = res.data.list.filter((item) => item.isEtesRoute == "N"); // 过滤ET86航线
this.routeList = isEtesRoute
}else{
this.routeList = []
}
} else {
this.msgWarning(res.msg)
}
...
...
Please
register
or
login
to post a comment