Tang 3 жил өмнө
parent
commit
22150eff33

+ 8 - 0
src/newApi/activityRecommend.js

@@ -16,6 +16,14 @@ export default {
             data
         })
     },
+    //删除商品推荐
+    removeactivityrecommend(data) {
+        return request({
+            url: '/activity/recommend/remove',
+            method: 'post',
+            data
+        })
+    },
     //查询商品推荐列表
     inquireactivityrecommendList(data) {
         return request({

+ 3 - 5
src/views/2Cport/referralManageMent/tab1/tab1.vue

@@ -146,8 +146,7 @@ export default {
       this.$api
         .inquireactivityrecommendList({
           platform: 1,
-          type: this.activeName === "first" ? 1 : 2,
-          status:"0,1"
+          type: this.activeName === "first" ? 1 : 2
         })
         .then((res) => {
           this.tableData = res.rows;
@@ -175,10 +174,9 @@ export default {
       )
         .then(() => {
           var data = {
-            recommendId: v.recommendId,
-            status: -1,
+            recommendId: v.recommendId
           };
-          this.$api.editactivityrecommend(data).then((res) => {
+          this.$api.removeactivityrecommend(data).then((res) => {
             this.$message.success("删除成功");
             this.search();
           });

+ 1 - 3
src/views/2Cport/referralManageMent/tab2/tab2.vue

@@ -147,7 +147,6 @@ export default {
         .inquireactivityrecommendList({
           platform: 2,
           type: this.activeName === "first" ? 1 : 2,
-          status: "0,1",
         })
         .then((res) => {
           this.tableData = res.rows;
@@ -176,9 +175,8 @@ export default {
         .then(() => {
           var data = {
             recommendId: v.recommendId,
-            status: -1,
           };
-          this.$api.editactivityrecommend(data).then((res) => {
+          this.$api.removeactivityrecommend(data).then((res) => {
             this.$message.success("删除成功");
             this.search();
           });