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-25 10:23:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
626d397e7e82cff74df0df1b0220c38c5f20c012
626d397e
1 parent
e6586fb8
modif
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
23 deletions
src/views/allocationConfig/flightAllocConfig/flightRouteInfo/index.vue
src/views/allocationConfig/flightAllocConfig/flightRouteInfo/index.vue
View file @
626d397
...
...
@@ -153,14 +153,7 @@ export default {
const routes = [];
if (isEtesRoute.length) {
isEtesRoute.map((item) => {
item.routePriority = item.ordinal;
routes.push({
config: false,
fltNo: item.fltNo,
route: item.route,
etesRule: item.isEtesRoute,
routePriority: item.routePriority,
});
routes.push({ config: false, route: item.route });
});
} else {
this.msgWarning("暂无航线");
...
...
@@ -184,25 +177,17 @@ export default {
this.queryForm.purposeOfFlightNo = this.upCase(purposeOfFlightNo);
},
// 新增规则
addRlue(item, index) {
let currentRoute = this.routeList.filter(
(val) => val.route == item.route
);
addRlue(index) {
// 如果当前航班号的航线下没有数据,新增规则给默认数据
routeRuleForm.purposeOfFlightNo = this.$route.query.purposeOfFlightNo;
routeRuleForm.routePriority = currentRoute[0].routePriority;
let routeSpecifyDateSeq = [];
if (this.routeList.length) {
this.routeList.map((item) => {
routeSpecifyDateSeq.push(item.route);
});
}
routeRuleForm.routeSpecifyDateSeq = routeSpecifyDateSeq.join(";");
this.setattrVal(routeRuleForm);
const mergeObj = {
...this.routesInfo[index],
...routeRuleForm,
};
if (this.routeList[index].hasOwnProperty("ordinal")) {
mergeObj.routePriority = this.routeList[index].ordinal;
}
this.$set(this.routesInfo, index, mergeObj); // 给新增规则赋上默认数据
},
// 保存 【新增/修改航线规则设置】
...
...
@@ -349,12 +334,11 @@ export default {
.then((res) => {
const { code, msg, data } = res;
if (code == 200) {
console.log(item);
this.$set(this.routesInfo, index, {
route: item.flightRoute,
config: false,
fltNo:
item
.fltNo,
etesRule:
item
.etesRule,
fltNo:
this.routeList[0]
.fltNo,
etesRule:
this.routeList[0]
.etesRule,
routePriority: item.routePriority,
});
this.msgSuccess(msg);
...
...
Please
register
or
login
to post a comment