diff --git a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue
index 7bd6c5704..f8129e208 100644
--- a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue
+++ b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue
@@ -193,7 +193,7 @@
-
+
@@ -354,19 +354,24 @@ export default {
this.$refs.selections.clearSelection()
})
},
- exportData (name) {
- let params = {
+ exportName(name) {
+ const params = {
...this.StandardApplyForEOPage,
exportFileName: name,
- ids: this.selectedList.length > 0 ? this.selectedList.join(',') : ''
- }
- let url = '/api/lawss/standardApplyFor/exportStandardApplyForEOExcel?'
- for (let key in params) {
- url += `${key}=${params[key]}&`
- }
- window.open(url.slice(0, -1))
- },
+ ids: this.selectedList.length > 0 ? this.selectedList.join(',') : '',
+ };
+ const url = '/api/lawss/standardApplyFor/exportStandardApplyForEOExcel?'
+ const formattedParams = Object.keys(params).map((key) => `${key}=${params[key]}`).join('&')
+
+ const link = document.createElement('a')
+ link.href = `${url}${formattedParams}`
+ link.download = name + '.xlsx'
+
+ document.body.appendChild(link)
+ link.click()
+ document.body.removeChild(link)
+ },
exportList () {
this.$refs.exportDialogRef.openModel()
},