@@ -153,12 +177,16 @@
if (this.tabName == 'qa') {
this.findQa();
}
+ if (this.tabName == 'case') {
+ this.findCase();
+ }
if (this.tabName == 'article') {
this.findArticle();
}
if (this.tabName == 'course') {
this.findCourse();
}
+
},
resData() {
this.keyword = '';
@@ -190,6 +218,10 @@
if (tab.name == 'course') {
this.findCourse();
}
+ console.log(tab.name,'tab.name');
+ if (tab.name == 'case') {
+ this.findCase();
+ }
},
//分页点击事件
handleSizeChange(value) {
@@ -205,6 +237,10 @@
this.courseList.pageSize = value;
this.findCourse();
}
+ if (this.tabName == 'case') {
+ this.caseList.pageSize = value;
+ this.findCase();
+ }
},
//分页点击事件
handleCurrentChange(value) {
@@ -220,6 +256,18 @@
this.courseList.pageIndex = value;
this.findCourse();
}
+ if (this.tabName == 'case') {
+ this.caseList.pageIndex = value;
+ this.findCase();
+ }
+ },
+ // 案例数据查询
+ findCase() {
+ let { pageIndex, pageSize } = this.caseList;
+ let query = { pageIndex, pageSize,keyword:this.keyword,isRead: this.isRead,objType:3};
+ apiShares.myCaseList(query).then(res=>{
+ console.log(res,'res');
+ })
},
//问答数据查询
findQa() {