资质文件上传问题

dev_招标
qiuyt 2 months ago
parent edef733c5b
commit 4dee9c30eb

@ -617,6 +617,7 @@ export default {
previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
if (response.code === 20000) {
this.imgList = response.data
console.log('this.imgList',this.imgList)
}
})
this.imgViewerVisible = true

@ -852,22 +852,23 @@ export default {
},
showImgViewer(_this, row) {
// let newWindow = window.open();
// newWindow.document.write(row.filePath)
_this.certFileUrl =
_this.BASE_URL +
'/udiwms/image/register/file/getImage?type=image2&name='
var baseUrl = process.env.VUE_APP_BASE_API;
_this.certFileUrl = baseUrl + "/udiwms/image/register/file/getImage?type=image2&name=";
if (row.filePath.toLowerCase().slice(-5).includes(".pdf")) {
window.open(_this.certFileUrl + row.filePath.replace(",", ""));
return
}
_this.certFileUrl = baseUrl + '/udiwms/image/register/file/getImage?type=image2&name='
_this.imgList = []
previewImage({
imageUrl: row.filePath,
certFileUrl: this.certFileUrl
}).then((response) => {
previewImage({imageUrl: row.filePath, certFileUrl: _this.certFileUrl}).then(response => {
if (response.code === 20000) {
_this.imgList = response.data
console.log('this.imgList',this.imgList)
}
console.log(this.imgList)
_this.imgViewerVisible = true
})
_this.imgViewerVisible = true
const m = (e) => {
e.preventDefault()
}

Loading…
Cancel
Save