<template>
  <div class="fill-score" style="margin：0 20%;">
    <div class="top-title">(二)输入高考的成绩</div>
    <div class="input-box">
      <div class="input-item">
        <div class="item-label">科目：</div>
        <div class="item-box">
          <!-- 首选科目 -->
          <el-radio-group v-model="firstSubject" style="margin-bottom: 20px">
            <el-radio-button label="物理"></el-radio-button>
            <el-radio-button label="历史"></el-radio-button>
          </el-radio-group>
          <!-- 次选科目 -->
          <el-checkbox-group v-model="lastSubject" :max="2">
            <el-checkbox-button label="化学"></el-checkbox-button>
            <el-checkbox-button label="生物"></el-checkbox-button>
            <el-checkbox-button label="地理"></el-checkbox-button>
            <el-checkbox-button label="政治"></el-checkbox-button>
          </el-checkbox-group>
        </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: "NewFillScore",
  data: () => {
    return {
      firstSubject: "",
      inputScore: 0,
      inputIndex: 0,
      lastSubject: [],
    };
  },
  props: {
    isDisIndex: {
      type: Boolean,
      default: true,
    },
  },
  methods: {
    getSubject() {
      return this.firstSubject;
    },
    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>
