|
@@ -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>
|
|
|
|