feat: cems导出接口完善
This commit is contained in:
parent
868a7e7f51
commit
eeeadd9b98
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,8 +109,11 @@ export default {
|
||||||
},
|
},
|
||||||
exportExcel() {
|
exportExcel() {
|
||||||
this.eLoading = true;
|
this.eLoading = true;
|
||||||
console.log(this.query)
|
this.$API.enp.envdata.export_excel.req(this.query).then(res => {
|
||||||
this.eLoading = false;
|
if (res.path) {
|
||||||
|
window.open(res.path, '_blank')
|
||||||
|
}
|
||||||
|
}).then(() => { this.eLoading = false; })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue