瀏覽代碼

添加参数

lex 2 年之前
父節點
當前提交
380d529747

+ 6 - 5
src/constant/index.js

@@ -246,7 +246,7 @@ export const musicGroupType = {
   AUDIT: "审核中",
   PRE_APPLY: "预报名中",
   FEE_AUDIT: "费用审核中",
-  FEE_AUDIT_FAILED:'费用审核失败',
+  FEE_AUDIT_FAILED: "费用审核失败",
   APPLY: "报名中",
   PAY: "缴费中",
   PREPARE: "筹备中",
@@ -303,7 +303,9 @@ export const downListType = {
   17: "预计课耗导出",
   18: "预计课耗学员详情导出",
   19: "课耗统计导出",
-  20: "云教练统计导出"
+  20: "云教练统计导出",
+  21: "班级列表导出",
+  22: "云教练统计详情导出"
 };
 
 export const withdrawalStatus = {
@@ -453,7 +455,7 @@ export const feedbackType = {
   PAUSE: "暂停",
   SLEEPY: "沉睡",
   LOST: "流失",
-  HOLIDAY_COURSE:'假期上课'
+  HOLIDAY_COURSE: "假期上课"
 };
 export const feedbackTypeAll = {
   NORMAL: "在读",
@@ -461,10 +463,9 @@ export const feedbackTypeAll = {
   SLEEPY: "沉睡",
   LOST: "流失",
   OTHER: "其他",
-  HOLIDAY_COURSE:'假期上课'
+  HOLIDAY_COURSE: "假期上课"
 };
 
-
 export const feedbackTypeDesc = {
   SICK: "生病",
   SOMETHING: "有事",

+ 3 - 0
src/views/main/baseinfo/modals/manageOrgan.vue

@@ -27,6 +27,8 @@
         v-if="handleStatus"
         @close="handleStatus = false"
         :data="dataCoop"
+        :organId="organId"
+        :mdate="mdate1"
       />
     </el-dialog>
   </div>
@@ -325,6 +327,7 @@ export default {
   mounted() {
     this.init();
     // console.log(this.$refs.histogram, "histogram");
+
     const charts = this.$refs.histogram?.echarts;
     if (charts) {
       const that = this;

+ 9 - 2
src/views/main/baseinfo/modals/organCoop.vue

@@ -23,9 +23,10 @@
 import "echarts/lib/component/dataZoom";
 import histogram from "v-charts/lib/histogram.common";
 import { Export } from "@/utils/downLoadFile";
+import { getTimes } from "@/utils";
 export default {
   name: "organ-coop",
-  props: ["data"],
+  props: ["data", "organId", "mdate"],
   components: {
     "ve-histogram": histogram
   },
@@ -132,7 +133,13 @@ export default {
           url: "/api-web/export/now",
           fileName: "合作单位回款.xls",
           method: "post",
-          params: { exportEnum: "EXPORT_INDEX_COOP" }
+          params: {
+            exportEnum: "EXPORT_INDEX_COOP",
+            queryInfo: {
+              ...getTimes(this.mdate, ["startTime", "endTime"]),
+              organId: this.organId
+            }
+          }
         },
         "您确定导出合作单位回款?"
       );

+ 14 - 15
src/views/reportForm/downList.vue

@@ -124,7 +124,7 @@ export default {
     return {
       searchForm: {
         order: null,
-        userId: null,
+        userId: null
       },
       downTypeList,
       tableList: [],
@@ -133,9 +133,9 @@ export default {
         limit: 10, // 限制显示条数
         page: 1, // 当前页
         total: 0, // 总条数
-        page_size: [10, 20, 40, 50], // 选择限制显示条数
+        page_size: [10, 20, 40, 50] // 选择限制显示条数
       },
-      deleteList: [],
+      deleteList: []
     };
   },
   //生命周期 - 创建完成(可以访问当前this实例)
@@ -155,16 +155,16 @@ export default {
         const res = await managerDownloadList({
           ...this.searchForm,
           page: this.rules.page,
-          rows: this.rules.limit,
+          rows: this.rules.limit
         });
         this.tableList = res.data.rows;
         this.rules.total = res.data.total;
 
-        let idList = this.deleteList.map((course) => {
+        let idList = this.deleteList.map(course => {
           return course.id;
         });
         this.$nextTick(() => {
-          this.tableList.forEach((course) => {
+          this.tableList.forEach(course => {
             if (idList.indexOf(course.id) != -1) {
               console.log(course.id);
               this.$refs.tableList.toggleRowSelection(course, true);
@@ -198,12 +198,12 @@ export default {
         if (this.isDetele) return;
         // 有2种 1是新页
         // 2是点击反选
-        let idList = this.deleteList.map((course) => {
+        let idList = this.deleteList.map(course => {
           return course.id;
         });
         this.$nextTick(() => {
           let tableIdList = [];
-          this.tableList.forEach((course) => {
+          this.tableList.forEach(course => {
             tableIdList.push(course.id);
             if (idList.indexOf(course.id) != -1) {
               this.$refs.tableList.toggleRowSelection(course, false);
@@ -212,7 +212,7 @@ export default {
           });
           this.deleteList = this.$helpers.lodash.remove(
             this.deleteList,
-            function (item) {
+            function(item) {
               return tableIdList.indexOf(item.id) == -1;
             }
           );
@@ -223,7 +223,7 @@ export default {
       }
     },
     onTableSelect(rows, row) {
-      let idList = this.deleteList.map((course) => {
+      let idList = this.deleteList.map(course => {
         return course.id;
       });
       if (idList.indexOf(row.id) != -1) {
@@ -245,7 +245,7 @@ export default {
         return;
       }
       try {
-        let idList = this.deleteList.map((course) => {
+        let idList = this.deleteList.map(course => {
           return course.id;
         });
         const res = await managerDownloadRecord({ ids: idList.join(",") });
@@ -255,9 +255,8 @@ export default {
       } catch (e) {
         console.log(e);
       }
-    },
-  },
+    }
+  }
 };
 </script>
-<style lang='scss' scoped>
-</style>
+<style lang="scss" scoped></style>