lex-xin 4 年之前
父节点
当前提交
3b5cbcaf38
共有 1 个文件被更改,包括 3 次插入14 次删除
  1. 3 14
      src/views/teamDetail/teamCourseList.vue

+ 3 - 14
src/views/teamDetail/teamCourseList.vue

@@ -672,8 +672,7 @@ export default {
       id: null,
       show: false,
       compoundList: [],
-      deleteList:[],
-      searchCount: 0,
+      deleteList:[]
     };
   },
   components: {
@@ -802,7 +801,6 @@ export default {
           count++;
         }
       }
-      this.searchCount = count
       if (count <= 0) {
         this.$message.error("请至少选择一个搜索条件");
         return;
@@ -821,10 +819,6 @@ export default {
       this.locationVisible = true;
     },
     onCourseExport() {
-      let params = this.getSearchForm()
-      if(this.searchCount <= 0) {
-        return
-      }
       // 课表导出
       let url = "/api-web/export/superFindCourseSchedules";
       const options = {
@@ -832,7 +826,7 @@ export default {
         headers: {
           Authorization: getToken(),
         },
-        params: params,
+        params: this.getSearchForm(),
         url,
         responseType: "blob",
       };
@@ -876,12 +870,7 @@ export default {
         .catch(() => {});
     },
     getList() {
-      let params = this.getSearchForm()
-      console
-      if(this.searchCount <= 0) {
-        return
-      }
-      superFindCourseSchedules(params).then((res) => {
+      superFindCourseSchedules(this.getSearchForm()).then((res) => {
         if (res.code == 200) {
           this.tableList = res.data.rows;
           this.rules.total = res.data.total;