|
@@ -3,7 +3,13 @@ import { studentSubjectiveConfirmData } from "@/api/checkPage";
|
|
|
import { useMarkStore } from "@/store";
|
|
|
import { computed, ref } from "vue";
|
|
|
|
|
|
-export default function useTask(ids: string[]) {
|
|
|
+export default function useTask(
|
|
|
+ ids: string[],
|
|
|
+ courseData: {
|
|
|
+ examId: string;
|
|
|
+ paperNumber: string;
|
|
|
+ }
|
|
|
+) {
|
|
|
const markStore = useMarkStore();
|
|
|
const studentIds = ref(ids);
|
|
|
|
|
@@ -34,7 +40,10 @@ export default function useTask(ids: string[]) {
|
|
|
}
|
|
|
|
|
|
async function updateTask(studentId) {
|
|
|
- const res = await studentSubjectiveConfirmData(studentId);
|
|
|
+ const res = await studentSubjectiveConfirmData({
|
|
|
+ studentId,
|
|
|
+ ...courseData,
|
|
|
+ });
|
|
|
if (!res.data) {
|
|
|
markStore.message = res.message || "数据错误";
|
|
|
return;
|