<template>
  <div v-if="paper" class="fx-row pl20 pr20 fx-bet-cen">
    <div>{{ studentClassName|classTailing }} {{ studentName }}</div>
    <div class="fx-column fx-cen-cen pr20 pl20 fx-1">
      <div class="text-ellipsis-2 f24">{{ paper.name }}</div>
      <div v-if="currentQuestion.scoreTotal" class="f12 f-red mt5" style="margin-bottom: -15px">
        题目编号与分数：{{ currentQuestion.questionId }}
        ({{ currentQuestion.scoreTotal }})分
      </div>
    </div>
    <div class="f14 f-999">{{ scoringTypeName }}</div>
  </div>
</template>

<script>
import paperMixin from './mx-paper-mixin'

export default {
  mixins: [paperMixin],
  name: 'mx-paper-header',
  computed: {
    scoringTypeName() {
      const map = {
        '1': '自阅卷',
        '2': '老师阅卷',
        '3': '系统阅卷'
      }
      return map[this.paper.scoringType] || ''
    }
  }
}
</script>
