Sfoglia il codice sorgente

Merge branch '03/12permission' of http://git.dayaedu.com/molingzhide/dy-admin-manager into 03/12permission

mo 4 anni fa
parent
commit
c6ab095b3d

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.3b8d23b6.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-20d42954.9e33947d.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-78d00d56.faa99d10.js


+ 21 - 3
src/views/operationalEarly/operationalList.vue

@@ -63,6 +63,7 @@
         <el-form-item>
           <el-button type="danger" native-type="submit">搜索</el-button>
           <el-button native-type="reset" type="primary">重置</el-button>
+          <el-button type="primary" @click="onExport" v-permission="'export/teacherCourseStatistics'">导出</el-button>
         </el-form-item>
       </save-form>
       <div class="tableWrap">
@@ -171,6 +172,8 @@ import {
   getTeacher,
 } from "@/api/buildTeam";
 import pagination from "@/components/Pagination/index";
+import { Export } from "@/utils/downLoadFile";
+import qs from 'qs'
 let nowDate = new Date();
 let nowMonth =
   nowDate.getFullYear() +
@@ -243,9 +246,9 @@ export default {
     },
     getList() {
       let params = this.searchForm;
-      params.page = this.pageInfo.page
-      params.rows = this.pageInfo.limit
-      teacherCourseStatistics(params).then((res) => {
+      // params.page = this.pageInfo.page
+      // params.rows = this.pageInfo.limit
+      teacherCourseStatistics({ ...params, page: this.pageInfo.page, rows: this.pageInfo.limit }).then((res) => {
         let result = res.data;
         if (res.code == 200) {
           this.tableList = result.rows;
@@ -253,6 +256,21 @@ export default {
         }
       });
     },
+    onExport() {
+      const { ...rest } = this.searchForm;
+      Export(
+        this,
+        {
+          url: "/api-web/export/teacherCourseStatistics",
+          fileName: "运营预警.xlsx",
+          method: "post",
+          params: qs.stringify({
+            ...rest
+          }),
+        },
+        "您确定导出运营预警?"
+      );
+    },
   },
 };
 </script>

Some files were not shown because too many files changed in this diff