Browse Source

模拟志愿majors =》 marjors

shilipojs 2 years ago
parent
commit
a3de9f6813

+ 1 - 1
src/views/career/plan/compoents/RankUniversity.vue

@@ -103,7 +103,7 @@ export default {
     clickSuffix() {
       this.filter_form.collegeName = this.collegeName
     },
-     getRankingFilter() {
+    getRankingFilter() {
        rankingFilter().then(res =>{
         this.filter_list = res.data
         this.filter_form.type = res.data.types[0]

+ 45 - 2
src/views/career/zhiyuan/RecordDetail.vue

@@ -1,15 +1,58 @@
 <template>
   <div>
-
+    <zhiyuan-list :tableList="rows" :cols="cols"></zhiyuan-list>
   </div>
 </template>
 <script>
+import ZhiyuanList from '@/views/career/zhiyuan/components/zhiyuan-list';
+import { getRecommendVoluntary, getVoluntaryHeaders } from '@/api/webApi/professlib'
 export default {
+  components:{
+    ZhiyuanList
+  },
   data() {
     return {
-
+      cols:[],
+      rows:[],
+      data:{}
     }
   },
+  created() {
+    this.data = this.$route.params.data
+    this.getCols()
+    this.getList()
+  },
+  methods:{
+    getCols() {
+      getVoluntaryHeaders({
+        mode:this.data.mode,
+        // year: this.batch.year
+      }).then(res => {
+        this.cols = res.data
+      })
+    },
+    getList() {
+      const data = {
+        batchName: this.data.batchName,
+        mode: this.data.mode,
+        score: this.data.score,
+        wishResId: this.data.id
+      }
+      const pageForm = {
+        pageSize: 10,
+        pageNum:1
+      }
+      getRecommendVoluntary({ ...data }, { ...pageForm }).then(res =>{
+        console.log(res)
+        const rows = res.rows.map(item => {
+          item.isExpand = false
+          item.majors = []
+          return item
+        })
+          this.rows = rows
+      })
+    },
+  }
 }
 </script>
 

+ 1 - 1
src/views/career/zhiyuan/components/recommend.vue

@@ -220,7 +220,7 @@ export default {
           collegeCode: item.recruitPlan.collegeCode,
           code:item.university.code,
           name:item.university.name,
-          majors:item.majors.filter(major => {return major.selected}).map(major=> {
+          marjors:item.majors.filter(major => {return major.selected}).map(major=> {
             return {
               id: major.id,
               code: major.marjorBelongs,