// 导出参与人名单 exportPlayerInfo () { let form = { activityId: this.activityId } API.exportPlayerInfo(form).then(res => { if (+res.status === 200) { if (+res.data.code === -1) { this.sentMsg(res.data.message) return } let elink = document.createElement('a') elink.download = this.table.title + '.xls' elink.style.display = 'none' let blob = new Blob([res.body]) elink.href = window.URL.createObjectURL(blob) document.body.appendChild(elink) elink.click() document.body.removeChild(elink) } else { this.sentMsg(res.data.message || '下载失败') } }, res => { this.sentMsg() }) },