Browse Source

优惠删除和导出

秦鹏 3 years ago
parent
commit
a7b17410c9
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/teacher-devEntering/discountCodeList.vue

+ 5 - 2
src/views/teacher-devEntering/discountCodeList.vue

@@ -221,7 +221,9 @@ export default {
         .then(() => {
           let MethodName = "order-discount_manager-DeleteGoodsDiscountCode";
           let data = {
-            id: row.id,
+            discount_code_id: row.id,
+            goods_id: this.bookId,
+            goods_type: this.goods_type * 1,
           };
           LearnWebSI(MethodName, data)
             .then((res) => {
@@ -251,8 +253,9 @@ export default {
       }
       let MethodName = "data_export-ExportBookDiscountCodeList";
       let data = {
-        book_id: this.bookId,
         use_status: this.exportRadio,
+        goods_id: this.bookId,
+        goods_type: this.goods_type * 1,
       };
       window.open(
         process.env.VUE_APP_BASE_API +