Browse Source

乐团管理导出和欠费学员列表

1
mo 3 năm trước cách đây
mục cha
commit
ebb2a2c9cf

+ 7 - 7
src/views/arrearage-students/index.vue

@@ -20,7 +20,7 @@
           ></el-input>
         </el-form-item>
         <el-form-item>
-          <select-all  v-model.trim="searchForm.organIds"
+          <select-all  v-model.trim="searchForm.organId"
             clearable
             filterable
             multiple
@@ -196,7 +196,7 @@ import qs from 'qs'
 const initSearch = {
   search: '',
   eduTeacherId: null,
-  organIds: [],
+  organId: [],
   branchs: null,
   musicGroupId: null,
   cooperationOrganId: null,
@@ -229,7 +229,7 @@ export default {
   mounted() {
     const { query } = this.$route
     if (query.organId) {
-      this.searchForm.organIds = [Number(query.organId)]
+      this.searchForm.organId = [Number(query.organId)]
     }
     if(query.result) {
       this.searchForm.eduTeacherId = Number(query.result)
@@ -254,11 +254,11 @@ export default {
     },
     async FetchList() {
       try {
-        const { organIds, ...rest} = this.searchForm
+        const { organId, ...rest} = this.searchForm
         const res = await queryArrearageStudents({
           page: this.rules.page,
           rows: this.rules.limit,
-          organIds: organIds.join(','),
+          organId: organId.join(','),
           ...rest,
         })
 
@@ -285,12 +285,12 @@ export default {
       this.visible = true
     },
     onExport() {
-      const { organIds, ...rest} = this.searchForm
+      const { organId, ...rest} = this.searchForm
       Export(this, {
         url: '/api-web/export/arrearageStudents',
         fileName: '欠费学员.xls',
         method: 'post',
-        params: qs.stringify({ organIds: organIds.join(','), ...rest })
+        params: qs.stringify({ organId: organId.join(','), ...rest })
       }, '您确定导出欠费学员列表?')
     }
   }

+ 1 - 0
src/views/teamDetail/teamList.vue

@@ -1138,6 +1138,7 @@ export default {
           ["createStartDate", "createEndDate"],
           "YYYY-MM-DD"
         ),
+         searchType: this.$route.query.searchType,
         ...getTimes(billTimer, ["billStartDate", "billEndDate"], "YYYY-MM-DD"),
       };
       await Export(