修复无书签不显示提示问题
This commit is contained in:
parent
fec325e383
commit
0a5d9dc480
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user