Commit 565d557e authored by liudong1993's avatar liudong1993
parents 42e22f96 cd378b42
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
</el-tooltip> </el-tooltip>
</div> </div>
</div> </div>
<iframe :src="TemplateUrl" <iframe :src="Url"
class="TemplateIframe"> class="TemplateIframe">
</iframe> </iframe>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props:['TemplateUrl'], props:['Url'],
data() { data() {
return { return {
dialogPptistVisible: false, dialogPptistVisible: false,
......
...@@ -1217,7 +1217,7 @@ ...@@ -1217,7 +1217,7 @@
:ChangeThePriceObj="ChangeThePriceObj" :ChangeThePriceObj="ChangeThePriceObj"
@ChangeThePriceVisible="ChangeThePriceVisible=false,ExamineThePriceVisible=false"></ChangeThePriceMessage> @ChangeThePriceVisible="ChangeThePriceVisible=false,ExamineThePriceVisible=false"></ChangeThePriceMessage>
<!-- ppt 模版新增编辑窗口 --> <!-- ppt 模版新增编辑窗口 -->
<pptIframe v-show="dialogPptistVisible" :TemplateUrl="TemplateUrl" <pptIframe v-show="dialogPptistVisible" :Url="TemplateUrl"
@close="closeIframe()"></pptIframe> @close="closeIframe()"></pptIframe>
</div> </div>
</template> </template>
......
...@@ -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>
...@@ -123,9 +120,10 @@ ...@@ -123,9 +120,10 @@
</UpgradedVersion> </UpgradedVersion>
</div> </div>
<!-- ppt 模版行程 --> <!-- ppt 模版行程 -->
<!-- -->
<div v-if="FeatureData.FeatureType==9&&FeatureDataFlag" v-loading="iframeLoading"> <div v-if="FeatureData.FeatureType==9&&FeatureDataFlag" v-loading="iframeLoading">
<iframe :src="TemplateUrlImg" style="width: 100%;border: 0;" <iframe name="myIframe" :src="myIframeUrl" style="width: 100%;border: 0;"
:style="{'height':TemplateUrlImgH+'px'}"> :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">
...@@ -135,14 +133,14 @@ ...@@ -135,14 +133,14 @@
:preview-src-list="FeatureData.TripImageListNew"></el-image> :preview-src-list="FeatureData.TripImageListNew"></el-image>
</template> </template>
</div> --> </div> -->
<div v-if="FeatureData.TripImageListNew.length==0" style="text-align: center;margin-bottom: 20px;font-size: 14px;color: #808080;">暂无数据,右上角编辑行程试试吧!</div> <div v-if="PostMessageText" style="text-align: center;margin-bottom: 20px;font-size: 14px;color: #808080;">暂无数据,右上角编辑行程试试吧!</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- ppt 模版新增编辑窗口 --> <!-- ppt 模版新增编辑窗口 -->
<pptIframe v-show="dialogPptistVisible" :TemplateUrl="TemplateUrl" <pptIframe v-show="dialogPptistVisible" :Url="TemplateUrl"
@close="closeIframe()"></pptIframe> @close="closeIframe()"></pptIframe>
</div> </div>
</template> </template>
...@@ -285,13 +283,16 @@ ...@@ -285,13 +283,16 @@
dialogPptistVisible: false, dialogPptistVisible: false,
userInfo: {}, userInfo: {},
TemplateUrl:'',// 模版 修改url TemplateUrl:'',// 模版 修改url
TemplateUrlImg:'',//行程特色url myIframeUrl:'',//行程特色url
TemplateUrlImgH: 0, myIframeHeigth: 0,
isPostMessage: false, isPostMessage: false,
PostMessageText: '',
iframeLoading: false, iframeLoading: false,
}; };
}, },
created: function () {}, created: function () {
},
methods: { methods: {
closeIframe(){ closeIframe(){
...@@ -304,9 +305,12 @@ ...@@ -304,9 +305,12 @@
this.isPostMessage = true this.isPostMessage = true
this.$emit('ConfigInfo') this.$emit('ConfigInfo')
}else if(event.data.indexOf('行程特色高')!=-1){ }else if(event.data.indexOf('行程特色高')!=-1){
this.iframeLoading = false
let datas = event.data.split('-') let datas = event.data.split('-')
this.TemplateUrlImgH = datas[1] this.myIframeHeigth = datas[1]
this.iframeLoading = false
}else if(event.data=='暂无行程数据'){
this.PostMessageText = event.data
this.iframeLoading = false
} }
}, },
// 添加编辑模版 // 添加编辑模版
...@@ -552,7 +556,10 @@ ...@@ -552,7 +556,10 @@
} }
this.initFileList(); this.initFileList();
if(this.FeatureData.FeatureType==9) { if(this.FeatureData.FeatureType==9) {
this.iframeLoading = true // this.iframeLoading = true
if(document.all.myIframe){
document.all.myIframe.src = this.myIframeUrl
}
} }
}, },
//点击折叠 //点击折叠
...@@ -632,7 +639,16 @@ ...@@ -632,7 +639,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&TempId=${this.FeatureData.TemplateId}&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: {
...@@ -640,8 +656,10 @@ ...@@ -640,8 +656,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