add some function

This commit is contained in:
Jeffrey Hsu 2025-02-12 20:53:08 +08:00
parent 08138ba9eb
commit a9d261b57e

View File

@ -20,13 +20,24 @@
<script setup lang="ts"> <script setup lang="ts">
import { useGlobalStore } from '@renderer/store' import { useGlobalStore } from '@renderer/store'
import { storeToRefs } from 'pinia' import { storeToRefs } from 'pinia'
import { Plus } from '@element-plus/icons-vue'
const store = useGlobalStore() const store = useGlobalStore()
const { studentList } = storeToRefs(store) const { studentList } = storeToRefs(store)
const showStudentAdd = ref(false)
</script> </script>
<template> <template>
<div> <div>
<div
class="sticky top-0 z-10 flex h-14 items-center justify-between border-b border-gray-300 bg-white px-8 font-bold"
>
<p>学生管理</p>
<div class="flex items-center">
<el-button type="primary" :icon="Plus">手动添加</el-button>
</div>
</div>
<el-table :data="studentList" class="w-full" stripe> <el-table :data="studentList" class="w-full" stripe>
<el-table-column type="index" width="55" /> <el-table-column type="index" width="55" />
<el-table-column prop="serialNumber" label="学号" sortable /> <el-table-column prop="serialNumber" label="学号" sortable />