fix : update vuetify - export btns

This commit is contained in:
zeinab.ashrafi
2025-04-27 13:43:01 +03:30
parent 6276d37ece
commit d3895d6e37
9 changed files with 11428 additions and 15 deletions
+8 -2
View File
@@ -29,7 +29,7 @@
<span>Filter</span>
</v-tooltip>
<v-btn class="WM-Outline-Btn WM-Border mr-2 WM-Margin-BT-0 WM-Border-Black" style="padding: 10px 30px;">
<v-btn class="WM-Outline-Btn WM-Border mr-2 WM-Margin-BT-0 WM-Border-Black" @click="download()" style="padding: 10px 30px;">
<v-icon class="black--text mr-2 caption">fas fa-share-square</v-icon>
<span class="black--text">EXPORT</span>
</v-btn>
@@ -297,7 +297,13 @@ export default {
const target = this.items.find(i => i.id === item.id)
if (target) target.status = newStatus
}
}
},
async download() {
const result = await ApiService.get(urls.exportPackages());
if (result && result.status == 200) {
window.open(result.download, '_blank');
}
},
},
computed: {
...mapGetters("modal", ["getModalResult"])