|
@@ -229,10 +229,8 @@ const saveTaskToServer = async (
|
|
error: string;
|
|
error: string;
|
|
};
|
|
};
|
|
const errors: SubmitError[] = [];
|
|
const errors: SubmitError[] = [];
|
|
- console.log("markResult.scoreList", markResult.scoreList);
|
|
|
|
markResult.scoreList.forEach((score, index) => {
|
|
markResult.scoreList.forEach((score, index) => {
|
|
if (!store.currentTask) return;
|
|
if (!store.currentTask) return;
|
|
- console.log("arbitrateIndexArr.value", arbitrateIndexArr.value);
|
|
|
|
const question = store.currentTask.questionList[index];
|
|
const question = store.currentTask.questionList[index];
|
|
let error;
|
|
let error;
|
|
if (!isNumber(score)) {
|
|
if (!isNumber(score)) {
|
|
@@ -249,7 +247,11 @@ const saveTaskToServer = async (
|
|
} 给分小于最低分不能提交。`;
|
|
} 给分小于最低分不能提交。`;
|
|
}
|
|
}
|
|
// if (error) {
|
|
// if (error) {
|
|
- if (error && arbitrateIndexArr.value?.find((i) => i == index)) {
|
|
|
|
|
|
+ if (
|
|
|
|
+ error &&
|
|
|
|
+ (arbitrateIndexArr.value?.includes(index) ||
|
|
|
|
+ !arbitrateIndexArr.value?.length)
|
|
|
|
+ ) {
|
|
errors.push({ question, index, error });
|
|
errors.push({ question, index, error });
|
|
}
|
|
}
|
|
});
|
|
});
|