案例列表新增优秀案例

This commit is contained in:
lmj
2022-12-06 14:46:46 +08:00
parent 3140d04b7c
commit d4e9e2a1d8

View File

@@ -61,7 +61,7 @@
<span class="quyer-tag">
<el-button type="text" class="order-class" @click="searchData('views')" :class="{ actice: queryCondition.orderField == 'views' }">最热</el-button>
<el-button type="text" class="order-class" @click="searchData('')" :class="{ actice: queryCondition.orderField == '' }">最新</el-button>
<el-button type="text" class="order-class" @click="searchData('')" :class="{ actice: queryCondition.orderField == '' }">优秀案例</el-button>
<el-button type="text" class="order-class" @click="searchexcellent()" :class="{ actice: queryCondition.excellent == true }">优秀案例</el-button>
<!-- <el-button type="text" class="order-class" @click="queryCondition.breCommend = queryCondition.breCommend == ture ? true : null" :class="{ actice: queryCondition.breCommend == true }">组织推荐</el-button> -->
</span>
@@ -280,7 +280,8 @@ export default {
keyWord: "",
majorType:null, //专业分类
orgDomain: null, // 组织领域
orderAsc: false
orderAsc: false,
excellent:false
},
keyWord: "",
anking: 2,
@@ -486,7 +487,15 @@ export default {
this.queryCondition.pageIndex = 1;
this.search();
},
searchexcellent(){
this.queryCondition.excellent = !this.queryCondition.excellent;
this.getCaseData();
},
searchData(num) {
// if(num == 1){
// this.queryCondition.excellent = !this.queryCondition.excellent;
// this.getCaseData();
// }
this.queryCondition.pageIndex = 1;
this.queryCondition.orderField = num;
this.getCaseData();