去掉打印

This commit is contained in:
daihh
2022-06-08 17:26:58 +08:00
parent 1d0c0ebe1c
commit ba5fa0738b
2 changed files with 7 additions and 6 deletions

View File

@@ -120,15 +120,16 @@ export default {
},
//加载页面
loadInitPdf(url) {
//console.log('加载pdf文件:'+url)
//if(url && url.indexOf('.pdf')>-1){
let loadingTask = pdf.createLoadingTask(url);
this.src=loadingTask;
loadingTask.promise.then((pdf) =>{
this.totalPages=pdf.numPages;
if(pdf.numPages>this.initNum){
loadingTask.promise.then((pdfrs) =>{
this.totalPages=pdfrs.numPages;
if(pdfrs.numPages>this.initNum){
this.showPages = this.initNum;
} else{
this.showPages =pdf.numPages;
this.showPages =pdfrs.numPages;
}
}).catch((err) =>{
this.$message.error("加载内容失败,请联系管理员");

View File

@@ -185,13 +185,13 @@ export default {
let urlSign=encodeURIComponent(encrypt(beforeUrl));
cookies.set('CASE_TIME', ctime);//写客户端的cookie保存
//以下判断是为了区分本地环境和服务器环境
console.log(process.env,'process.env');
//console.log(process.env,'process.env');
if(process.env.NODE_ENV == 'development'){
this.pdfPath=process.env.VUE_APP_FILE_BASE_URL+u;
}else{
this.pdfPath=process.env.VUE_APP_BASE_API+'/xboe/m/case/content/resource?sign='+urlSign;
}
console.log(this.pdfPath,'this.blobUrl');
//console.log(this.pdfPath,'this.blobUrl');
},
handleScroll() {
let innerHeight = document.querySelector('#case-list-content').clientHeight