Parcourir la source

活动数据分页

DELL il y a 3 ans
Parent
commit
95225f5d67

+ 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({
     url: `/api/v1/mp/admin/marketing/data/codeList/${id}`,
     method: 'post',
+    urlParams,
     headers: {
       'Content-Type': 'application/x-www-form-urlencoded'
     },

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

@@ -86,7 +86,7 @@ export default {
     // 列表
     getMarketingData() {
       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.marketingTotal = res.total;
         this.loading = false;