Browse Source

feat: 批量纠错

zhangjie 9 tháng trước cách đây
mục cha
commit
85440c68d5
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      src/modules/record/components/LibraryDialog.vue

+ 7 - 1
src/modules/record/components/LibraryDialog.vue

@@ -368,7 +368,13 @@ export default {
       if (this.loading) return;
       this.loading = true;
       let datas = { ...this.modalForm };
-      datas.paperLibraryId = this.curPage.paperLibraryId;
+      if (this.IS_UNDO_MODEL) {
+        datas.paperLibraryIds = this.curPage.paperLibraryId;
+      } else {
+        datas.paperLibraryIds = this.undoPageList
+          .map((item) => item.paperLibraryId)
+          .join();
+      }
       const res = await paperBindUser(datas).catch(() => {});
       this.loading = false;