|
@@ -1,22 +1,22 @@
|
|
<template>
|
|
<template>
|
|
- <div>
|
|
|
|
|
|
+ <div style="width: 80%; margin:0 auto">
|
|
<div class="zhiyuan-filter">
|
|
<div class="zhiyuan-filter">
|
|
<div class="header">
|
|
<div class="header">
|
|
<h3 class="f-666">您的选考科目为:历史,生物,政治, 请手动选择志愿</h3>
|
|
<h3 class="f-666">您的选考科目为:历史,生物,政治, 请手动选择志愿</h3>
|
|
</div>
|
|
</div>
|
|
<div class="filters">
|
|
<div class="filters">
|
|
- <div class="filter">
|
|
|
|
- <div class="filter_name">热门城市:</div>
|
|
|
|
- <div class="items fx-row">
|
|
|
|
- <div class="no_limited">
|
|
|
|
- <!-- no_limited 隐藏 选中框 -->
|
|
|
|
- <el-checkbox @change="change('city',$event)" v-model="cityIsAll" >不限</el-checkbox>
|
|
|
|
- </div>
|
|
|
|
- <el-checkbox-group v-model="filter_form.checkedCities">
|
|
|
|
- <el-checkbox v-for="city in cities" :label="city" :key="city">{{city}}</el-checkbox>
|
|
|
|
- </el-checkbox-group>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+<!-- <div class="filter">-->
|
|
|
|
+<!-- <div class="filter_name">热门城市:</div>-->
|
|
|
|
+<!-- <div class="items fx-row">-->
|
|
|
|
+<!-- <div class="no_limited">-->
|
|
|
|
+<!-- <!– no_limited 隐藏 选中框 –>-->
|
|
|
|
+<!-- <el-checkbox @change="change('city',$event)" v-model="cityIsAll" >不限</el-checkbox>-->
|
|
|
|
+<!-- </div>-->
|
|
|
|
+<!-- <el-checkbox-group v-model="filter_form.checkedCities">-->
|
|
|
|
+<!-- <el-checkbox v-for="city in cities" :label="city" :key="city">{{city}}</el-checkbox>-->
|
|
|
|
+<!-- </el-checkbox-group>-->
|
|
|
|
+<!-- </div>-->
|
|
|
|
+<!-- </div>-->
|
|
<div class="filter">
|
|
<div class="filter">
|
|
<div class="filter_name">院校省份:</div>
|
|
<div class="filter_name">院校省份:</div>
|
|
<div class="items fx-row">
|
|
<div class="items fx-row">
|
|
@@ -24,7 +24,7 @@
|
|
<el-checkbox @change="change('province',$event)" v-model="provinceIsAll" >不限</el-checkbox>
|
|
<el-checkbox @change="change('province',$event)" v-model="provinceIsAll" >不限</el-checkbox>
|
|
</div>
|
|
</div>
|
|
<el-checkbox-group v-model="filter_form.provinces">
|
|
<el-checkbox-group v-model="filter_form.provinces">
|
|
- <el-checkbox v-for="city in provinces" :label="city" :key="city">{{city}}</el-checkbox>
|
|
|
|
|
|
+ <el-checkbox v-for="provinces in filters.locations" :label="provinces" :key="provinces">{{provinces}}</el-checkbox>
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -35,43 +35,41 @@
|
|
<el-checkbox @change="change('major',$event)" v-model="majorIsAll" >不限</el-checkbox>
|
|
<el-checkbox @change="change('major',$event)" v-model="majorIsAll" >不限</el-checkbox>
|
|
</div>
|
|
</div>
|
|
<el-radio-group v-model="filter_form.major">
|
|
<el-radio-group v-model="filter_form.major">
|
|
- <el-radio v-for="city in majors" :label="city" :key="city">{{city}}</el-radio>
|
|
|
|
|
|
+ <el-radio v-for="major in filters.marjors" :label="major.value" :key="major.value">{{major.label}}</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="filter">
|
|
<div class="filter">
|
|
- <div class="filter_name">意向专业:</div>
|
|
|
|
- <div class="items">
|
|
|
|
- <div>
|
|
|
|
- <el-autocomplete class="inline-input mr10" v-model="major" placeholder="搜索意向专业"></el-autocomplete>
|
|
|
|
- <el-button plain size="mini" icon="el-icon-add">添加</el-button>
|
|
|
|
|
|
+ <div class="filter_name">院校类型:</div>
|
|
|
|
+ <div class="items fx-row">
|
|
|
|
+ <div class="no_limited">
|
|
|
|
+ <el-checkbox @change="change('type',$event)" v-model="typeIsAll" >不限</el-checkbox>
|
|
</div>
|
|
</div>
|
|
|
|
+ <el-checkbox-group v-model="filter_form.type">
|
|
|
|
+ <el-checkbox v-for="filter in filters.types" :label="filter" :key="filter">{{filter}}</el-checkbox>
|
|
|
|
+ </el-checkbox-group>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="filter">
|
|
<div class="filter">
|
|
- <div class="filter_name">更多筛选:</div>
|
|
|
|
- <div class="items">
|
|
|
|
- <div class="more">
|
|
|
|
- <span >
|
|
|
|
- <el-button plain size="mini">志愿梯度</el-button>
|
|
|
|
- </span>
|
|
|
|
- <span>
|
|
|
|
- <el-button plain size="mini">院校类型</el-button>
|
|
|
|
- </span><span>
|
|
|
|
- <el-button plain size="mini">院校特色</el-button>
|
|
|
|
- </span><span>
|
|
|
|
- <el-button plain size="mini">办学类型</el-button>
|
|
|
|
- </span>
|
|
|
|
|
|
+ <div class="filter_name">院校特性:</div>
|
|
|
|
+ <div class="items fx-row">
|
|
|
|
+ <div class="no_limited">
|
|
|
|
+ <el-checkbox @change="change('feature',$event)" v-model="featureIsAll" >不限</el-checkbox>
|
|
</div>
|
|
</div>
|
|
|
|
+ <el-checkbox-group v-model="filter_form.feature">
|
|
|
|
+ <el-checkbox v-for="feature in localFilters.features" :label="feature.value" :key="feature.value">{{feature.label}}</el-checkbox>
|
|
|
|
+ </el-checkbox-group>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="filter">
|
|
<div class="filter">
|
|
- <div class="filter_name">搜索专业:</div>
|
|
|
|
- <div class="items">
|
|
|
|
- <div>
|
|
|
|
- <el-autocomplete class="inline-input mr10" v-model="major" placeholder="请输入专业名词或者专业关键词"></el-autocomplete>
|
|
|
|
- <el-button plain size="mini" icon="el-icon-add">搜索</el-button>
|
|
|
|
|
|
+ <div class="filter_name">推荐类型:</div>
|
|
|
|
+ <div class="items fx-row">
|
|
|
|
+ <div class="no_limited">
|
|
|
|
+ <el-checkbox @change="change('pick',$event)" v-model="pickIsAll" >不限</el-checkbox>
|
|
</div>
|
|
</div>
|
|
|
|
+ <el-radio-group v-model="filter_form.pickType">
|
|
|
|
+ <el-radio v-for="pick in localFilters.picks" :label="pick.value" :key="pick.value">{{pick.label}}</el-radio>
|
|
|
|
+ </el-radio-group>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -83,24 +81,63 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
|
|
+import { zytbFilter } from '@/api/webApi/webQue'
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- cities: ['北京', '上海', '深圳', '广州', '杭州', '南京', '武汉', '西安', '长沙', '重庆', '南充'],
|
|
|
|
- provinces:['湖南','安徽','福建','沈阳','山东','山西','甘肃','广东','广西','重庆','上海','黑龙江','吉林','辽宁','西藏','新疆'],
|
|
|
|
- majors: ['哲学','经济学','法学','教育学','文学','历史学','理学','工学','农学','医学','管理学','艺术学'],
|
|
|
|
filter_form: {
|
|
filter_form: {
|
|
- checkedCities:[],
|
|
|
|
provinces: [],
|
|
provinces: [],
|
|
- major: ''
|
|
|
|
|
|
+ major: '',
|
|
|
|
+ type:[],
|
|
|
|
+ feature:[],
|
|
|
|
+ pickType: ''
|
|
|
|
+ },
|
|
|
|
+ localFilters: {
|
|
|
|
+ features:[
|
|
|
|
+ {label: '一流大学建设高校',value:'ylxx'},
|
|
|
|
+ {label: '一流学科建设高校',value:'ylxk'},
|
|
|
|
+ {label: '研究生院',value:'yjsy'},
|
|
|
|
+ {label: '独立学院',value:'dlxy'},
|
|
|
|
+ {label: '民办高校',value:'mbgx'}
|
|
|
|
+ ],
|
|
|
|
+ picks:[
|
|
|
|
+ {label: '冲刺型',value:'0'},
|
|
|
|
+ {label: '稳妥型',value:'1'},
|
|
|
|
+ {label: '保守型',value:'2'},
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
- major: ''
|
|
|
|
|
|
+ major: '',
|
|
|
|
+ filters:{}
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ props: {
|
|
|
|
+ batch: {
|
|
|
|
+ type: Object,
|
|
|
|
+ default:{}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ created() {
|
|
|
|
+ this.$nextTick(_ => zytbFilter(this.batch.batch).then((res) => {
|
|
|
|
+ this.filters = res.data;
|
|
|
|
+ }))
|
|
|
|
+ },
|
|
computed: {
|
|
computed: {
|
|
- cityIsAll:{
|
|
|
|
|
|
+ typeIsAll:{
|
|
get() {
|
|
get() {
|
|
- return !this.filter_form.checkedCities.length
|
|
|
|
|
|
+ return !this.filter_form.type.length
|
|
|
|
+ },
|
|
|
|
+ set(){}
|
|
|
|
+ },
|
|
|
|
+ pickIsAll:{
|
|
|
|
+ get() {
|
|
|
|
+ return !this.filter_form.pickType
|
|
|
|
+ },
|
|
|
|
+ set(){}
|
|
|
|
+ },
|
|
|
|
+ featureIsAll:{
|
|
|
|
+ get() {
|
|
|
|
+ return !this.filter_form.feature.length
|
|
},
|
|
},
|
|
set(){}
|
|
set(){}
|
|
},
|
|
},
|
|
@@ -120,15 +157,21 @@ export default {
|
|
methods:{
|
|
methods:{
|
|
change(val,$event) {
|
|
change(val,$event) {
|
|
if($event) {
|
|
if($event) {
|
|
- if(val == 'city') {
|
|
|
|
- this.filter_form.checkedCities = []
|
|
|
|
|
|
+ if(val == 'type') {
|
|
|
|
+ this.filter_form.type = []
|
|
}
|
|
}
|
|
if(val == 'province') {
|
|
if(val == 'province') {
|
|
this.filter_form.provinces = []
|
|
this.filter_form.provinces = []
|
|
}
|
|
}
|
|
|
|
+ if(val == 'feature') {
|
|
|
|
+ this.filter_form.feature = []
|
|
|
|
+ }
|
|
if(val == 'major') {
|
|
if(val == 'major') {
|
|
this.filter_form.major = ''
|
|
this.filter_form.major = ''
|
|
}
|
|
}
|
|
|
|
+ if(val == 'pick') {
|
|
|
|
+ this.filter_form.pickType = ''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -146,6 +189,7 @@ export default {
|
|
.filter_name{
|
|
.filter_name{
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
width: 70px;
|
|
width: 70px;
|
|
|
|
+ font-size: 14px;
|
|
line-height: 20px;
|
|
line-height: 20px;
|
|
flex: none;
|
|
flex: none;
|
|
padding: 6px 0 6px 0;
|
|
padding: 6px 0 6px 0;
|