d35fabe4 by zhaoqian

日志分页

1 parent c24f1b28
......@@ -52,6 +52,11 @@
</el-table-column>
</el-table>
</div>
<div class="pagination">
<el-pagination background layout="prev, pager, next,total" :total="total"
:current-page="pageNo" :page-size="pageSize" @current-change="handleCurrentChange">
</el-pagination>
</div>
</div>
</template>
......@@ -65,6 +70,10 @@
errorLog:[],
concreteLog:'',
total: 0,
pageNo: 1,
pageSize: 50,
outerVisible: false,
innerVisible: false,
......@@ -98,15 +107,21 @@
methods:{
getData(){
let data={
"startTime": "",
"pageNo": 1,
"pageSize": 50
"startTime": this.startValue,
"endTime": this.endValue,
"pageNo": this.pageNo,
"pageSize": this.pageSize
};
getLogData(data).then((res)=>{
console.log(res.result);
this.tableData = res.result.records;
this.total = res.result.total
})
},
handleCurrentChange(val) {
this.pageNo = val;
this.getData();
},
query(){
let data={
"startTime": this.startValue,
......@@ -175,5 +190,8 @@
margin:10px;
}
.pagination {
padding: 18px 0;
}
</style>
\ No newline at end of file
......