mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 23:06:45 +08:00
提交
This commit is contained in:
@@ -627,26 +627,8 @@ export default {
|
||||
//console.log(this.noDataList, this.totalPages, "this.noDataList");
|
||||
// 隐藏loadMore
|
||||
this.moreState = 2;
|
||||
this.noDataList &&
|
||||
(await apiOldCourse
|
||||
.courseList(oldParams)
|
||||
.then(oldRs => {
|
||||
if (oldRs.status == 200 && oldRs.result.dataList.length > 0) {
|
||||
let list = that.filterConversion(oldRs.result.dataList);
|
||||
//list.name = list.name.replace(/<[^>]+>|&[^>]+;/g,"").trim();
|
||||
data.push(...list);
|
||||
that.moreState = 1;
|
||||
} else {
|
||||
that.noDataList = false;
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
that.noDataList = false;
|
||||
}));
|
||||
|
||||
this.noPageList &&
|
||||
(await apiCoursePortal
|
||||
.pageList(this.course)
|
||||
await apiCoursePortal
|
||||
.courseSearch(this.course)
|
||||
.then(res => {
|
||||
if (res.status == 200 && res.result.list.length > 0) {
|
||||
this.totalPages = res.result.totalPages;
|
||||
@@ -677,7 +659,6 @@ export default {
|
||||
}
|
||||
});
|
||||
that.loadCouserTeacher(res.result.list, courseIds);
|
||||
// data.push(...res.result.list);
|
||||
that.moreState = 1;
|
||||
} else {
|
||||
that.noPageList = false;
|
||||
@@ -685,7 +666,7 @@ export default {
|
||||
})
|
||||
.catch(err => {
|
||||
that.noPageList = false;
|
||||
}));
|
||||
});
|
||||
if (this.course.orderField == "id") {
|
||||
//最新
|
||||
data.sort(this.pcompare("publishTime", false));
|
||||
|
||||
Reference in New Issue
Block a user