Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
24697171
Commit
24697171
authored
Feb 21, 2019
by
qiaoyajun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改航班时间
parent
e2eb1c23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
2 deletions
+46
-2
TravelPriceFlightList.vue
...ravelmanager/TravelGroupControl/TravelPriceFlightList.vue
+46
-2
No files found.
src/components/newTravelmanager/TravelGroupControl/TravelPriceFlightList.vue
View file @
24697171
...
...
@@ -65,11 +65,17 @@
</td>
<td>
{{
priceFlight
.
DepartureAirPortName
}}
</td>
<td>
{{
priceFlight
.
DepartureTime
}}
<el-input
v-if=
"priceFlight.IsShowTime||priceFlight.IsShow"
placeholder=
"起飞时间"
class=
"w120"
v-model=
"priceFlight.DepartureTime"
>
</el-input>
<span
v-else
>
{{
priceFlight
.
DepartureTime
}}
</span>
</td>
<td>
{{
priceFlight
.
ArrivalAirPortName
}}
</td>
<td>
{{
priceFlight
.
ArrivalTime
}}
<el-input
v-if=
"priceFlight.IsShowTime||priceFlight.IsShow"
placeholder=
"到达时间"
class=
"w120"
v-model=
"priceFlight.ArrivalTime"
>
</el-input>
<span
v-else
>
{{
priceFlight
.
ArrivalTime
}}
</span>
</td>
<td>
<el-date-picker
v-if=
"priceFlight.IsShow"
class=
"w110"
:clearable=
"false"
v-model=
"priceFlight.StartDate"
...
...
@@ -86,6 +92,18 @@
<span
v-else
>
{{
priceFlight
.
TicketType
==
1
?
'去程'
:
'回程'
}}
</span>
</td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改时间"
placement=
"top-start"
v-if=
"!priceFlight.IsShowTime"
>
<el-button
v-if=
"IsBindFlight"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"TimeStatusChange(priceFlight)"
circle
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存时间"
placement=
"top-start"
v-if=
"priceFlight.IsShowTime"
>
<el-button
v-if=
"IsBindFlight"
type=
"primary"
icon=
"iconfont icon-baocun"
@
click=
"saveAirticketFlightTime(priceFlight)"
circle
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
v-if=
"!priceFlight.IsShow"
>
<el-button
v-if=
"!IsBindFlight"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"StatusChange(priceFlight)"
circle
></el-button>
...
...
@@ -190,6 +208,10 @@
StatusChange
(
item
)
{
item
.
IsShow
=
!
item
.
IsShow
},
//状态切换
TimeStatusChange
(
item
)
{
item
.
IsShowTime
=
!
item
.
IsShowTime
},
//初始化航空公司下拉
initAirlines
()
{
this
.
apipost
(
...
...
@@ -253,7 +275,9 @@
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
data
!=
null
)
{
console
.
log
(
'res.data.data'
,
res
.
data
.
data
)
res
.
data
.
data
.
forEach
(
x
=>
{
x
[
'IsShowTime'
]
=
false
this
.
priceFlightList
.
push
(
x
)
})
this
.
headCallBack
()
...
...
@@ -306,6 +330,26 @@
)
this
.
headCallBack
()
},
//保存时间信息
saveAirticketFlightTime
(
item
)
{
item
.
IsShowTime
=
false
let
msg
=
{
id
:
item
.
ID
,
departureTime
:
item
.
DepartureTime
,
arriveTime
:
item
.
ArrivalTime
,
}
console
.
log
(
'msg'
,
msg
)
this
.
apipost
(
'travel_post_ModifyAirticketFlightTimeById'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
}
else
{
this
.
Warning
(
res
.
data
.
message
)
}
},
err
=>
{
}
)
},
//删除航班信息
removePriceFlight
(
index
,
item
,
type
)
{
var
that
=
this
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment