|
@@ -44,6 +44,7 @@
|
|
|
<el-form-item>
|
|
|
<el-button type="danger" native-type="submit">搜索</el-button>
|
|
|
<el-button native-type="reset" type="primary">重置</el-button>
|
|
|
+ <el-button @click="onExport" type="primary">导出</el-button>
|
|
|
</el-form-item>
|
|
|
</save-form>
|
|
|
<div class="tableWrap">
|
|
@@ -139,6 +140,9 @@ import pagination from "@/components/Pagination/index";
|
|
|
import visit from "@/views/withdrawal-application/modals/visit";
|
|
|
import studentLeaveDetail from "./modals/studentLeaveDetail";
|
|
|
import { queryStudentErrorLeaveList } from "./api.js";
|
|
|
+import { Export } from "@/utils/downLoadFile";
|
|
|
+import cleanDeep from "clean-deep";
|
|
|
+import qs from "qs";
|
|
|
export default {
|
|
|
components: { pagination, visit, studentLeaveDetail },
|
|
|
data() {
|
|
@@ -205,6 +209,18 @@ export default {
|
|
|
this.leaveVisible = true;
|
|
|
this.studentId = item.userId;
|
|
|
},
|
|
|
+ onExport() {
|
|
|
+ Export(
|
|
|
+ this,
|
|
|
+ {
|
|
|
+ url: "/api-web/export/studentErrorLeaveList",
|
|
|
+ fileName: "学员请假列表.xls",
|
|
|
+ method: "post",
|
|
|
+ params: qs.stringify(cleanDeep(this.searchForm)),
|
|
|
+ },
|
|
|
+ "您确定导出学员请假列表?"
|
|
|
+ );
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|