Sfoglia il codice sorgente

任务复核api变更

Michael Wang 4 anni fa
parent
commit
dee5588e66

+ 3 - 3
src/api/libraryInspectPage.ts

@@ -56,11 +56,11 @@ export async function saveInspectedTask(libraryId: string) {
 
 /** 复核任务打回问题 */
 export async function rejectInspectedTask(
-  studentId: string,
+  libraryId: string,
   questionList: Array<Question>
 ) {
-  return httpApp.post("/admin/exam/inspected/rejected", {
-    studentId,
+  return httpApp.post("/admin/exam/library/rejected", {
+    libraryId,
     questionList,
   });
 }

+ 1 - 1
src/features/library/inspect/LibraryInspect.vue

@@ -151,7 +151,7 @@ export default defineComponent({
       message.loading({ content: "打回评卷任务...", key: mkey });
       const res = (await rejectInspectedTask(
         //realLibraryId.value,
-        store.currentTask.studentId + "",
+        store.currentTask.libraryId + "",
         questions
       )) as any;
       if (res.data.success) {