Commit 758743d9 by liangzhen

pdf回显

1 parent 9f5a722e
Showing with 10 additions and 10 deletions
...@@ -374,7 +374,7 @@ export default { ...@@ -374,7 +374,7 @@ export default {
// let prefixUrl = 'pdf/web/viewer.html?file='; // let prefixUrl = 'pdf/web/viewer.html?file=';
// this.iframeUrl = prefixUrl+resUrl.msg; // this.iframeUrl = prefixUrl+resUrl.msg;
// console.log(this.iframeUrl,'this.iframeUrl') // console.log(this.iframeUrl,'this.iframeUrl')
// this.iframeUrl = resUrl.msg; this.iframeUrl = resUrl.msg;
// this.iframeUrl ='https://view.officeapps.live.com/op/view.aspx?src='+ resUrl.msg // this.iframeUrl ='https://view.officeapps.live.com/op/view.aspx?src='+ resUrl.msg
}); });
}, },
...@@ -382,17 +382,17 @@ export default { ...@@ -382,17 +382,17 @@ export default {
console.log("切换", tab.name, this.urlList); console.log("切换", tab.name, this.urlList);
this.urlList.forEach(async (item) => { this.urlList.forEach(async (item) => {
if (item.typeCode == tab.name) { if (item.typeCode == tab.name) {
// console.log("来几次", item.typeCode);
// let prefixUrl = 'pdf/web/viewer.html?file='; let paramsUrl = {
// this.iframeUrl = prefixUrl+item.url; fileId: item.id,
// console.log(this.iframeUrl,'this.iframeUrl') url: item.url,
};
let resUrl = await presignedUrl(paramsUrl);
this.iframeUrl = resUrl.msg;
} }
}); });
// this.iframeUrl=this.iframeUrl.replace('http://127.0.0.1:19090','http://192.168.50.1:19090')
// let prefixUrl = 'pdf/web/viewer.html?file=';
// this.iframeUrl= prefixUrl+this.iframeUrl
// window.open(this.iframeUrl)
console.log(this.iframeUrl, "this.iframeUrl"); console.log(this.iframeUrl, "this.iframeUrl");
}, },
change(id) { change(id) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!