From 0c30109311d56150a8ca4ad1ce54fb6205e03977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=87?= <2433098676@qq.com> Date: Wed, 9 Aug 2023 14:47:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=81=E4=B9=A6=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../company/supCompanyAduditDialog.vue | 28 +++++++++--------- .../supManufacturerAuditDialog.vue | 29 ++++++++++--------- .../product/supProductAuditDialog.vue | 24 ++++++++------- 3 files changed, 43 insertions(+), 38 deletions(-) diff --git a/src/views/purchase/company/supCompanyAduditDialog.vue b/src/views/purchase/company/supCompanyAduditDialog.vue index 6a7efad..a3d665a 100644 --- a/src/views/purchase/company/supCompanyAduditDialog.vue +++ b/src/views/purchase/company/supCompanyAduditDialog.vue @@ -532,19 +532,21 @@ export default { 'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1; }, showImgViewer(row) { - this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; - this.imgList = []; - previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => { - if (response.code === 20000) { - this.imgList = response.data; - } - }); - this.imgViewerVisible = true; - const m = (e) => { - e.preventDefault() - }; - document.body.style.overflow = 'hidden'; - document.addEventListener("touchmove", m, false); // 禁止页面滑动 + let newWindow = window.open(); + newWindow.document.write(row.filePath) + // this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; + // this.imgList = []; + // previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => { + // if (response.code === 20000) { + // this.imgList = response.data; + // } + // }); + // this.imgViewerVisible = true; + // const m = (e) => { + // e.preventDefault() + // }; + // document.body.style.overflow = 'hidden'; + // document.addEventListener("touchmove", m, false); // 禁止页面滑动 }, closeImgViewer() { this.imgViewerVisible = false; diff --git a/src/views/purchase/manufacturer/supManufacturerAuditDialog.vue b/src/views/purchase/manufacturer/supManufacturerAuditDialog.vue index 70f2d70..9ff5627 100644 --- a/src/views/purchase/manufacturer/supManufacturerAuditDialog.vue +++ b/src/views/purchase/manufacturer/supManufacturerAuditDialog.vue @@ -561,20 +561,21 @@ export default { 'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1; }, showImgViewer(row) { - - this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; - this.imgList = []; - previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => { - if (response.code === 20000) { - this.imgList=response.data; - } - }); - this.imgViewerVisible = true; - const m = (e) => { - e.preventDefault() - }; - document.body.style.overflow = 'hidden'; - document.addEventListener("touchmove", m, false); // 禁止页面滑动 + let newWindow = window.open(); + newWindow.document.write(row.filePath) + // this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; + // this.imgList = []; + // previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => { + // if (response.code === 20000) { + // this.imgList=response.data; + // } + // }); + // this.imgViewerVisible = true; + // const m = (e) => { + // e.preventDefault() + // }; + // document.body.style.overflow = 'hidden'; + // document.addEventListener("touchmove", m, false); // 禁止页面滑动 }, closeImgViewer() { this.imgViewerVisible = false; diff --git a/src/views/purchase/product/supProductAuditDialog.vue b/src/views/purchase/product/supProductAuditDialog.vue index 1e6c303..3a3fe5a 100644 --- a/src/views/purchase/product/supProductAuditDialog.vue +++ b/src/views/purchase/product/supProductAuditDialog.vue @@ -564,17 +564,19 @@ export default { indexOf(ext.toLowerCase()) !== -1; }, showImgViewer(row){ - this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; - this.imgList=[]; - previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => { - if (response.code === 20000) { - this.imgList=response.data; - } - }); - this.imgViewerVisible = true; - const m = (e) => { e.preventDefault() }; - document.body.style.overflow = 'hidden'; - document.addEventListener("touchmove", m, false); // 禁止页面滑动 + let newWindow = window.open(); + newWindow.document.write(row.filePath) + // this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; + // this.imgList=[]; + // previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => { + // if (response.code === 20000) { + // this.imgList=response.data; + // } + // }); + // this.imgViewerVisible = true; + // const m = (e) => { e.preventDefault() }; + // document.body.style.overflow = 'hidden'; + // document.addEventListener("touchmove", m, false); // 禁止页面滑动 }, closeImgViewer(){ this.imgViewerVisible = false;