Commit f695eb98 authored by youjie's avatar youjie

行程线路 横版 及横版 、竖版查询

parent 0c3380e5
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<div class="dialogPptistVisible-box" <div class="dialogPptistVisible-box"
style="width: 100%;height: 100%;"> style="width: 100%;height: 100%;">
<div class="closePptist-box"> <div class="closePptist-box">
<div class="closePptist"> <div class="closePptist">
<el-tooltip class="item" effect="dark" content="关闭窗口" placement="bottom"> <el-tooltip class="item" effect="dark" content="关闭窗口" placement="bottom">
<i class="el-icon-close" <i class="el-icon-close"
...@@ -11,14 +12,14 @@ ...@@ -11,14 +12,14 @@
</el-tooltip> </el-tooltip>
</div> </div>
</div> </div>
<iframe :src="Url" <iframe name="myTemplateUrl" :src="Url"
class="TemplateIframe"> class="TemplateIframe">
</iframe> </iframe>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props:['Url'], props:['Url','FeaturePageType'],
data() { data() {
return { return {
dialogPptistVisible: false, dialogPptistVisible: false,
...@@ -27,6 +28,21 @@ ...@@ -27,6 +28,21 @@
TemplateUrlImg:'', TemplateUrlImg:'',
isPostMessage: false isPostMessage: false
} }
},
watch: {
FeaturePageType: {
//深度监听,可监听到对象、数组的变化
handler: function (val, oldVal) {
if(document.all.myTemplateUrl){
document.all.myTemplateUrl.src = this.Url
}
},
deep: true,
immediate:true
},
},
mounted() {
}, },
methods: { methods: {
close() { close() {
......
...@@ -1991,7 +1991,7 @@ ...@@ -1991,7 +1991,7 @@
// 添加编辑模版 // 添加编辑模版
journeyTemplate(){ journeyTemplate(){
let href = this.domainManager().PptUrl let href = this.domainManager().PptUrl
this.TemplateUrl=`${href}/?uid=${this.userInfo.EmployeeId}&model=1` this.TemplateUrl=`${href}/?uid=${this.userInfo.EmployeeId}&model=1&TempType=0`
this.dialogPptistVisible = true this.dialogPptistVisible = true
}, },
GetExaminePriceOrderPageList(type) { GetExaminePriceOrderPageList(type) {
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
</div> </div>
<!-- ppt 模版新增编辑窗口 --> <!-- ppt 模版新增编辑窗口 -->
<pptIframe v-show="dialogPptistVisible" :Url="TemplateUrl" <pptIframe v-show="dialogPptistVisible" :FeaturePageType="dataAll.FeaturePageType" :Url="TemplateUrl"
@close="closeIframe()"></pptIframe> @close="closeIframe()"></pptIframe>
</div> </div>
</template> </template>
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
UpgradedVersion, UpgradedVersion,
pptIframe pptIframe
}, },
props: ["subConfigId", "FeatureData", "isNewConfig", "TeamType"], props: ["subConfigId", "FeatureData", "isNewConfig", "TeamType", "dataAll"],
inject: ['loadConfigInfo'], inject: ['loadConfigInfo'],
data() { data() {
return { return {
...@@ -336,12 +336,13 @@ ...@@ -336,12 +336,13 @@
}, },
// 添加编辑模版 // 添加编辑模版
journeyTemplate(type){ journeyTemplate(type){
console.log(this.dataAll.FeaturePageType,'-===FeaturePageType')
this.isPostMessage = false this.isPostMessage = false
let href = this.domainManager().PptUrl let href = this.domainManager().PptUrl
if(type&&type==1){ if(type&&type==1){
this.TemplateUrl=`${href}/?uid=${this.userInfo.EmployeeId}&ConfigId=0&model=1` this.TemplateUrl=`${href}/?uid=${this.userInfo.EmployeeId}&ConfigId=0&model=1&TempType=0`
}else{ }else{
this.TemplateUrl=`${href}/?uid=${this.userInfo.EmployeeId}&ConfigId=${this.FeatureData.ConfigId}&model=0` this.TemplateUrl=`${href}/?uid=${this.userInfo.EmployeeId}&ConfigId=${this.FeatureData.ConfigId}&model=0&TempType=${this.dataAll.FeaturePageType}`
} }
this.dialogPptistVisible = true this.dialogPptistVisible = true
}, },
...@@ -674,6 +675,12 @@ ...@@ -674,6 +675,12 @@
} }
}, },
watch: { watch: {
dataAll:{
handler: function (val, oldVal) {
},
deep: true,
immediate:true
},
FeatureData: { FeatureData: {
//深度监听,可监听到对象、数组的变化 //深度监听,可监听到对象、数组的变化
handler: function (val, oldVal) { handler: function (val, oldVal) {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
:IsDirect="PostConfig.IsDirect" v-bind:AllCityList="AllCityList" v-bind:StartCity="StartCity" :IsDirect="PostConfig.IsDirect" v-bind:AllCityList="AllCityList" v-bind:StartCity="StartCity"
:UseTypeArray="UseTypeArray" :AirPickUp="AirPickUp" :AirSend="AirSend" @change="handlerChangeData" :UseTypeArray="UseTypeArray" :AirPickUp="AirPickUp" :AirSend="AirSend" @change="handlerChangeData"
:TeamType="TeamType" :IsOpenHotel="PostConfig.IsOpenHotel"></TravelDaysTripDirect> :TeamType="TeamType" :IsOpenHotel="PostConfig.IsOpenHotel"></TravelDaysTripDirect>
<TravelFeature :TripColor="PostConfig.TripColor" :class="{'showOther':(TeamType==3)}" ref="TravelFeature" <TravelFeature :TripColor="PostConfig.TripColor" :dataAll="PostConfig" :class="{'showOther':(TeamType==3)}" ref="TravelFeature"
id="thirdAnchor" @featureCallBack="getFeature" :FeatureData="FeatureData" :TeamType="TeamType" id="thirdAnchor" @featureCallBack="getFeature" :FeatureData="FeatureData" :TeamType="TeamType"
:isNewConfig="isNewConfig" @unlockFormCommit="unlockFormCommit" :CurrentUserInfo="CurrentUserInfo" :isNewConfig="isNewConfig" @unlockFormCommit="unlockFormCommit" :CurrentUserInfo="CurrentUserInfo"
@ConfigInfo="firstLoadConfigInfo"> @ConfigInfo="firstLoadConfigInfo">
...@@ -222,6 +222,7 @@ ...@@ -222,6 +222,7 @@
TripCityList: [], //行程城市 TripCityList: [], //行程城市
TripMapList: [], TripMapList: [],
NotQueryCityList:[],//使用系统中的经纬度城市 NotQueryCityList:[],//使用系统中的经纬度城市
FeaturePageType:0,//1横版 2竖版
}, },
//行程 //行程
FeatureData: { FeatureData: {
...@@ -422,6 +423,7 @@ ...@@ -422,6 +423,7 @@
basicData.RemoveChild = this.PostConfig.RemoveChild; basicData.RemoveChild = this.PostConfig.RemoveChild;
basicData.OfferId = this.PostConfig.OfferId; basicData.OfferId = this.PostConfig.OfferId;
basicData.TeamType = this.PostConfig.TeamType; basicData.TeamType = this.PostConfig.TeamType;
basicData.FeaturePageType = this.PostConfig.FeaturePageType
basicData.TripMapList = this.PostConfig.TripMapList; basicData.TripMapList = this.PostConfig.TripMapList;
basicData.TripCountryList = this.PostConfig.TripCountryList; basicData.TripCountryList = this.PostConfig.TripCountryList;
...@@ -457,7 +459,6 @@ ...@@ -457,7 +459,6 @@
basicData.WCountryId = this.PostConfig.WCountryId; basicData.WCountryId = this.PostConfig.WCountryId;
basicData.WLocationId = this.PostConfig.WLocationId; basicData.WLocationId = this.PostConfig.WLocationId;
basicData.WCityId = this.PostConfig.WCityId; basicData.WCityId = this.PostConfig.WCityId;
this.journeyList.FeaturePageType = this.PostDaysTrip.FeaturePageType;
this.journeyList.IsUpdateTrip = this.PostDaysTrip.IsUpdateTrip; this.journeyList.IsUpdateTrip = this.PostDaysTrip.IsUpdateTrip;
//行程特色数据 //行程特色数据
var TripFeature = {}; var TripFeature = {};
...@@ -685,13 +686,12 @@ ...@@ -685,13 +686,12 @@
this.journeyList.isFileUpload = true; this.journeyList.isFileUpload = true;
this.journeyList.DayNum = configData.Days.length; this.journeyList.DayNum = configData.Days.length;
this.journeyList.NightNum = this.journeyList.DayNum - 1; this.journeyList.NightNum = this.journeyList.DayNum - 1;
let _this = this
let arrDayList = function(list){ let arrDayList = function(list){
list.forEach(x=>{ list.forEach(x=>{
x.IsBlowUp = false x.IsBlowUp = false
if(_this.journeyList.FeaturePageType==2||!_this.journeyList.FeaturePageType){ if(this.PostConfig.FeaturePageType==2){
x.zoom = 0.44 x.zoom = 0.44
}else if(_this.journeyList.FeaturePageType==1){ }else if(this.PostConfig.FeaturePageType==1){
x.zoom = 0.285 x.zoom = 0.285
} }
}) })
...@@ -883,6 +883,7 @@ ...@@ -883,6 +883,7 @@
this.PostConfig.LineteamId = tempData.LineteamId; this.PostConfig.LineteamId = tempData.LineteamId;
this.PostConfig.CountryID = tempData.CountryID; this.PostConfig.CountryID = tempData.CountryID;
this.PostConfig.TeamType = tempData.TeamType; this.PostConfig.TeamType = tempData.TeamType;
this.PostConfig.FeaturePageType = tempData.FeaturePageType;
//视频地址 //视频地址
this.PostConfig.VideoStr = tempData.VideoStr; this.PostConfig.VideoStr = tempData.VideoStr;
this.PostConfig.OpenTeamDescribe = tempData.OpenTeamDescribe; this.PostConfig.OpenTeamDescribe = tempData.OpenTeamDescribe;
...@@ -949,18 +950,16 @@ ...@@ -949,18 +950,16 @@
//默认不联动行程特色 //默认不联动行程特色
this.journeyList.IsUpdateTrip = 0; this.journeyList.IsUpdateTrip = 0;
this.journeyList.FeaturePageType = 2;
this.journeyList.DayNum = tempData.DayNum; this.journeyList.DayNum = tempData.DayNum;
this.journeyList.NightNum = tempData.NightNum; this.journeyList.NightNum = tempData.NightNum;
this.journeyList.ReturnArriveCityId = tempData.ReturnArriveCityId; this.journeyList.ReturnArriveCityId = tempData.ReturnArriveCityId;
this.journeyList.StartCityId = tempData.StartCityId; this.journeyList.StartCityId = tempData.StartCityId;
let _this = this
let arrDayList = function(list){ let arrDayList = function(list){
list.forEach(x=>{ list.forEach(x=>{
x.IsBlowUp = false x.IsBlowUp = false
if(_this.journeyList.FeaturePageType==2||!_this.journeyList.FeaturePageType){ if(tempData.FeaturePageType==2){
x.zoom = 0.44 x.zoom = 0.44
}else if(_this.journeyList.FeaturePageType==1){ }else if(tempData.FeaturePageType==1){
x.zoom = 0.285 x.zoom = 0.285
} }
}) })
...@@ -1055,6 +1054,13 @@ ...@@ -1055,6 +1054,13 @@
'$route'(to, from) { //监听路由是否变化 '$route'(to, from) { //监听路由是否变化
location.reload() location.reload()
}, },
PostDaysTrip:{
handler: function (val, oldVal) {
},
deep: true,
immediate:true
}
}, },
mounted() { mounted() {
this.CurrentUserInfo = this.getLocalStorage();; this.CurrentUserInfo = this.getLocalStorage();;
......
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
<span class="TDTextspan" :class="{'showOther':TeamType==3}">{{$t('op.ReturnCity')}}</span> <span class="TDTextspan" :class="{'showOther':TeamType==3}">{{$t('op.ReturnCity')}}</span>
<span :class="{'showOther':TeamType==3}"> <span :class="{'showOther':TeamType==3}">
<el-form-item prop="ReturnArriveCityId"> <el-form-item prop="ReturnArriveCityId">
<el-select class="w100" :placeholder="$t('pub.pleaseSel')" v-model="subConfig.ReturnArriveCityId" <el-select class="w90" :placeholder="$t('pub.pleaseSel')" v-model="subConfig.ReturnArriveCityId"
filterable> filterable>
<el-option :label="$t('pub.unlimitedSel')" :value="SelectDefaultValue"></el-option> <el-option :label="$t('pub.unlimitedSel')" :value="SelectDefaultValue"></el-option>
<el-option v-for="item in StartCity" :label="item.startCityName" :value="item.ID" :key="item.ID"> <el-option v-for="item in StartCity" :label="item.startCityName" :value="item.ID" :key="item.ID">
...@@ -173,18 +173,18 @@ ...@@ -173,18 +173,18 @@
<span class="TDTextspan" :class="{'showOther':TeamType==3}">{{$t('op.IsUpdateXCTS')}}</span> <span class="TDTextspan" :class="{'showOther':TeamType==3}">{{$t('op.IsUpdateXCTS')}}</span>
<span :class="{'showOther':TeamType==3}"> <span :class="{'showOther':TeamType==3}">
<el-form-item prop="ReturnArriveCityId"> <el-form-item prop="ReturnArriveCityId">
<el-select class="w100" :placeholder="$t('pub.pleaseSel')" v-model="subConfig.IsUpdateTrip"> <el-select class="w90" :placeholder="$t('pub.pleaseSel')" v-model="subConfig.IsUpdateTrip">
<el-option :label="$t('op.notUpdate')" :value="0"></el-option> <el-option :label="$t('op.notUpdate')" :value="0"></el-option>
<el-option :label="$t('op.Update')" :value="1"></el-option> <el-option :label="$t('op.Update')" :value="1"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</span> </span>
<template v-if="false"> <template v-if="true">
<span class="TDTextspan" :class="{'showOther':TeamType==3}">版型</span> <span class="TDTextspan" :class="{'showOther':TeamType==3}">版型</span>
<span :class="{'showOther':TeamType==3}"> <span :class="{'showOther':TeamType==3}">
<el-form-item prop="ReturnArriveCityId"> <el-form-item prop="FeaturePageType">
<el-select placeholder="请选择版型" v-model="subConfig.FeaturePageType" <el-select class="w90" placeholder="请选择版型" v-model="dataAll.FeaturePageType"
style="width: 80px;"> @change="getFeaturePageType()">
<el-option label="横版" :value="1"></el-option> <el-option label="横版" :value="1"></el-option>
<el-option label="竖版" :value="2"></el-option> <el-option label="竖版" :value="2"></el-option>
</el-select> </el-select>
...@@ -206,14 +206,14 @@ ...@@ -206,14 +206,14 @@
<span class="el-icon-full-screen absolute BlowUpTravelDays" <span class="el-icon-full-screen absolute BlowUpTravelDays"
@click="clickBlowUpTravelDays(item)"></span> @click="clickBlowUpTravelDays(item)"></span>
</el-tooltip> </el-tooltip>
<travelDaysHV v-if="subConfig.FeaturePageType==1" :index="index" :dataAll="dataAll" :item="item"> <travelDaysHV v-if="dataAll.FeaturePageType==1" :index="index" :dataAll="dataAll" :item="item">
</travelDaysHV> </travelDaysHV>
<travelDays v-if="subConfig.FeaturePageType==2" :index="index" :dataAll="dataAll" :item="item"> <travelDays v-if="dataAll.FeaturePageType==2" :index="index" :dataAll="dataAll" :item="item">
</travelDays> </travelDays>
<div v-if="item.IsBlowUp" class="BlowUpTravelDaysBox"> <div v-if="item.IsBlowUp" class="BlowUpTravelDaysBox">
<travelDaysHV v-if="subConfig.FeaturePageType==1" :index="index" :dataAll="dataAll" :item="item"> <travelDaysHV v-if="dataAll.FeaturePageType==1" :index="index" :dataAll="dataAll" :item="item">
</travelDaysHV> </travelDaysHV>
<travelDays v-if="subConfig.FeaturePageType==2" :index="index" :dataAll="dataAll" :item="item"> <travelDays v-if="dataAll.FeaturePageType==2" :index="index" :dataAll="dataAll" :item="item">
</travelDays> </travelDays>
<span v-if="item.IsBlowUp" class="el-icon-error BlowUpTravelDaysClose" <span v-if="item.IsBlowUp" class="el-icon-error BlowUpTravelDaysClose"
@click="clickBlowUpTravelDays(item)"></span> @click="clickBlowUpTravelDays(item)"></span>
...@@ -270,10 +270,24 @@ ...@@ -270,10 +270,24 @@
travelDaysHV travelDaysHV
}, },
methods: { methods: {
getFeaturePageType(){
this.subConfig.DayList.forEach(x=>{
if(this.dataAll.FeaturePageType==1){
x.zoom = 0.285
}
if(this.dataAll.FeaturePageType==2){
x.zoom = 0.44
}
})
this.$forceUpdate()
},
clickBlowUpTravelDays(item){ clickBlowUpTravelDays(item){
item.IsBlowUp=!item.IsBlowUp item.IsBlowUp=!item.IsBlowUp
if(item.IsBlowUp) item.zoom = 1 if(item.IsBlowUp) item.zoom = 1
else item.zoom = 0.44 else{
if(this.dataAll.FeaturePageType==1) item.zoom = 0.285
if(this.dataAll.FeaturePageType==2) item.zoom = 0.44
}
this.$forceUpdate() this.$forceUpdate()
}, },
handlerChangeDateList(data) { handlerChangeDateList(data) {
...@@ -443,6 +457,7 @@ ...@@ -443,6 +457,7 @@
WarmTipList: WarmTipList, WarmTipList: WarmTipList,
TitleList: TitleList, TitleList: TitleList,
IsUpdateTrip:this.subConfig.IsUpdateTrip, IsUpdateTrip:this.subConfig.IsUpdateTrip,
FeaturePageType: this.dataAll.FeaturePageType
}; };
this.HotelList = HotelList; this.HotelList = HotelList;
this.DinnerList = DinnerList; this.DinnerList = DinnerList;
...@@ -466,6 +481,14 @@ ...@@ -466,6 +481,14 @@
} }
}, },
watch: { watch: {
'dataAll.FeaturePageType': {
deep: true,
immediate: true,
handler: function (newVal, oldVal) {
}
},
'subConfig.DayList': { 'subConfig.DayList': {
deep: true, deep: true,
handler: function (newVal, oldVal) { handler: function (newVal, oldVal) {
......
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