Prechádzať zdrojové kódy

减少 filter调用次数

shilipojs 3 rokov pred
rodič
commit
9104f63888
1 zmenil súbory, kde vykonal 0 pridanie a 11 odobranie
  1. 0 11
      src/views/career/subject/subjectChoice.vue

+ 0 - 11
src/views/career/subject/subjectChoice.vue

@@ -77,7 +77,6 @@
 </template>
 
 <script>
-  import { universityFilters } from '@/api/webApi/career-course'
   import {collectAdd, collectRemove, xkcxlist, xkcxYears,saveSelectCourse} from "@/api/webApi/webQue";
   import MxSearchGroup from "@/components/MxSearch/mx-search-group";
   import FilterForm from '@/views/career/components/FilterForm';
@@ -180,7 +179,6 @@
       this.selected.sciences[1] = this.course1? this.course1.split(',') :[]
       if(this.course0 && this.course1) this.httpGetXkcxList()
       this.getYears();
-      this.getUniversity();
 
     },
     methods: {
@@ -191,15 +189,6 @@
           this.selected.years  = this.form.years[0]
         });
       },
-      // 取其他条件清单
-      getUniversity() {
-        universityFilters().then(res => {
-          this.form.features = res.data.features;
-          this.form.locations = res.data.locations;
-          this.form.levels = res.data.levels;
-          this.form.types = res.data.types;
-        })
-      },
 
       yearChange(value) {
         this.httpGetXkcxList();