|
@@ -136,14 +136,14 @@ async function getOneOfStuTask() {
|
|
return getOneOfInspectedTask(subjectCode, groupNumber);
|
|
return getOneOfInspectedTask(subjectCode, groupNumber);
|
|
}
|
|
}
|
|
|
|
|
|
-const realLibraryId = computed(
|
|
|
|
|
|
+const realLibraryId = $computed(
|
|
() => (isSingleStudent ? libraryId : store.currentTask?.libraryId) as string
|
|
() => (isSingleStudent ? libraryId : store.currentTask?.libraryId) as string
|
|
);
|
|
);
|
|
const saveTaskToServer = async () => {
|
|
const saveTaskToServer = async () => {
|
|
console.log("save inspect task to server");
|
|
console.log("save inspect task to server");
|
|
const mkey = "save_task_key";
|
|
const mkey = "save_task_key";
|
|
message.loading({ content: "保存评卷任务...", key: mkey });
|
|
message.loading({ content: "保存评卷任务...", key: mkey });
|
|
- const res = (await saveInspectedTask(realLibraryId.value)) as any;
|
|
|
|
|
|
+ const res = (await saveInspectedTask(realLibraryId)) as any;
|
|
if (res.data.success && store.currentTask) {
|
|
if (res.data.success && store.currentTask) {
|
|
message.success({ content: "复核成功", key: mkey, duration: 2 });
|
|
message.success({ content: "复核成功", key: mkey, duration: 2 });
|
|
if (!store.historyOpen) {
|
|
if (!store.historyOpen) {
|
|
@@ -164,11 +164,10 @@ const rejectQuestions = async (questions: Array<Question>) => {
|
|
if (!store.currentTask) return;
|
|
if (!store.currentTask) return;
|
|
const mkey = "reject_task_key";
|
|
const mkey = "reject_task_key";
|
|
message.loading({ content: "打回评卷任务...", key: mkey });
|
|
message.loading({ content: "打回评卷任务...", key: mkey });
|
|
- const res = (await rejectInspectedTask(
|
|
|
|
- //realLibraryId.value,
|
|
|
|
|
|
+ const res = await rejectInspectedTask(
|
|
store.currentTask.libraryId + "",
|
|
store.currentTask.libraryId + "",
|
|
questions
|
|
questions
|
|
- )) as any;
|
|
|
|
|
|
+ );
|
|
if (res.data.success) {
|
|
if (res.data.success) {
|
|
store.currentTask = undefined;
|
|
store.currentTask = undefined;
|
|
message.success({ content: "打回成功", key: mkey, duration: 2 });
|
|
message.success({ content: "打回成功", key: mkey, duration: 2 });
|