|
@@ -472,6 +472,13 @@ export default {
|
|
this.selectPaper(this.curPaperIndex);
|
|
this.selectPaper(this.curPaperIndex);
|
|
},
|
|
},
|
|
async toActionNextPaper(toNext) {
|
|
async toActionNextPaper(toNext) {
|
|
|
|
+ if (
|
|
|
|
+ this.curPaperIndex === this.papers.length - 1 &&
|
|
|
|
+ this.page.current === this.page.totalPage
|
|
|
|
+ ) {
|
|
|
|
+ this.$Message.warning("当前已经是最后一条数据了");
|
|
|
|
+ }
|
|
|
|
+
|
|
let curPaperIndex = toNext ? this.curPaperIndex + 1 : this.curPaperIndex;
|
|
let curPaperIndex = toNext ? this.curPaperIndex + 1 : this.curPaperIndex;
|
|
if (this.page.current > 1 && this.papers.length === 1) {
|
|
if (this.page.current > 1 && this.papers.length === 1) {
|
|
this.setPage({ current: this.page.current - 1 });
|
|
this.setPage({ current: this.page.current - 1 });
|