Commit aaf009ce authored by youjie's avatar youjie

优化 行程特色

parent e874755b
...@@ -7,9 +7,6 @@ ...@@ -7,9 +7,6 @@
<span class="foldList" @click="fold" v-if="isFold==''">{{$t('sm.djzd')}}</span> <span class="foldList" @click="fold" v-if="isFold==''">{{$t('sm.djzd')}}</span>
<span class="foldList" @click="fold" v-if="isFold==1">{{$t('sm.djzk')}}</span> <span class="foldList" @click="fold" v-if="isFold==1">{{$t('sm.djzk')}}</span>
<template v-if="true"> <template v-if="true">
<!-- <span class="foldList" style="margin-right: 5px;"
v-if="userInfo.IsEditTripTemplate"
@click="journeyTemplate(1)">添加/编辑模版</span> -->
<span v-if="FeatureData.FeatureType==9" class="foldList" style="margin-right: 5px;" <span v-if="FeatureData.FeatureType==9" class="foldList" style="margin-right: 5px;"
@click="journeyTemplate(0)">编辑行程</span> @click="journeyTemplate(0)">编辑行程</span>
</template> </template>
...@@ -124,9 +121,10 @@ ...@@ -124,9 +121,10 @@
</div> </div>
<!-- ppt 模版行程 --> <!-- ppt 模版行程 -->
<!-- --> <!-- -->
<div v-show="FeatureData.FeatureType==9&&FeatureDataFlag" v-loading="iframeLoading"> <div v-if="FeatureData.FeatureType==9&&FeatureDataFlag" v-loading="iframeLoading">
<iframe name="myIframe" :src="TemplateUrlImg" style="width: 100%;border: 0;" {{myIframeUrl}}
:style="{'height':TemplateUrlImgH+'px'}" > <iframe name="myIframe" :src="myIframeUrl" style="width: 100%;border: 0;"
:style="{'height':myIframeHeigth+'px'}" >
</iframe> </iframe>
<!-- <div v-if="FeatureData.TripImageListNew&&FeatureData.TripImageListNew.length>0"> <!-- <div v-if="FeatureData.TripImageListNew&&FeatureData.TripImageListNew.length>0">
<template v-for="url in FeatureData.TripImageListNew"> <template v-for="url in FeatureData.TripImageListNew">
...@@ -286,14 +284,16 @@ ...@@ -286,14 +284,16 @@
dialogPptistVisible: false, dialogPptistVisible: false,
userInfo: {}, userInfo: {},
TemplateUrl:'',// 模版 修改url TemplateUrl:'',// 模版 修改url
TemplateUrlImg:'',//行程特色url myIframeUrl:'',//行程特色url
TemplateUrlImgH: 0, myIframeHeigth: 0,
isPostMessage: false, isPostMessage: false,
PostMessageText: '', PostMessageText: '',
iframeLoading: false, iframeLoading: false,
}; };
}, },
created: function () {}, created: function () {
},
methods: { methods: {
closeIframe(){ closeIframe(){
...@@ -307,7 +307,7 @@ ...@@ -307,7 +307,7 @@
this.$emit('ConfigInfo') this.$emit('ConfigInfo')
}else if(event.data.indexOf('行程特色高')!=-1){ }else if(event.data.indexOf('行程特色高')!=-1){
let datas = event.data.split('-') let datas = event.data.split('-')
this.TemplateUrlImgH = datas[1] this.myIframeHeigth = datas[1]
this.iframeLoading = false this.iframeLoading = false
}else if(event.data=='暂无行程数据'){ }else if(event.data=='暂无行程数据'){
this.PostMessageText = event.data this.PostMessageText = event.data
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
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`
}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=2`
} }
this.dialogPptistVisible = true this.dialogPptistVisible = true
}, },
...@@ -557,8 +557,10 @@ ...@@ -557,8 +557,10 @@
} }
this.initFileList(); this.initFileList();
if(this.FeatureData.FeatureType==9) { if(this.FeatureData.FeatureType==9) {
this.iframeLoading = true // this.iframeLoading = true
document.all.myIframe.src = this.TemplateUrlImg if(document.all.myIframe){
document.all.myIframe.src = this.myIframeUrl
}
} }
}, },
//点击折叠 //点击折叠
...@@ -638,7 +640,16 @@ ...@@ -638,7 +640,16 @@
this.MsgBus.$on('FeatureDataFlag', () => { this.MsgBus.$on('FeatureDataFlag', () => {
this.FeatureDataFlag = true this.FeatureDataFlag = true
}); });
this.TemplateUrlImg = `${this.domainManager().PptUrl}/?uid=${this.userInfo.EmployeeId}&ConfigId=${this.FeatureData.ConfigId}&model=3&w=1108` let obj = this.TypeArray.find(x=>{
return x.TypeState == this.FeatureData.FeatureType
})
if(obj){
this.clickFeature(obj)
}
this.myIframeUrl = `${this.domainManager().PptUrl}/?uid=${this.userInfo.EmployeeId}&ConfigId=${this.$route.query.configId}&index=0&model=3&w=1108`
if(document.all.myIframe){
document.all.myIframe.src = this.myIframeUrl
}
}, },
watch: { watch: {
FeatureData: { FeatureData: {
...@@ -646,8 +657,10 @@ ...@@ -646,8 +657,10 @@
handler: function (val, oldVal) { handler: function (val, oldVal) {
this.$emit("featureCallBack", this.FeatureData); this.$emit("featureCallBack", this.FeatureData);
this.initFeature(); this.initFeature();
}, },
deep: true deep: true,
immediate:true
}, },
"FeatureData.fileList": { "FeatureData.fileList": {
handler: function (val, oldval) { handler: function (val, 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