供应商发票信息中的预览界面无法手动关闭

master
1178634255 2 years ago
parent ca7d0b41b2
commit 0474f4323b

@ -800,39 +800,35 @@ export default {
this.BASE_URL +
"/udiwms/image/register/file/getImage?type=image2&name=" + row.licenseUrl;
this.imgList = [];
this.imgList.push(this.certFileUrl)
this.imgList.push(this.certFileUrl);
let index = row.licenseUrl.lastIndexOf('.');
if (index === -1) {
this.$message.error("文件名异常!")
return false
this.$message.error("文件名异常!");
return false;
}
if (row.licenseUrl.substr(index + 1) === 'pdf') {
let pdf = "application/pdf"
let pdf = "application/pdf";
let binaryData = [];
previewFile(this.certFileUrl).then(res => {
binaryData.push(res);
let URL = window.URL.createObjectURL(new Blob(binaryData, { type: pdf }));
window.open(URL);
})
// window.open(this.imgList[0])
return false
});
return false;
}
this.imgViewerVisible = true;
// previewImage({
// imageUrl: this.inputQuery.licenseUrl,
// certFileUrl: this.certFileUrl,
// }).then((response) => {
// if (response.code === 20000) {
// }
// console.log(this.imgList);
// });
const m = (e) => {
e.preventDefault();
};
document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); //
},
closeImgViewer() {
this.imgViewerVisible = false;
document.body.style.overflow = "auto"; //
document.removeEventListener("touchmove", m, false); //
},
invChange() {

Loading…
Cancel
Save