Ver Fonte

修复添加盲票组奖品选择分页

hwb0 há 3 anos atrás
pai
commit
33af653a94

+ 7 - 7
src/views/business/ticket/create.vue

@@ -550,7 +550,7 @@ export default {
 
       pageParams: {
         pageNum: 1,
-        pageSize: 5,
+        pageSize: 10,
       },
     };
   },
@@ -560,7 +560,7 @@ export default {
   },
   methods: {
     // 商品列表
-    getGoodsList(title) {
+    getGoodsList() {
       this.loading = true;
       getGoodsList(
         "pageNum=" +
@@ -568,7 +568,7 @@ export default {
           "&pageSize=" +
           this.pageParams.pageSize +
           "&",
-        { title: title, status: "on" }
+        { title: this.goodsTitle, status: "on" }
       ).then((res) => {
         this.goodsList = res.rows.map((item) => {
           return {
@@ -582,7 +582,7 @@ export default {
     },
 
     // 卡券列表
-    getCouponList(title) {
+    getCouponList() {
       this.loading = true;
       getCouponList(
         "pageNum=" +
@@ -590,7 +590,7 @@ export default {
           "&pageSize=" +
           this.pageParams.pageSize +
           "&",
-        { title: title, status: "on" }
+        { title: this.couponTitle, status: "on" }
       ).then((res) => {
         this.couponList = res.rows.map((item) => {
           return {
@@ -734,12 +734,12 @@ export default {
 
     // 查询商品
     handleQueryGoods() {
-      this.getGoodsList(this.goodsTitle);
+      this.getGoodsList();
     },
 
     // 查询券
     handleQueryCoupon() {
-      this.getCouponList(this.couponTitle);
+      this.getCouponList();
     },
 
     // 选中商品

+ 1 - 1
src/views/business/ticket/index.vue

@@ -229,7 +229,7 @@ export default {
       ticketTypeArr: [],
       ticketStateArr: [],
       // 总条数
-      total: 10,
+      total: 0,
       list: [],
       ids: [],
       importShow:false