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();
       this.$refs.addExamDialog.openDialog();
     },
     },
     async deleteBatch(type) {
     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 {
       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({
         this.$notify({
           type: "success",
           type: "success",
           message: "删除成功"
           message: "删除成功"