导出按钮添加点击事件:
<el-button type="info" @click="exportRecordHandle()" :disabled="!dataListSelections.length" v-if="$hasPermission('chengyun:cypartyactivity:export')">{{ $t('export') }}</el-button>
调接口导出方法
exportRecordHandle(){
this.$http({
method: "post",
url: "/chengyun/cypartyactivity/export",
data: this.dataListSelections.map(m => m.id),
responseType: "blob"
}).then(({data: res}) => {
JsFileDownload(res, `党群活动 ${new Date().getTime()}.zip`)
})
}