修复无书签不显示提示问题

This commit is contained in:
WangHao 2021-02-13 21:16:33 +08:00
parent fec325e383
commit 0a5d9dc480

View File

@ -769,7 +769,7 @@
getBookmarkList() { getBookmarkList() {
this.loading = true; this.loading = true;
selectByUseridList(this.queryParams).then(response => { selectByUseridList(this.queryParams).then(response => {
if (response.total != 0 &&response.code == 200) { if (response.code == 200) {
this.bookmarkList = this.bookmarkList.concat(response.rows); this.bookmarkList = this.bookmarkList.concat(response.rows);
this.total = response.total; this.total = response.total;
this.listloading = false this.listloading = false
@ -827,19 +827,18 @@
getList() { getList() {
this.loading = true; this.loading = true;
selectBymenuIdUserID(this.queryParams).then(response => { selectBymenuIdUserID(this.queryParams).then(response => {
if (response.total != 0 &&response.code == 200) { if (response.code == 200) {
this.bookmarkList = response.rows; this.bookmarkList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
if (this.bookmarkList==null||this.bookmarkList.length==0) { this.showimg=response.rows==0?true:false;
this.showimg=true;
}
this.listloading = false this.listloading = false
} else { } else {
this.showbookmark = false;
this.showimg = true; this.showimg = true;
this.loading = false; this.loading = false;
this.listloading = false this.listloading = false
//
this.noMore = true;
} }
}); });
}, },
@ -878,12 +877,12 @@
// //
getlistByMenuId(){ getlistByMenuId(){
selectBymenuIdUserID(this.queryParams).then(response => { selectBymenuIdUserID(this.queryParams).then(response => {
if (response.total != 0 &&response.code == 200) { if (response.code == 200) {
this.bookmarkList = this.bookmarkList.concat(response.rows); this.bookmarkList = this.bookmarkList.concat(response.rows);
this.total = response.total; this.total = response.total;
this.listloading = false this.listloading = false
this.loading = false; this.loading = false;
console.log("请求完毕" + this.queryParams.pageNum) this.showimg=response.rows==0?true:false;
} else { } else {
// //
this.noMore = true; this.noMore = true;
@ -901,20 +900,21 @@
this.bookmarkList = response.rows; this.bookmarkList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
if (this.bookmarkList==null||this.bookmarkList.length==0) { this.showimg=response.rows==0?true:false;
this.showimg=true;
}
}); });
}, },
/**查询便签 滚动加载分页拼接*/ /**查询便签 滚动加载分页拼接*/
getNoteListConcat(){ getNoteListConcat(){
this.loading = true; this.loading = true;
selectBymenuNote(this.noteParams).then(response => { selectBymenuNote(this.noteParams).then(response => {
if (response.total != 0 && response.code == 200) { if ( response.code == 200) {
this.bookmarkList = this.bookmarkList.concat(response.rows); this.bookmarkList = this.bookmarkList.concat(response.rows);
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
this.listloading = false this.listloading = false
if (response.total==0||this.bookmarkList.length==0) {
this.showimg=true;
}
}else { }else {
// //
this.noMore = true; this.noMore = true;