去掉打印

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

View File

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