1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| <el-card class="box-card"> <div class="question" ref="question" v-for="(question, index) in questionList" :key="question.id"> <h4>{{(index+1) +10*(currentPage-1)}}. {{question.ques}}</h4> <div v-for="option in question.options" :key="option.id" :class="[ {'choose': true}, {'wrong': option.value[0] === question.useranswer}, {'right': option.value[0] === question.answer} ]"> <label> <span>{{option.value}}</span> </label> </div> </div> <el-pagination background layout="prev, pager, next, jumper" :total="total" :page-size="pageLimit" :hide-on-single-page="noPagination" @current-change="currentChange"> </el-pagination> </el-card>
|