Commit 80c107ac authored by 罗林杰's avatar 罗林杰

修改控制台分页

parent 14de890f
......@@ -102,7 +102,7 @@
<div class="controlPlatform-footer">
<el-row :gutter="10">
<el-col :span="10">
<el-card style="height: 393px">
<el-card style="height: 400px">
<div style="display: flex;justify-content: space-between">
<div class="controlSpan_middle">
今日访问次数 top10
......@@ -115,7 +115,7 @@
</el-card>
</el-col>
<el-col :span="14">
<el-card style="min-height: 393px">
<el-card style="height: 400px">
<el-row>
<el-col :span="12">
<div class="end_title">待审核动态</div>
......@@ -126,6 +126,7 @@
<el-table
class="table-list"
:data="tableList"
max-height="270"
>
<el-table-column type="index" label="序号" width="55" />
<el-table-column label="发布人" prop="createUser" />
......@@ -143,6 +144,14 @@
</el-table-column>
</el-table>
</div>
<pagination
v-show="total>0"
layout="prev, next"
:total="total"
:page.sync="queryParams.page"
:limit.sync="queryParams.rows"
@pagination="getList"
/>
</el-card>
</el-col>
</el-row>
......@@ -303,6 +312,11 @@ export default {
articleExamStatusMonthYes: [],
range: 0,
tableList: [],
total: 0,
queryParams: {
page: 1,
rows: 10
},
peopleNumber: [],
activityNumber: [],
visitCount: [],
......@@ -363,12 +377,9 @@ export default {
},
methods: {
getList() {
const queryParams = {
page: 1,
rows: 10
}
listArticle(queryParams).then(res => {
listArticle(this.queryParams).then(res => {
this.tableList = res.data
this.total = res.total
})
},
getPeopleNumber() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment