deason 4 년 전
부모
커밋
2744f577b1
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      src/modules/basic/view/data_previllege.vue

+ 8 - 8
src/modules/basic/view/data_previllege.vue

@@ -409,15 +409,15 @@ export default {
       this.$refs.addExamDialog.openDialog();
     },
     async deleteBatch(type) {
-      const ids = this.$refs["table" + type].selection.map(v => v.id).join();
+      const refIds = this.$refs["table" + type].selection.map(v => v.refId);
+
       try {
-        await this.$httpWithMsg.post(
-          CORE_API +
-            "/user/data/rule/delete?" +
-            object2QueryString({
-              ids
-            })
-        );
+        await this.$httpWithMsg.post(CORE_API + "/user/data/rule/delete", {
+          refIds,
+          type: type.toUpperCase(),
+          userId: this.userId
+        });
+
         this.$notify({
           type: "success",
           message: "删除成功"