This commit is contained in:
zhutianqi
2021-12-27 21:32:42 +08:00
parent 4f6b3dffba
commit d0b9fe0e2a
@@ -47,7 +47,7 @@
<span @click="clickButtonToUpload(item)">{{ item.name }}</span> <span @click="clickButtonToUpload(item)">{{ item.name }}</span>
<el-button <el-button
size="small" size="small"
@click="updateFile(item)" @click="updateFile2(item)"
icon="el-icon-download" icon="el-icon-download"
style="height: 32px; margin-left: 5px;" style="height: 32px; margin-left: 5px;"
></el-button> ></el-button>
@@ -63,7 +63,7 @@
<span @click="clickButtonToUpload(item)">{{ item.name }}</span> <span @click="clickButtonToUpload(item)">{{ item.name }}</span>
<el-button <el-button
size="small" size="small"
@click="updateFile(item)" @click="updateFile2(item)"
icon="el-icon-download" icon="el-icon-download"
style="height: 32px; margin-left: 5px;" style="height: 32px; margin-left: 5px;"
></el-button> ></el-button>
@@ -322,6 +322,10 @@
updateFile (fileId) { updateFile (fileId) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
}, },
updateFile2 (item) {
let id = item.id
window.location.href = '/api/att/attFile/downloadFile?fileId=' + id
},
handleTabs(name) { handleTabs(name) {
this.active = name this.active = name
}, },