案例增加优秀案例筛选

This commit is contained in:
daihh
2022-12-29 16:48:16 +08:00
parent 69a08cd697
commit bdc571ec4f
2 changed files with 9 additions and 11 deletions

View File

@@ -12,6 +12,7 @@
<el-select v-model="queryObj.isTop" style="width: 110px;" clearable placeholder="置顶">
<el-option label="已置顶" :value="true"></el-option>
<el-option label="未置顶" :value="false"></el-option>
</el-select>
</div>
<div style="padding: 0px 5px;"><el-input placeholder="关键词搜索" v-model="queryObj.keyWord" @input="inputOn($event)" clearable></el-input></div>
@@ -19,8 +20,7 @@
<el-button @click="getData(1)" icon="el-icon-search" type="primary" >搜索</el-button>
<!-- <el-button @click="showRecords()" icon="el-icon-tickets" type="info" >推荐记录</el-button> -->
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
<el-checkbox style="margin-left:10px" v-model="queryObj.excellent" @change="getData()">只查看我上传的</el-checkbox>
<el-checkbox style="margin-left:10px" v-model="queryObj.excellent" @change="getData()">优秀案例</el-checkbox>
</div>
</div>
</div>
@@ -229,7 +229,7 @@ export default {
this.queryObj.isTop = '';
this.queryObj.keyWord = '';
this.queryObj.pageIndex = 1;
this.queryObj.excellent = null;
this.queryObj.excellent = '';
this.getData()
},
//获取案例列表数据
@@ -237,17 +237,15 @@ export default {
if(num === 1) {
this.queryObj.pageIndex = 1;
}
apiCase
.isTopList(this.queryObj)
.then(res => {
if(!this.queryObj.excellent){
this.queryObj.excellent='';
}
apiCase.isTopList(this.queryObj).then(res => {
if (res.status == 200) {
this.count=res.result.count
this.caseList = res.result.list;
} else {
this.$message({
type: 'error',
message: '查询数据失败'
});
this.$message({type: 'error', message: '查询数据失败'});
}
})
.catch(err => {

View File

@@ -536,7 +536,7 @@
//console.log('编辑成功')
if(res.status==200){
this.Edittearch = true;
this.Teacherinfo();
//this.Teacherinfo();
//更新远程
let simpleData={
teacher_user_id:this.userInfo.sysId,