|
@@ -231,7 +231,11 @@ export default defineComponent({
|
|
|
const errors: any = [];
|
|
|
store.currentTask?.questionList.forEach((question, index) => {
|
|
|
if (!isNumber(question.score)) {
|
|
|
- errors.push({ question, index, error: "没有赋分不能提交" });
|
|
|
+ errors.push({
|
|
|
+ question,
|
|
|
+ index,
|
|
|
+ error: `${question.mainNumber}-${question.subNumber} 没有赋分不能提交。`,
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
if (errors.length === 0) {
|
|
@@ -239,9 +243,7 @@ export default defineComponent({
|
|
|
} else {
|
|
|
console.log(errors);
|
|
|
message.error({
|
|
|
- content: errors
|
|
|
- .map((e: any) => `${e.index + 1}、${e.error}`)
|
|
|
- .join("\n"),
|
|
|
+ content: errors.map((e: any) => `${e.error}`).join("\n"),
|
|
|
duration: 10,
|
|
|
});
|
|
|
}
|