mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 10:56:44 +08:00
提交
This commit is contained in:
@@ -33,7 +33,7 @@ const remove=function(objId,objType){
|
||||
// toAname 分享给人的名称
|
||||
//
|
||||
const querylist=function(query){
|
||||
return ajax.post('/xboe/m/share/list',data);
|
||||
return ajax.post('/xboe/m/share/list',query);
|
||||
}
|
||||
// 当前用户是否已分享
|
||||
// // objType,点赞对象类型,, 1课程 2文章,3案例, 4问答
|
||||
|
||||
@@ -158,8 +158,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
reset() {
|
||||
this.queryObj.isTop = ''
|
||||
this.queryObj.keyWord = ''
|
||||
this.queryObj.isTop = '';
|
||||
this.queryObj.keyWord = '';
|
||||
this.getData()
|
||||
},
|
||||
//获取案例列表数据
|
||||
|
||||
@@ -48,6 +48,30 @@
|
||||
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="案例" name="case">
|
||||
<div>
|
||||
<!-- <qa-items @confirm="confirm" :items="qaList.list"></qa-items> -->
|
||||
<!-- v-if="qaList.count>qaList.pageSize" -->
|
||||
<!-- <div v-if="qaList.list.length > 0" style="text-align: center;margin-top:57px;">
|
||||
<el-pagination
|
||||
background
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
:current-page="qaList.pageIndex"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="qaList.pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="qaList.count"
|
||||
></el-pagination>
|
||||
</div> -->
|
||||
<!-- <div v-else>
|
||||
<div v-if="qaList.list.length == 0">
|
||||
<div v-if="isSearh" class="zan-wu">没有查询到相关内容</div>
|
||||
<div v-else class="zan-wu">暂无数据</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="文章" name="article">
|
||||
<div style="min-height: 500px;">
|
||||
<article-items @confirm="confirm" :items="articleList.list"></article-items>
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user