Commit 3fafd14a authored by youjie's avatar youjie

ppt 跳转优化

parent 150f07f4
...@@ -59,6 +59,9 @@ ...@@ -59,6 +59,9 @@
}, },
methods: { methods: {
close() { close() {
window.onbeforeunload = function(event) {
event.preventDefault();
};
this.$emit('close') this.$emit('close')
} }
} }
......
...@@ -2034,14 +2034,22 @@ ...@@ -2034,14 +2034,22 @@
}, },
// 添加编辑模版 // 添加编辑模版
journeyTemplate(type) { journeyTemplate(type) {
let href = this.domainManager().PptUrl this.apipost(
// type 1销售暂存模版 "travel_temp_token", {},
if (type == 1) { res => {
this.TemplateUrl = `${href}/?uid=${this.userInfo.EmployeeId}&ConfigId=0&model=2&TempType=0` if (res.data.resultCode == 1) {
} else { let href = this.domainManager().PptUrl
this.TemplateUrl = `${href}/?uid=${this.userInfo.EmployeeId}&ConfigId=0&model=1&TempType=0` // type 1销售暂存模版
} if (type == 1) {
this.dialogPptistVisible = true this.TemplateUrl = `${href}/?uid=${res.data.data}&ConfigId=0&model=2&TempType=0`
} else {
this.TemplateUrl = `${href}/?uid=${res.data.data}&ConfigId=0&model=1&TempType=0`
}
this.dialogPptistVisible = true
}
}
);
}, },
GetExaminePriceOrderPageList(type) { GetExaminePriceOrderPageList(type) {
this.apipost( this.apipost(
......
...@@ -439,11 +439,19 @@ ...@@ -439,11 +439,19 @@
}, },
// 添加编辑模版 // 添加编辑模版
journeyTemplate() { journeyTemplate() {
this.isPostMessage = false; this.apipost(
let href = this.domainManager().PptUrl "travel_temp_token", {},
this.TemplateUrl = res => {
`${href}/?uid=${this.CurrentUserInfo.EmployeeId}&ConfigId=${this.FeatureData.ConfigId}&model=0&TempType=${this.dataAll.FeaturePageType}` if (res.data.resultCode == 1) {
this.dialogPptistVisible = true this.isPostMessage = false;
let href = this.domainManager().PptUrl
this.TemplateUrl =
`${href}/?uid=${res.data.data}&ConfigId=${this.FeatureData.ConfigId}&model=0&TempType=${this.dataAll.FeaturePageType}`
this.dialogPptistVisible = true
}
}
);
}, },
//重新加载行程特色 //重新加载行程特色
ReLoadFeature() { ReLoadFeature() {
...@@ -747,11 +755,20 @@ ...@@ -747,11 +755,20 @@
if (obj) { if (obj) {
this.clickFeature(obj) this.clickFeature(obj)
} }
this.myIframeUrl = this.apipost(
`${this.domainManager().PptUrl}/?uid=${this.CurrentUserInfo.EmployeeId}&ConfigId=${this.$route.query.configId}&index=0&model=3&w=1108` "travel_temp_token", {},
if (document.all.myIframe) { res => {
document.all.myIframe.src = this.myIframeUrl + `&t=${new Date().getTime()}` if (res.data.resultCode == 1) {
} this.myIframeUrl =
`${this.domainManager().PptUrl}/?uid=${res.data.data}&ConfigId=${this.$route.query.configId}&index=0&model=3&w=1108`
if (document.all.myIframe) {
document.all.myIframe.src = this.myIframeUrl + `&t=${new Date().getTime()}`
}
}
}
);
}, },
watch: { watch: {
dataAll: { dataAll: {
......
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