From 4959c09d202e9f4fc4bab58eecd388f94f937016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B3=BD=E8=85=BE?= <1178634255@qq.com> Date: Wed, 9 Aug 2023 14:34:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/userManage/registerManage.vue | 40 +++++++++++++------------ 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/views/userManage/registerManage.vue b/src/views/userManage/registerManage.vue index f77adf7..31dceec 100644 --- a/src/views/userManage/registerManage.vue +++ b/src/views/userManage/registerManage.vue @@ -681,25 +681,27 @@ export default { }, 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; - } - console.log(this.imgList); - 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; + // } + // console.log(this.imgList); + // this.imgViewerVisible = true; + // }); + // const m = (e) => { + // e.preventDefault(); + // }; + // document.body.style.overflow = "hidden"; + // document.addEventListener("touchmove", m, false); // 禁止页面滑动 }, closeImgViewer() { this.imgViewerVisible = false;