Commit 701e31e6 authored by youjie's avatar youjie

优化

parent b56be135
......@@ -133,7 +133,7 @@
:preview-src-list="FeatureData.TripImageListNew"></el-image>
</template>
</div> -->
<div v-if="PostMessageText" style="text-align: center;margin-bottom: 20px;font-size: 14px;color: #808080;">暂无数据,右上角编辑行程试试吧!</div>
<div v-show="PostMessageText=='暂无行程数据'" style="text-align: center;margin-bottom: 20px;font-size: 14px;color: #808080;">暂无数据,右上角编辑行程试试吧!</div>
</div>
</div>
</div>
......@@ -299,21 +299,20 @@
this.dialogPptistVisible = false
},
handleMessage(event,targetOrigin) {
if(event.data&&!event.data.data) return
if(event.data&&event.data.data&&!event.data.data) return
if(this.isPostMessage) return
if(event.data&&event.data=='行程数据保存成功'){
if(this.isPostMessage) return
// this.dialogPptistVisible = false
this.isPostMessage = true
this.$emit('ConfigInfo')
}else if(event.data&&event.data.indexOf('行程特色高')!=-1){
this.PostMessageText = ''
let datas = event.data.split('-')
this.myIframeHeigth = datas[1]
this.iframeLoading = false
}else if(event.data&&event.data=='暂无行程数据'){
this.PostMessageText = event.data
this.iframeLoading = false
}
this.isPostMessage = true
this.iframeLoading = false
},
// 添加编辑模版
journeyTemplate(type){
......@@ -561,6 +560,7 @@
// this.iframeLoading = true
if(document.all.myIframe){
document.all.myIframe.src = this.myIframeUrl
this.isPostMessage = false
}
}
},
......@@ -650,6 +650,7 @@
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
this.isPostMessage = false
}
},
watch: {
......
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