Просмотр исходного кода

修改BA会员列表支持分页查询

kevin_zhangl 3 лет назад
Родитель
Сommit
9f3433dd7b
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/views/atlas/brand-ambassador-list.vue

+ 5 - 1
src/views/atlas/brand-ambassador-list.vue

@@ -61,6 +61,10 @@ export default {
       list: null,
       total: 0,
       listLoading: true,
+			listQuery: {
+				page: 1,
+				pageSize: 20
+			},
     }
   },
   created() {
@@ -70,7 +74,7 @@ export default {
   methods: {
     getList() {
       this.listLoading = true
-			fetchBrandAmbassadorList({}).then(response => {
+			fetchBrandAmbassadorList(this.listQuery).then(response => {
         this.list = response.data.list
         this.total = parseInt(response.data.totalCount)