|
@@ -59,7 +59,10 @@
|
|
<span
|
|
<span
|
|
v-for="({ question_id, is_objective, answer_status }, i) in exercise_info.question_list"
|
|
v-for="({ question_id, is_objective, answer_status }, i) in exercise_info.question_list"
|
|
:key="question_id"
|
|
:key="question_id"
|
|
- :class="['question-list-item', { subjectivity: is_objective === 'false', error: answer_status === 2 }]"
|
|
|
|
|
|
+ :class="[
|
|
|
|
+ 'question-list-item',
|
|
|
|
+ { subjectivity: is_objective === 'false', error: answer_status === 2 || answer_status === 0 }
|
|
|
|
+ ]"
|
|
@click="
|
|
@click="
|
|
exerciseLink(
|
|
exerciseLink(
|
|
exercise_info.answer_record.exercise_share_record_id,
|
|
exercise_info.answer_record.exercise_share_record_id,
|
|
@@ -81,7 +84,7 @@
|
|
<el-button type="primary" @click="remarkTaskStudentExecuteInfo_Teacher">批改完成</el-button>
|
|
<el-button type="primary" @click="remarkTaskStudentExecuteInfo_Teacher">批改完成</el-button>
|
|
<el-button>重发</el-button>
|
|
<el-button>重发</el-button>
|
|
<el-button v-if="student_list.length > 1" @click="next">
|
|
<el-button v-if="student_list.length > 1" @click="next">
|
|
- {{ buttonName }} <i class="el-icon-right"></i>
|
|
|
|
|
|
+ {{ buttonName }} <i :class="buttonIcon"></i>
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -364,6 +367,11 @@ let buttonName = computed(() => {
|
|
if (list.length <= 0) return '';
|
|
if (list.length <= 0) return '';
|
|
return list[list.length - 1].student_id === curStudentId.value ? $t('Key618') : $t('Key619');
|
|
return list[list.length - 1].student_id === curStudentId.value ? $t('Key618') : $t('Key619');
|
|
});
|
|
});
|
|
|
|
+let buttonIcon = computed(() => {
|
|
|
|
+ const list = student_list.value;
|
|
|
|
+ if (list.length <= 0) return '';
|
|
|
|
+ return list[list.length - 1].student_id === curStudentId.value ? 'el-icon-back' : 'el-icon-right';
|
|
|
|
+});
|
|
|
|
|
|
function next() {
|
|
function next() {
|
|
const list = student_list.value;
|
|
const list = student_list.value;
|
|
@@ -520,6 +528,7 @@ $bor-color: #d9d9d9;
|
|
}
|
|
}
|
|
|
|
|
|
&.subjectivity {
|
|
&.subjectivity {
|
|
|
|
+ color: $color;
|
|
background-color: #fef2a4;
|
|
background-color: #fef2a4;
|
|
}
|
|
}
|
|
}
|
|
}
|