Commit 04e9cdca authored by 黄奎's avatar 黄奎

页面修改

parent d149a34b
......@@ -55,7 +55,7 @@
<td>
<template v-if="priceFlight.TrafficType==1">
<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 v-for="item in airLineList" :label="item.AlName" :value="item.AirLineId"
:key="item.AirLineId"></el-option>
......@@ -107,6 +107,7 @@
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('sm.baocunshijian')" 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>
......@@ -117,18 +118,22 @@
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('pub.saveBtn')" placement="top-start"
v-if="priceFlight.IsShow">
<el-button v-if="!IsBindFlight" type="primary" icon="iconfont icon-baocun"
@click="savePriceFlight(priceFlight)" circle></el-button>
</el-tooltip>
<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"
@click="removePriceFlight(index,priceFlight,1)" circle></el-button>
</el-tooltip>
<el-tooltip v-if="!isShowFlight(priceFlight)" class="item" effect="dark"
:content="$t('system.table_isShows')" placement="top-start">
<el-button type="danger" icon="el-icon-remove-outline" @click="showPriceFlight(priceFlight)" circle>
</el-button>
</el-tooltip>
<el-tooltip v-if="isShowFlight(priceFlight)" class="item" effect="dark" :content="$t('Operation.Op_hide')"
placement="top-start">
<el-button type="danger" icon="iconfont icon-xianshi" @click="removePriceFlight(index,priceFlight,2)"
......@@ -214,7 +219,10 @@
methods: {
//状态切换
StatusChange(item) {
item.IsShow = !item.IsShow
item.IsShow = !item.IsShow;
if (item.IsShow) {
this.airLineSelectChange(item);
}
},
//状态切换
TimeStatusChange(item) {
......@@ -235,22 +243,23 @@
//交通类型切换
getTrafficType(item) {
if (item.TrafficType == 2) {
this.airLineSelectChange(0, item);
this.airLineSelectChange(item,1);
}
},
//航空公司下拉
airLineSelectChange(airLineId, item) {
item.AirLineId = airLineId
airLineSelectChange(item, isClear) {
this.airLineList.forEach(x => {
if (x.AirLineId == airLineId) {
if (x.AirLineId == item.AirLineId) {
item.AlName = x.AlName
}
})
if (isClear) {
item.FlightId = 0
item.DepartureAirPortName = ''
item.ArrivalAirPortName = ''
}
let msg = {
airlineID: airLineId,
airlineID: item.AirLineId,
TrafficType: item.TrafficType
}
this.apipost(
......@@ -258,6 +267,8 @@
msg,
res => {
if (res.data.resultCode == 1) {
console.log("res",res.data.data);
item.airportNameList =[];
item.airportNameList = res.data.data
}
},
......@@ -323,6 +334,7 @@
},
//保存航班信息
savePriceFlight(item) {
console.log("savePriceFlight", item)
item.IsShow = false
this.priceFlightList.forEach((x, index) => {
if (index == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment