|
@@ -33,7 +33,7 @@
|
|
<div class="hc-search-screening-item">
|
|
<div class="hc-search-screening-item">
|
|
<div class="title">年度:</div>
|
|
<div class="title">年度:</div>
|
|
<template v-for="item in annuals">
|
|
<template v-for="item in annuals">
|
|
- <div class="screening-key" :class="isIndex(annual,'key', item.key) ? 'cut': ''" @click="annualClick(item)">{{item.name}}</div>
|
|
|
|
|
|
+ <div class="screening-key" :class="item.select ? 'cut': ''" @click="annualClick(item)">{{item.name}}</div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
<div class="hc-search-screening-item">
|
|
<div class="hc-search-screening-item">
|
|
@@ -295,7 +295,7 @@ const clickHottitle=(item)=>{
|
|
//年度
|
|
//年度
|
|
const annuals = ref([])
|
|
const annuals = ref([])
|
|
const setAnnuals = () => {
|
|
const setAnnuals = () => {
|
|
- let annualArr = [{key: 'all', name: '所有'}]
|
|
|
|
|
|
+ let annualArr = [{key: 'all', name: '所有',select:true}]
|
|
const year = new Date().getFullYear()
|
|
const year = new Date().getFullYear()
|
|
for (let i = 0; i < 8; i++) {
|
|
for (let i = 0; i < 8; i++) {
|
|
const item = year - i + ''
|
|
const item = year - i + ''
|
|
@@ -309,13 +309,11 @@ const setAnnuals = () => {
|
|
const annual = ref([{key: 'all', name: '所有'}])
|
|
const annual = ref([{key: 'all', name: '所有'}])
|
|
const annualClick = (item) => {
|
|
const annualClick = (item) => {
|
|
annual.value = setQueryFiltering(annual.value, item)
|
|
annual.value = setQueryFiltering(annual.value, item)
|
|
- console.log(item,'item');
|
|
|
|
- searchForm.value.year=item.name
|
|
|
|
- // let arr=[]
|
|
|
|
- // annual.value.forEach((item)=>{
|
|
|
|
- // arr.push(item.name)
|
|
|
|
- // })
|
|
|
|
- // searchForm.value.year=arr+''
|
|
|
|
|
|
+ searchForm.value.year=item.name;
|
|
|
|
+ annuals.value.forEach((ele)=>{
|
|
|
|
+ ele.select=false
|
|
|
|
+ })
|
|
|
|
+ item.select=true
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|