Răsfoiți Sursa

add api params

Michael Wang 3 ani în urmă
părinte
comite
92131f643e

+ 6 - 0
src/api/libraryInspectPage.ts

@@ -44,6 +44,7 @@ export async function getOneOfInspectedTaskOfLibraryInspect({
   startScore,
   endScore,
   questionScore,
+  unselective,
 }: {
   subjectCode?: string;
   groupNumber?: string;
@@ -53,6 +54,7 @@ export async function getOneOfInspectedTaskOfLibraryInspect({
   startScore?: string;
   endScore?: string;
   questionScore?: string;
+  unselective?: string;
 }) {
   const form = new FormData();
   subjectCode && form.append("subjectCode", subjectCode);
@@ -63,6 +65,7 @@ export async function getOneOfInspectedTaskOfLibraryInspect({
   startScore && form.append("startScore", startScore);
   endScore && form.append("endScore", endScore);
   questionScore && form.append("questionScore", questionScore);
+  unselective && form.append("unselective", unselective);
   return httpApp.post<Task>("/admin/exam/library/getTask", form);
 }
 
@@ -76,6 +79,7 @@ export async function getInspectedTaskStatusOfLibraryInspect({
   startScore,
   endScore,
   questionScore,
+  unselective,
 }: {
   subjectCode: string;
   groupNumber: string;
@@ -85,6 +89,7 @@ export async function getInspectedTaskStatusOfLibraryInspect({
   startScore?: string;
   endScore?: string;
   questionScore?: string;
+  unselective?: string;
 }) {
   const form = new FormData();
   form.append("subjectCode", subjectCode);
@@ -95,6 +100,7 @@ export async function getInspectedTaskStatusOfLibraryInspect({
   startScore && form.append("startScore", startScore);
   endScore && form.append("endScore", endScore);
   questionScore && form.append("questionScore", questionScore);
+  unselective && form.append("unselective", unselective);
   return httpApp.post<{ valid: boolean; totalCount: number }>(
     "/admin/exam/library/getStatus",
     form

+ 4 - 0
src/features/library/inspect/LibraryInspect.vue

@@ -52,6 +52,7 @@ const {
   startScore,
   endScore,
   questionScore,
+  unselective,
 } = route.query as {
   subjectCode: string;
   groupNumber: string;
@@ -62,6 +63,7 @@ const {
   startScore: string;
   endScore: string;
   questionScore: string;
+  unselective: string;
 };
 
 async function updateClearTask() {
@@ -95,6 +97,7 @@ async function updateStatus() {
     startScore,
     endScore,
     questionScore,
+    unselective,
   });
   if (res.data.valid) Object.assign(store.status, res.data);
 }
@@ -146,6 +149,7 @@ async function getOneOfStuTask() {
     startScore,
     endScore,
     questionScore,
+    unselective,
   });
 }