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