Browse Source

添加两个导出功能

lex-xin 3 years ago
parent
commit
079ea58e47
3 changed files with 69 additions and 5 deletions
  1. 5 3
      src/constant/index.js
  2. 62 0
      src/views/reportForm/index.vue
  3. 2 2
      vue.config.js

+ 5 - 3
src/constant/index.js

@@ -286,10 +286,12 @@ export const clientTypeFilter = {
 //   ''
 // ]
 export const downListType = {
-  1: '订单列表',
+  0: '订单列表',
+  1: '课表列表',
   2: '财务管理',
-  3: '课表列表',
-  4: 'vip学生列表'
+  3: '学员小课记录',
+  4: '网管课学员课程',
+  5: 'VIP课学员课程'
 }
 
 export const withdrawalStatus = {

+ 62 - 0
src/views/reportForm/index.vue

@@ -445,6 +445,66 @@
               errorMsg="请选择分部"
             />
           </div>
+
+          <div class="m-wrap" v-permission="'export/STUDENT_VIP_COURSE_INFO'">
+            <div class="title">VIP课学员课程导出:</div>
+            <select-all
+              v-model.trim="vipStudentCourseOrganId"
+              class="organSelect"
+              style="width: 100%"
+              filterable
+              multiple
+              placeholder="请选择分部"
+              clearable
+            >
+              <el-option
+                v-for="(item, index) in selects.branchs"
+                :key="index"
+                :label="item.name"
+                :value="item.id"
+              ></el-option>
+            </select-all>
+
+            <ExportChiose
+              style="margin-left: 10px"
+              ExportEnum="STUDENT_VIP_COURSE_INFO"
+              :exportData="exportAbnormal"
+              fileName="VIP课学员课程信息导出"
+              errorMsg="请选择分部"
+              :flag="this.vipStudentCourseOrganId.length < 1"
+              :isDownList="true"
+            />
+          </div>
+
+          <div class="m-wrap" v-permission="'export/STUDENT_MUSIC_THEORY_COURSE_INFO'">
+            <div class="title">乐理课学员课程导出:</div>
+            <select-all
+              v-model.trim="musicStudentCourseOrganId"
+              class="organSelect"
+              style="width: 100%"
+              filterable
+              multiple
+              placeholder="请选择分部"
+              clearable
+            >
+              <el-option
+                v-for="(item, index) in selects.branchs"
+                :key="index"
+                :label="item.name"
+                :value="item.id"
+              ></el-option>
+            </select-all>
+
+            <ExportChiose
+              style="margin-left: 10px"
+              ExportEnum="STUDENT_MUSIC_THEORY_COURSE_INFO"
+              :exportData="exportAbnormal"
+              fileName="乐理课学员课程信息导出"
+              errorMsg="请选择分部"
+              :flag="this.musicStudentCourseOrganId.length < 1"
+              :isDownList="true"
+            />
+          </div>
         </el-collapse-item>
         <el-collapse-item
           name="3"
@@ -680,6 +740,8 @@ export default {
         organId: null,
       },
       activeName: ["1", "2", "3", "4"],
+      vipStudentCourseOrganId: [],
+      musicStudentCourseOrganId: [],
     };
   },
   mounted() {

+ 2 - 2
vue.config.js

@@ -19,8 +19,8 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // let target = 'http://192.168.3.251:8000' // 何国威
 // let target = 'http://192.168.3.250:8000' //邹璇
 // let target = 'http://192.168.3.119:8000' //勇哥
-let target = 'http://dev.dayaedu.com' // 开发环境
-// let target = 'https://test.dayaedu.com' //测试环境
+// let target = 'http://dev.dayaedu.com' // 开发环境
+let target = 'https://test.dayaedu.com' //测试环境
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {
   /**