更新备份

master
黄泽腾 2 years ago
parent 0344f257c1
commit 8f96de7c20

@ -625,25 +625,27 @@ export default {
this.getCompanyCertList(); this.getCompanyCertList();
}, },
showImgViewer(row) { showImgViewer(row) {
this.certFileUrl = let newWindow = window.open();
this.BASE_URL + newWindow.document.write(row.filePath)
"/udiwms/image/register/file/getImage?type=image2&name="; // this.certFileUrl =
this.imgList = []; // this.BASE_URL +
previewImage({ // "/udiwms/image/register/file/getImage?type=image2&name=";
imageUrl: row.filePath, // this.imgList = [];
certFileUrl: this.certFileUrl, // previewImage({
}).then((response) => { // imageUrl: row.filePath,
if (response.code === 20000) { // certFileUrl: this.certFileUrl,
this.imgList = response.data; // }).then((response) => {
} // if (response.code === 20000) {
console.log(this.imgList); // this.imgList = response.data;
this.imgViewerVisible = true; // }
}); // console.log(this.imgList);
const m = (e) => { // this.imgViewerVisible = true;
e.preventDefault(); // });
}; // const m = (e) => {
document.body.style.overflow = "hidden"; // e.preventDefault();
document.addEventListener("touchmove", m, false); // // };
// document.body.style.overflow = "hidden";
// document.addEventListener("touchmove", m, false); //
}, },
closeImgViewer() { closeImgViewer() {

Loading…
Cancel
Save