Commit cc0572f8 authored by zhengjinlei's avatar zhengjinlei

分页

parent d743d72c
......@@ -70,7 +70,7 @@ new Vue({
let that = this;
let page = this.currentPage;
this.$loading({text: '数据加载中...'});
RquestsGet('api/v1/profile/labels/?region=' + that.cityvalue).then(data => {
RquestsGet('api/v1/profile/labels/?region=' + that.cityvalue + '&page=' + page + '&page_size=10').then(data => {
console.log(data.data);
if (data.code != 0) {
that.$message(data.msg);
......@@ -81,7 +81,7 @@ new Vue({
}
}
this.tableData = data.data;
this.total = data.count;
this.total = data.total;
this.isHidePage = !(data.data.length > 0);
if (!data.data) {
......
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