feat: cems导出接口完善

This commit is contained in:
caoqianming 2024-02-01 14:15:59 +08:00
parent 868a7e7f51
commit eeeadd9b98
2 changed files with 15 additions and 2 deletions

View File

@ -73,4 +73,14 @@ export default {
}
}
},
envdata: {
export_excel: {
name: "导出Excel",
req: async function(data){
return await http.post(
`${config.API_URL}/enp/envdata/export_excel/`,
data);
}
}
}
}

View File

@ -109,8 +109,11 @@ export default {
},
exportExcel() {
this.eLoading = true;
console.log(this.query)
this.eLoading = false;
this.$API.enp.envdata.export_excel.req(this.query).then(res => {
if (res.path) {
window.open(res.path, '_blank')
}
}).then(() => { this.eLoading = false; })
}
},
}