<!--
  -
  - Copyright (c) 2025. Jeffery Hsu - Achievement Report Generator
  -
  - This program is free software: you can redistribute it and/or modify
  - it under the terms of the GNU General Public License as published by
  - the Free Software Foundation, either version 3 of the License, or
  - (at your option) any later version.
  -
  - This program is distributed in the hope that it will be useful,
  - but WITHOUT ANY WARRANTY; without even the implied warranty of
  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  - GNU General Public License for more details.
  -
  - You should have received a copy of the GNU General Public License
  - along with this program. If not, see <https://www.gnu.org/licenses/>.
  -
  -->

<script setup lang="ts">
import { useGlobalStore } from '@renderer/store'
import { storeToRefs } from 'pinia'

const store = useGlobalStore()
const { studentList } = storeToRefs(store)
</script>

<template>
  <div>
    <el-table :data="studentList" class="w-full" stripe>
      <el-table-column type="index" width="55" />
      <el-table-column prop="serialNumber" label="学号" sortable />
      <el-table-column prop="name" label="姓名" />
      <el-table-column prop="className" label="班级" sortable />
      <el-table-column prop="resitTag" label="重修标记">
        <template #default="scope">
          <el-checkbox v-model="scope.row.resitTag" />
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<style scoped></style>
