feat:FOTON release

This commit is contained in:
Superman_Main
2021-11-27 22:51:45 +08:00
parent 367a60295b
commit fa3ef91ae4
+7 -6
View File
@@ -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('文件不存在,下载失败')
}
} }
}, },