标准/译文获取申请 导出
This commit is contained in:
@@ -193,7 +193,7 @@
|
||||
</div>
|
||||
<standardsAndTranslationModal ref="standardsAndTranslationModalRef" @updateIndexList="getList" />
|
||||
<detailModal ref="detailModalRef" />
|
||||
<exportDialog ref="exportDialogRef" @exportData="exportData" />
|
||||
<exportDialog ref="exportDialogRef" @exportData="exportName" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -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()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user