mo 4 年之前
父节点
当前提交
9fcc9326c0

+ 1 - 1
src/utils/downLoadFile.js

@@ -27,7 +27,7 @@ export const Export = (that, params, message) => {
         responseType: "blob"
     };
     if(options.method == 'post') {
-        options.data = params.params
+        options.data =params.params
     } else {
         options.params = params.params
     }

+ 1 - 0
src/views/teacherManager/teacherList.vue

@@ -516,6 +516,7 @@ export default {
         subjectId: null,
         search: null,
       };
+      this.search()
     },
     resetPassWrod(row) {
       this.activatedRow = row;

+ 1 - 1
src/views/teamDetail/componentClass/calenderStudentList.vue

@@ -10,7 +10,7 @@
     />
     <otherform :form="other" ref="other" />
     <div style="margin-bottom: 20px">
-      <el-button type="primary" @click="dialogVisible = true">一修改差价</el-button>
+      <el-button type="primary" @click="dialogVisible = true">一修改差价</el-button>
       <el-button type="primary" @click="init">还原差价</el-button>
     </div>
     <el-table

+ 17 - 2
src/views/teamDetail/teamClassList.vue

@@ -18,7 +18,7 @@
             v-model.trim="searchForm.search"
             clearable
             @keyup.enter.native="search"
-            placeholder="乐团&班级编号"
+            placeholder="乐团&班级编号名称"
           ></el-input>
         </el-form-item>
         <el-form-item prop="organIdList">
@@ -74,6 +74,7 @@
         <el-form-item>
           <el-button native-type="submit" type="primary">搜索</el-button>
           <el-button native-type="reset" type="danger">重置</el-button>
+          <el-button  type="primary" @click='exportClassGroup'>导出</el-button>
         </el-form-item>
       </save-form>
       <div class="tableWrap">
@@ -90,7 +91,7 @@
           <el-table-column
             align="center"
             prop="musicGroupName"
-            label="乐团名称"
+            label="乐团&班级名称"
           ></el-table-column>
           <el-table-column align="center" prop="organName" label="分部名称">
             <template slot-scope="scope">
@@ -219,6 +220,8 @@ import { musicClassTypeList } from "@/utils/searchArray";
 import { getClassGroupPage, removeSingleClass } from "@/api/buildTeam";
 import { permission } from "@/utils/directivePage";
 import classCompound from "./componentClass/classCompound";
+import { Export } from "@/utils/downLoadFile";
+import qs from 'qs'
 export default {
   components: { pagination, classCompound },
   data() {
@@ -360,6 +363,18 @@ export default {
     permission(str, parent) {
       return permission(str, parent);
     },
+    exportClassGroup(){
+        let params = this.searchForm;
+      Export(
+        this,
+        {
+            method: 'post',
+          url: "/api-web/export/classGroup",
+           params:qs.stringify({...params, organIdList: this.searchForm.organIdList.join(",")})
+        },
+        "是否确认导出报表?"
+      );
+    }
   },
 };
 </script>

+ 1 - 1
src/views/vipClass/vipDetail/index.vue

@@ -89,7 +89,7 @@ export default {
 
     },
     onCancel () {
-       this.$store.dispatch('delVisitedViews', this.$route) 
+       this.$store.dispatch('delVisitedViews', this.$route)
       this.$router.push({ path: '/business/vipList' })
     }
   }