浏览代码

活动数据分页

DELL 3 年之前
父节点
当前提交
95225f5d67
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      src/api/business/marketing.js
  2. 1 1
      src/views/business/marketing/components/ActivityTable.vue

+ 2 - 1
src/api/business/marketing.js

@@ -72,10 +72,11 @@ export function setMarketingStatusOff(data) {
   })
   })
 }
 }
 //查询活动数据列表
 //查询活动数据列表
-export function getMarketingDataCodeList(id) {
+export function getMarketingDataCodeList(urlParams,id) {
   return request({
   return request({
     url: `/api/v1/mp/admin/marketing/data/codeList/${id}`,
     url: `/api/v1/mp/admin/marketing/data/codeList/${id}`,
     method: 'post',
     method: 'post',
+    urlParams,
     headers: {
     headers: {
       'Content-Type': 'application/x-www-form-urlencoded'
       'Content-Type': 'application/x-www-form-urlencoded'
     },
     },

+ 1 - 1
src/views/business/marketing/components/ActivityTable.vue

@@ -86,7 +86,7 @@ export default {
     // 列表
     // 列表
     getMarketingData() {
     getMarketingData() {
       this.loading = true;
       this.loading = true;
-      getMarketingDataCodeList(this.ids.id ).then((res) => {
+      getMarketingDataCodeList('pageNum='+this.pageParams.pageNum + '&pageSize='+this.pageParams.pageSize+'&',this.ids.id ).then((res) => {
         this.marketingList = res.rows
         this.marketingList = res.rows
         this.marketingTotal = res.total;
         this.marketingTotal = res.total;
         this.loading = false;
         this.loading = false;