Parcourir la source

废弃数据后,调用刷新接口

彬彬 il y a 4 ans
Parent
commit
b032c053d5
1 fichiers modifiés avec 11 ajouts et 2 suppressions
  1. 11 2
      src/views/sing_active/producthelpvote.vue

+ 11 - 2
src/views/sing_active/producthelpvote.vue

@@ -38,6 +38,7 @@
 <script>
   import {getVote,setStatusHideByIp,setStatusShowByIp} from "@/api/sing_active/activehelprecord";
   import {mapGetters} from "vuex";
+  import {editCount} from "../../api/sing_active/activeproductrecord";
 
   export default {
     name: "product-help-vote",
@@ -108,6 +109,13 @@
       ...mapGetters(["permission"]),
     },
     methods: {
+      editVote(row){
+        editCount(row.id).then(res => {
+          if (res.data.success) {
+            window.onload;
+          }
+        })
+      },
       helpRecordHideByIp(){
         const arr = [];
         this.selectionList.forEach((ele) => {
@@ -117,7 +125,7 @@
           this.$message.warning("请选择至少一条数据");
           return;
         }
-        this.$confirm("确定将选择数据隐藏?", {
+        this.$confirm("确定将选择数据废弃?", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
           type: "warning"
@@ -146,7 +154,7 @@
           this.$message.warning("请选择至少一条数据");
           return;
         }
-        this.$confirm("确定将选择数据显示?", {
+        this.$confirm("确定将选择数据恢复?", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
           type: "warning"
@@ -178,6 +186,7 @@
             this.loading = false;
             this.data = data;
           });
+          editCount(this.productId)
         }
       }
     }