Commit 3fafd14a authored by youjie's avatar youjie

ppt 跳转优化

parent 150f07f4
......@@ -59,6 +59,9 @@
},
methods: {
close() {
window.onbeforeunload = function(event) {
event.preventDefault();
};
this.$emit('close')
}
}
......
......@@ -2034,14 +2034,22 @@
},
// 添加编辑模版
journeyTemplate(type) {
let href = this.domainManager().PptUrl
// type 1销售暂存模版
if (type == 1) {
this.TemplateUrl = `${href}/?uid=${this.userInfo.EmployeeId}&ConfigId=0&model=2&TempType=0`
} else {
this.TemplateUrl = `${href}/?uid=${this.userInfo.EmployeeId}&ConfigId=0&model=1&TempType=0`
}
this.dialogPptistVisible = true
this.apipost(
"travel_temp_token", {},
res => {
if (res.data.resultCode == 1) {
let href = this.domainManager().PptUrl
// type 1销售暂存模版
if (type == 1) {
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) {
this.apipost(
......
......@@ -439,11 +439,19 @@
},
// 添加编辑模版
journeyTemplate() {
this.isPostMessage = false;
let href = this.domainManager().PptUrl
this.TemplateUrl =
`${href}/?uid=${this.CurrentUserInfo.EmployeeId}&ConfigId=${this.FeatureData.ConfigId}&model=0&TempType=${this.dataAll.FeaturePageType}`
this.dialogPptistVisible = true
this.apipost(
"travel_temp_token", {},
res => {
if (res.data.resultCode == 1) {
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() {
......@@ -747,11 +755,20 @@
if (obj) {
this.clickFeature(obj)
}
this.myIframeUrl =
`${this.domainManager().PptUrl}/?uid=${this.CurrentUserInfo.EmployeeId}&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()}`
}
this.apipost(
"travel_temp_token", {},
res => {
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: {
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