feat:FOTON release
This commit is contained in:
@@ -336,12 +336,7 @@ export default {
|
|||||||
handlePreview(file) {
|
handlePreview(file) {
|
||||||
const attId = file.response.data.id
|
const attId = file.response.data.id
|
||||||
if (this.preview) {
|
if (this.preview) {
|
||||||
if (attId) {
|
|
||||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
|
||||||
} else {
|
|
||||||
this.$message.warning('文件不存在,下载失败')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.getBusStandFileByAttId(attId)
|
this.getBusStandFileByAttId(attId)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
@@ -373,6 +368,12 @@ export default {
|
|||||||
console.log(e)
|
console.log(e)
|
||||||
this.$message.warning('文件不存在,预览失败')
|
this.$message.warning('文件不存在,预览失败')
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
if (attId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||||
|
} else {
|
||||||
|
this.$message.warning('文件不存在,下载失败')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user