diff --git a/src/views/basic/corpMaintain/corpMaintain.vue b/src/views/basic/corpMaintain/corpMaintain.vue index 6bf8fa7..3db2020 100644 --- a/src/views/basic/corpMaintain/corpMaintain.vue +++ b/src/views/basic/corpMaintain/corpMaintain.vue @@ -654,19 +654,21 @@ 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; - } - }); - 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); // 禁止页面滑动 }, // 隐藏表单 hideForm() { diff --git a/src/views/improveInfo.vue b/src/views/improveInfo.vue index c07af3a..be35091 100644 --- a/src/views/improveInfo.vue +++ b/src/views/improveInfo.vue @@ -947,25 +947,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;