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-10 15:41:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fdda74115d7fd6f3119c44d85f0e2d5d10942349
fdda7411
1 parent
0983fd14
modify
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
src/views/basicInformation/flightInformationMaintenance/index.vue
src/views/basicInformation/flightInformationMaintenance/index.vue
View file @
fdda741
...
...
@@ -1321,8 +1321,10 @@ export default {
);
routeInfo.isEtesRoute = whiteEt86.length;
}
}else{
routeInfo.isEtesRoute = row.route.split(";").every((item) => et86RouteList.includes(item));
} else {
routeInfo.isEtesRoute = row.route
.split(";")
.every((item) => et86RouteList.includes(item));
}
} else {
this.msgError("暂无当前航班航线");
...
...
@@ -1403,7 +1405,6 @@ export default {
})
.catch(() => {});
},
/** 提交按钮 */
submitForm: function () {
this.$refs["form"].validate((valid) => {
...
...
@@ -1421,6 +1422,29 @@ export default {
}
if (valid) {
let formdata = JSON.parse(JSON.stringify(this.form));
let params = {
fltNo: formdata.fltNo,
};
queryRoute(params)
.then((res) => {
const { code, data, msg } = res;
if (code == 200) {
// 按照route数组的顺序排序
let sortRoute = data.list.sort((a, b) => {
return (
formdata.route.indexOf(a.route) -
formdata.route.indexOf(b.route)
);
});
// 过滤掉不在route数组中的字符串
let reuslt = sortRoute.filter((item) => {
return formdata.route.indexOf(item.route) !== -1;
});
let sortRoutes = [];
reuslt.map((item) => {
sortRoutes.push(item.route);
});
formdata.route = sortRoutes;
//高价百分比和低价百分比和不可以大于100
if (
this.form.highLowPriceFlg &&
...
...
@@ -1469,6 +1493,9 @@ export default {
}
});
}
})
.catch(() => {});
}
});
},
//表单重置
...
...
Please
register
or
login
to post a comment