|
@@ -67,12 +67,13 @@ export async function getHistoryTask({
|
|
return httpApp.post("/mark/getHistory", form);
|
|
return httpApp.post("/mark/getHistory", form);
|
|
}
|
|
}
|
|
|
|
|
|
-/** 保存评卷任务 */
|
|
|
|
|
|
+/** 保存评卷任务(正常保存) */
|
|
export async function saveTask() {
|
|
export async function saveTask() {
|
|
let markResult = store.currentMarkResult;
|
|
let markResult = store.currentMarkResult;
|
|
if (markResult) {
|
|
if (markResult) {
|
|
// markResult.specialTagList = [];
|
|
// markResult.specialTagList = [];
|
|
markResult.problem = false;
|
|
markResult.problem = false;
|
|
|
|
+ markResult.unselective = false;
|
|
markResult.spent = Date.now() - markResult.__markStartTime;
|
|
markResult.spent = Date.now() - markResult.__markStartTime;
|
|
markResult = { ...markResult };
|
|
markResult = { ...markResult };
|
|
// @ts-ignore
|
|
// @ts-ignore
|
|
@@ -114,6 +115,7 @@ export async function doProblemType(problemId: number) {
|
|
let markResult = store.currentMarkResult;
|
|
let markResult = store.currentMarkResult;
|
|
if (markResult) {
|
|
if (markResult) {
|
|
markResult.problem = true;
|
|
markResult.problem = true;
|
|
|
|
+ markResult.unselective = false;
|
|
markResult.problemTypeId = problemId;
|
|
markResult.problemTypeId = problemId;
|
|
// @ts-ignore FIXME: should allow null
|
|
// @ts-ignore FIXME: should allow null
|
|
markResult.markerScore = null;
|
|
markResult.markerScore = null;
|
|
@@ -127,6 +129,31 @@ export async function doProblemType(problemId: number) {
|
|
markResult.__markStartTime = undefined;
|
|
markResult.__markStartTime = undefined;
|
|
// @ts-ignore
|
|
// @ts-ignore
|
|
markResult.__previous = undefined;
|
|
markResult.__previous = undefined;
|
|
|
|
+
|
|
|
|
+ return httpApp.post("/mark/saveTask", markResult);
|
|
|
|
+ } else {
|
|
|
|
+ console.error("无当前评卷结果");
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/** 评卷用户选择试卷的为未选做 */
|
|
|
|
+export async function doUnselectiveType() {
|
|
|
|
+ let markResult = store.currentMarkResult;
|
|
|
|
+ if (markResult) {
|
|
|
|
+ markResult.problem = false;
|
|
|
|
+ markResult.unselective = true;
|
|
|
|
+ markResult.markerScore = -1;
|
|
|
|
+ markResult.scoreList = [];
|
|
|
|
+ markResult.specialTagList = [];
|
|
|
|
+ markResult.trackList = [];
|
|
|
|
+
|
|
|
|
+ markResult.spent = Date.now() - markResult.__markStartTime;
|
|
|
|
+ markResult = { ...markResult };
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ markResult.__markStartTime = undefined;
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ markResult.__previous = undefined;
|
|
|
|
+
|
|
return httpApp.post("/mark/saveTask", markResult);
|
|
return httpApp.post("/mark/saveTask", markResult);
|
|
} else {
|
|
} else {
|
|
console.error("无当前评卷结果");
|
|
console.error("无当前评卷结果");
|