exportPositionInfo() { this.loading = true //【API请求】----获取表格列表数据 var orgIds; if(this.queryParam && this.queryParam.searchParam){ orgIds = this.queryParam.searchParam.SEARCH_IN_id+"" } this.$fetch.postAction('/GbOrgStatistics/exportVOrgPositionInfo', { orgIds: orgIds, }, { headers: { 'Content-Type': 'application/json;charset=UTF-8' }, responseType: 'blob' }).then(res => { const link = document.createElement('a') const blob = new Blob([res], { type: 'application/vnd.ms-excel' }) const objectUrl = URL.createObjectURL(blob) // 创建URL link.href = objectUrl link.download = 'XXX' + '.xlsx' link.click() // 下载文件 URL.revokeObjectURL(objectUrl) this.loading = false }).catch(err => { this.$message({ message: '下载失败!', type: 'error', showClose: true }) this.loading = false }) },