mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 06:16:44 +08:00
提交
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<el-col :span="16">
|
||||
<el-button type="primary" icon="el-icon-search" @click="queryData" style="margin-right: 10px;padding: 10px 15px;">搜索</el-button>
|
||||
<el-button type="primary" @click="resData" icon="el-icon-refresh-right" style="padding: 10px 15px;">重置</el-button>
|
||||
</el-col>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-tabs v-model="tabName" @tab-click="changeTab" style="margin-top:14px">
|
||||
<!-- 全部 -->
|
||||
@@ -211,7 +211,7 @@ export default {
|
||||
if (this.tabName == 'case') {
|
||||
this.findCase();
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
resData() {
|
||||
this.keyword = '';
|
||||
@@ -267,7 +267,7 @@ export default {
|
||||
if (this.tabName == 'case') {
|
||||
this.caseList.pageSize = value;
|
||||
this.findCase()
|
||||
}
|
||||
}
|
||||
},
|
||||
//分页点击事件
|
||||
handleCurrentChange(value) {
|
||||
@@ -287,13 +287,13 @@ export default {
|
||||
this.caseList.pageIndex = value;
|
||||
this.findCase();
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
// 案例
|
||||
findCase(){
|
||||
let { pageIndex, pageSize } = this.caseList;
|
||||
let query = { pageIndex, pageSize, keyword: this.keyword, isRead: this.isRead };
|
||||
apiShares.myCaseList(query).then(res=>{
|
||||
apiShares.myMeCaseList(query).then(res=>{
|
||||
if(res.status == 200) {
|
||||
this.caseList.count = res.result.count;
|
||||
this.caseList.list = res.result.list;
|
||||
@@ -408,7 +408,7 @@ export default {
|
||||
if (this.tabName == 'course') {
|
||||
this.findCourse();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user