diff --git a/src/views/report/Employeelearning.vue b/src/views/report/Employeelearning.vue index 9421ac65..3e591f91 100644 --- a/src/views/report/Employeelearning.vue +++ b/src/views/report/Employeelearning.vue @@ -55,10 +55,15 @@
+
+
+
导出全部
+
导出
+
@@ -129,7 +134,7 @@ export default { }; }); state.option = list; - getOrgId() + getOrgId(); } }; //导出 @@ -315,11 +320,11 @@ export default { }; // 重置按钮 const reset = async () => { - state.tableLoading=true + state.tableLoading = true; state.name = ""; state.band = ""; state.userNo = ""; - getOrgId() + getOrgId(); }; // 获取登录人员组织 const getOrgId = async () => { @@ -329,11 +334,26 @@ export default { getTableData(); } }; + // 导出全部按钮 + const exportAllBtn = async () => { + axios({ + method: "post", + url: "/report/boeu/studyData/exportAll", + data: {}, + responseType: "blob", + headers: { + token: Cookies.get("token"), + }, + }).then((res) => { + downLoad(res.data, "学习员工数据.xlsx"); + }); + }; onMounted(() => { getOrgList(); - state.tableLoading=true + state.tableLoading = true; }); return { + exportAllBtn, onSelectChange, exportBtn, reset,