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-24 11:23:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
14a2a32477a827268e49944282eed5bd02d17060
14a2a324
1 parent
2ddf4601
modify
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
src/views/allocationConfig/flightAllocConfig/mixins/index.js
src/views/allocationConfig/flightAllocConfig/mixins/index.js
View file @
14a2a32
...
...
@@ -230,15 +230,23 @@ export default {
let
noDateRouteList
=
data
.
routeList
.
filter
(
(
item
)
=>
item
.
etesRule
==
"N"
);
// 航班种类和日期级别处理默认数据
const
flightKindName
=
[
"Purple Tail"
,
"White Tail"
].
includes
(
this
.
$route
.
query
.
flightKindName
);
// 航班信息维护从非日期级别拿数据时要删掉id 和 historyId
if
(
this
.
$route
.
query
.
flightKindName
==
"Purple Tail"
||
this
.
$route
.
query
.
flightKindName
==
"White Tail"
)
{
if
(
flightKindName
||
this
.
$route
.
query
.
querySpecifyData
==
"1"
)
{
data
.
list
.
map
((
item
)
=>
{
if
(
item
.
status
==
"1"
)
{
delete
item
.
id
;
delete
item
.
historyId
;
}
// 开启 || 保存【若开启则不用重置status和删除id & historyId】
if
((
item
.
status
=
"3"
))
{
item
.
status
=
"1"
;
delete
item
.
id
;
delete
item
.
historyId
;
}
return
item
;
});
}
...
...
@@ -274,10 +282,6 @@ export default {
});
});
},
dealFlightKind
(){
},
// 【接口调用和数据去重整合】日期级别
dateLevelRoute
(
parmas
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
Please
register
or
login
to post a comment