|
@@ -344,6 +344,7 @@
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
import { Export } from "@/utils/downLoadFile";
|
|
|
import qs from "qs";
|
|
|
+import cleanDeep from "clean-deep";
|
|
|
// 地图
|
|
|
(function () {
|
|
|
let func = EventTarget.prototype.addEventListener;
|
|
@@ -765,16 +766,22 @@ export default {
|
|
|
},
|
|
|
onExport() {
|
|
|
const { ...rest } = this.searchForm;
|
|
|
+ let searchForm = this.searchForm;
|
|
|
Export(
|
|
|
this,
|
|
|
{
|
|
|
url: "/api-web/export/exportSchoolList",
|
|
|
fileName: "教学点.xls",
|
|
|
method: "post",
|
|
|
- params: qs.stringify({
|
|
|
- visitFlag: this.$route.query.visitFlag,
|
|
|
- ...rest,
|
|
|
- }),
|
|
|
+ params: qs.stringify(
|
|
|
+ cleanDeep({
|
|
|
+ search: searchForm.search ? searchForm.search : null,
|
|
|
+ organId: searchForm.organId ? searchForm.organId : null,
|
|
|
+ publicFlag: searchForm.publicFlag ? searchForm.publicFlag : null,
|
|
|
+ rows: this.pageInfo.limit,
|
|
|
+ page: this.pageInfo.page,
|
|
|
+ })
|
|
|
+ ),
|
|
|
},
|
|
|
"您确定导出教学点?"
|
|
|
);
|