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
04e9cdca
Commit
04e9cdca
authored
Jun 09, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
d149a34b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
TravelPriceFlightList.vue
...ravelmanager/TravelGroupControl/TravelPriceFlightList.vue
+22
-10
No files found.
src/components/newTravelmanager/TravelGroupControl/TravelPriceFlightList.vue
View file @
04e9cdca
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<td>
<td>
<template
v-if=
"priceFlight.TrafficType==1"
>
<template
v-if=
"priceFlight.TrafficType==1"
>
<el-select
v-if=
"priceFlight.IsShow"
class=
"w120"
:placeholder=
"$t('pub.pleaseSel')"
filterable
<el-select
v-if=
"priceFlight.IsShow"
class=
"w120"
:placeholder=
"$t('pub.pleaseSel')"
filterable
v-model=
"priceFlight.AirLineId"
@
change=
"airLineSelectChange(priceFlight
.AirLineId,priceFlight
)"
>
v-model=
"priceFlight.AirLineId"
@
change=
"airLineSelectChange(priceFlight
,1
)"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"defaultSelectValue"
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"defaultSelectValue"
></el-option>
<el-option
v-for=
"item in airLineList"
:label=
"item.AlName"
:value=
"item.AirLineId"
<el-option
v-for=
"item in airLineList"
:label=
"item.AlName"
:value=
"item.AirLineId"
:key=
"item.AirLineId"
></el-option>
:key=
"item.AirLineId"
></el-option>
...
@@ -107,6 +107,7 @@
...
@@ -107,6 +107,7 @@
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('sm.baocunshijian')"
placement=
"top-start"
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('sm.baocunshijian')"
placement=
"top-start"
v-if=
"priceFlight.IsShowTime"
>
v-if=
"priceFlight.IsShowTime"
>
<el-button
v-if=
"IsBindFlight"
type=
"primary"
icon=
"iconfont icon-baocun"
<el-button
v-if=
"IsBindFlight"
type=
"primary"
icon=
"iconfont icon-baocun"
@
click=
"saveAirticketFlightTime(priceFlight)"
circle
></el-button>
@
click=
"saveAirticketFlightTime(priceFlight)"
circle
></el-button>
</el-tooltip>
</el-tooltip>
...
@@ -117,18 +118,22 @@
...
@@ -117,18 +118,22 @@
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('pub.saveBtn')"
placement=
"top-start"
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('pub.saveBtn')"
placement=
"top-start"
v-if=
"priceFlight.IsShow"
>
v-if=
"priceFlight.IsShow"
>
<el-button
v-if=
"!IsBindFlight"
type=
"primary"
icon=
"iconfont icon-baocun"
<el-button
v-if=
"!IsBindFlight"
type=
"primary"
icon=
"iconfont icon-baocun"
@
click=
"savePriceFlight(priceFlight)"
circle
></el-button>
@
click=
"savePriceFlight(priceFlight)"
circle
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top-start"
>
<el-button
v-if=
"!IsBindFlight"
type=
"danger"
icon=
"el-icon-delete"
<el-button
v-if=
"!IsBindFlight"
type=
"danger"
icon=
"el-icon-delete"
@
click=
"removePriceFlight(index,priceFlight,1)"
circle
></el-button>
@
click=
"removePriceFlight(index,priceFlight,1)"
circle
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
v-if=
"!isShowFlight(priceFlight)"
class=
"item"
effect=
"dark"
<el-tooltip
v-if=
"!isShowFlight(priceFlight)"
class=
"item"
effect=
"dark"
:content=
"$t('system.table_isShows')"
placement=
"top-start"
>
:content=
"$t('system.table_isShows')"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-remove-outline"
@
click=
"showPriceFlight(priceFlight)"
circle
>
<el-button
type=
"danger"
icon=
"el-icon-remove-outline"
@
click=
"showPriceFlight(priceFlight)"
circle
>
</el-button>
</el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
v-if=
"isShowFlight(priceFlight)"
class=
"item"
effect=
"dark"
:content=
"$t('Operation.Op_hide')"
<el-tooltip
v-if=
"isShowFlight(priceFlight)"
class=
"item"
effect=
"dark"
:content=
"$t('Operation.Op_hide')"
placement=
"top-start"
>
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"iconfont icon-xianshi"
@
click=
"removePriceFlight(index,priceFlight,2)"
<el-button
type=
"danger"
icon=
"iconfont icon-xianshi"
@
click=
"removePriceFlight(index,priceFlight,2)"
...
@@ -214,7 +219,10 @@
...
@@ -214,7 +219,10 @@
methods
:
{
methods
:
{
//状态切换
//状态切换
StatusChange
(
item
)
{
StatusChange
(
item
)
{
item
.
IsShow
=
!
item
.
IsShow
item
.
IsShow
=
!
item
.
IsShow
;
if
(
item
.
IsShow
)
{
this
.
airLineSelectChange
(
item
);
}
},
},
//状态切换
//状态切换
TimeStatusChange
(
item
)
{
TimeStatusChange
(
item
)
{
...
@@ -235,22 +243,23 @@
...
@@ -235,22 +243,23 @@
//交通类型切换
//交通类型切换
getTrafficType
(
item
)
{
getTrafficType
(
item
)
{
if
(
item
.
TrafficType
==
2
)
{
if
(
item
.
TrafficType
==
2
)
{
this
.
airLineSelectChange
(
0
,
item
);
this
.
airLineSelectChange
(
item
,
1
);
}
}
},
},
//航空公司下拉
//航空公司下拉
airLineSelectChange
(
airLineId
,
item
)
{
airLineSelectChange
(
item
,
isClear
)
{
item
.
AirLineId
=
airLineId
this
.
airLineList
.
forEach
(
x
=>
{
this
.
airLineList
.
forEach
(
x
=>
{
if
(
x
.
AirLineId
==
a
irLineId
)
{
if
(
x
.
AirLineId
==
item
.
A
irLineId
)
{
item
.
AlName
=
x
.
AlName
item
.
AlName
=
x
.
AlName
}
}
})
})
if
(
isClear
)
{
item
.
FlightId
=
0
item
.
FlightId
=
0
item
.
DepartureAirPortName
=
''
item
.
DepartureAirPortName
=
''
item
.
ArrivalAirPortName
=
''
item
.
ArrivalAirPortName
=
''
}
let
msg
=
{
let
msg
=
{
airlineID
:
a
irLineId
,
airlineID
:
item
.
A
irLineId
,
TrafficType
:
item
.
TrafficType
TrafficType
:
item
.
TrafficType
}
}
this
.
apipost
(
this
.
apipost
(
...
@@ -258,6 +267,8 @@
...
@@ -258,6 +267,8 @@
msg
,
msg
,
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
"res"
,
res
.
data
.
data
);
item
.
airportNameList
=
[];
item
.
airportNameList
=
res
.
data
.
data
item
.
airportNameList
=
res
.
data
.
data
}
}
},
},
...
@@ -323,6 +334,7 @@
...
@@ -323,6 +334,7 @@
},
},
//保存航班信息
//保存航班信息
savePriceFlight
(
item
)
{
savePriceFlight
(
item
)
{
console
.
log
(
"savePriceFlight"
,
item
)
item
.
IsShow
=
false
item
.
IsShow
=
false
this
.
priceFlightList
.
forEach
((
x
,
index
)
=>
{
this
.
priceFlightList
.
forEach
((
x
,
index
)
=>
{
if
(
index
==
0
)
{
if
(
index
==
0
)
{
...
...
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