|
|
@ -96,14 +96,11 @@ export default { |
|
|
|
this.$get(`${this.api.queryArticleByCondition}/${this.pageNo}/${this.pageSize}`, data).then(res => { |
|
|
|
this.$get(`${this.api.queryArticleByCondition}/${this.pageNo}/${this.pageSize}`, data).then(res => { |
|
|
|
this.listData = res.articleList; |
|
|
|
this.listData = res.articleList; |
|
|
|
this.totals = res.total; |
|
|
|
this.totals = res.total; |
|
|
|
// 测试中。。。以下可删 |
|
|
|
|
|
|
|
for(let i=0; i<9; i++) { |
|
|
|
for(let i=0; i<9; i++) { |
|
|
|
this.listData.push(res.articleList[0]) |
|
|
|
this.listData.push(this.listData[0]) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log(res) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.listData.length && this.totals) { |
|
|
|
if (!this.listData.length && this.totals) { |
|
|
|
this.pageNo--; |
|
|
|
this.pageNo--; |
|
|
|
this.getData(); |
|
|
|
this.getData(); |
|
|
@ -216,9 +213,4 @@ export default { |
|
|
|
.off + span { |
|
|
|
.off + span { |
|
|
|
display: none; |
|
|
|
display: none; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.page-content { |
|
|
|
|
|
|
|
height: 67vh; |
|
|
|
|
|
|
|
overflow: auto!important; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|
</style> |