<template>
  <div class="fill-score">
    <div class="top-title">（二）输入高考的成绩</div>
    <div class="input-box">
      <div class="input-item">
        <div class="item-label">科目：</div>
        <div class="item-box">
          <el-radio v-model="subject" label="文科">文科</el-radio>
          <el-radio v-model="subject" label="理科">理科</el-radio>
        </div>
      </div>
      <div class="input-item">
        <div class="item-label">总分：</div>
        <div class="item-box">
          <el-input-number
            v-model="inputScore"
            :min="0"
            label="请输入总分"
          ></el-input-number>
        </div>
      </div>
      <div class="input-item">
        <div class="item-label">位次：</div>
        <div class="item-box">
          <el-input-number
            v-model="inputIndex"
            :min="0"
            :disabled="isDisIndex"
            label="高考成绩位次发布后填写"
          ></el-input-number>
        </div>
        <div class="item-msg">当前为估分模拟，不需填写排名</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "FillScore",
  data: () => {
    return {
      subject: "文科",
      inputScore: 0,
      inputIndex: 0,
    };
  },
  props: {
    isDisIndex: {
      type: Boolean,
      default: true,
    },
  },
  methods: {
    getSubject() {
      return this.subject;
    },
    getScore() {
      return this.inputScore;
    },
    getIndex() {
      return this.inputIndex;
    },
  },
};
</script>

<style scoped>
.top-title {
  text-align: center;
  font-size: 30px;
  height: 80px;
  padding: 26px;
  border-bottom: 1px solid rgba(183, 183, 183, 0.5);
}
.input-box {
  padding: 30px;
}
.input-item {
  padding: 10px 15px;
  display: flex;
  align-items: center;
}
.item-label {
  padding: 0 20px;
}
.item-msg {
  color: #999;
  padding: 0 20px;
}
</style>
