1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-07-05 11:09:29 +00:00
This commit is contained in:
孙悟元 2024-11-24 16:54:40 +08:00
parent 1137f44c44
commit 1be14511c7
2 changed files with 60 additions and 16 deletions

View File

@ -19,7 +19,7 @@
class="text-caption text-disabled" class="text-caption text-disabled"
style="position: absolute; right: 16px;" style="position: absolute; right: 16px;"
> >
&copy; 2016-{{ (new Date()).getFullYear() }} <span class="d-none d-sm-inline-block">Vuetify, LLC</span> &copy; 2020-{{ (new Date()).getFullYear() }} <span class="d-none d-sm-inline-block">SunWuyuan</span>
<a <a
class="text-decoration-none on-surface" class="text-decoration-none on-surface"

View File

@ -16,11 +16,20 @@
@click="ServerSelectionDialog = true" @click="ServerSelectionDialog = true"
/> />
</v-app-bar> </v-app-bar>
<v-container class="main-window" fluid> <v-container
class="main-window"
fluid
>
<v-row> <v-row>
<v-col cols="11"> <v-col cols="11">
<v-container fluid style="padding-left: 2px; padding-right: 2px"> <v-container
<v-row v-for="subjects in homeworkArrange" :key="subjects.name"> fluid
style="padding-left: 2px; padding-right: 2px"
>
<v-row
v-for="subjects in homeworkArrange"
:key="subjects.name"
>
<v-col <v-col
v-for="subject in subjects" v-for="subject in subjects"
:key="subject" :key="subject"
@ -60,20 +69,34 @@
实到:{{ studentList.length - selectedSet.size - lateSet.size }} 实到:{{ studentList.length - selectedSet.size - lateSet.size }}
</h2> </h2>
<h2>请假:{{ selectedSet.size }} </h2> <h2>请假:{{ selectedSet.size }} </h2>
<h3 v-for="(i, index) in selectedSet" :key="'absent-' + index"> <h3
v-for="(i, index) in selectedSet"
:key="'absent-' + index"
>
{{ `${index + 1}. ${studentList[i]}` }} {{ `${index + 1}. ${studentList[i]}` }}
</h3> </h3>
<h2>迟到:{{ lateSet.size }} </h2> <h2>迟到:{{ lateSet.size }} </h2>
<h3 v-for="(i, index) in lateSet" :key="'late-' + index"> <h3
v-for="(i, index) in lateSet"
:key="'late-' + index"
>
{{ `${index + 1}. ${studentList[i]}` }} {{ `${index + 1}. ${studentList[i]}` }}
</h3> </h3>
</v-col> </v-col>
</v-row> </v-row>
</v-container> </v-container>
<v-container fluid> <v-container fluid>
<v-btn icon="mdi-plus" variant="text" @click="zoom('up')" /> <v-btn
<v-btn icon="mdi-minus" variant="text" @click="zoom('out')" /> icon="mdi-plus"
variant="text"
@click="zoom('up')"
/>
<v-btn
icon="mdi-minus"
variant="text"
@click="zoom('out')"
/>
<v-btn <v-btn
v-if="!synced" v-if="!synced"
color="primary" color="primary"
@ -93,11 +116,20 @@
> >
上传 上传
</v-btn> </v-btn>
<v-btn v-else color="success" size="large" @click="showSyncMessage"> <v-btn
v-else
color="success"
size="large"
@click="showSyncMessage"
>
同步完成 同步完成
</v-btn> </v-btn>
</v-container> </v-container>
<v-dialog v-model="dialogVisible" width="500" @click:outside="handleClose"> <v-dialog
v-model="dialogVisible"
width="500"
@click:outside="handleClose"
>
<v-card border> <v-card border>
<v-card-title>{{ dialogTitle }}</v-card-title> <v-card-title>{{ dialogTitle }}</v-card-title>
<v-card-subtitle>写完后点击上传谢谢喵</v-card-subtitle> <v-card-subtitle>写完后点击上传谢谢喵</v-card-subtitle>
@ -113,10 +145,16 @@
</v-card> </v-card>
</v-dialog> </v-dialog>
<v-dialog v-model="attendDialogVisible" width="800"> <v-dialog
v-model="attendDialogVisible"
width="800"
>
<v-card> <v-card>
<v-card-title>设置学生出勤状态</v-card-title> <v-card-title>设置学生出勤状态</v-card-title>
<v-card-text><v-btn @click="cleanstudentslist">全勤</v-btn> <v-card-text>
<v-btn @click="cleanstudentslist">
全勤
</v-btn>
<v-container fluid> <v-container fluid>
<v-row> <v-row>
<v-col <v-col
@ -149,11 +187,17 @@
</v-card> </v-card>
</v-dialog> </v-dialog>
<v-dialog v-model="ServerSelectionDialog" width="500"> <v-dialog
v-model="ServerSelectionDialog"
width="500"
>
<ServerSelection /> <ServerSelection />
</v-dialog> </v-dialog>
<v-snackbar v-model="snackbar" :timeout="2000"> <v-snackbar
v-model="snackbar"
:timeout="2000"
>
{{ snackbarText }} {{ snackbarText }}
</v-snackbar> </v-snackbar>
</template> </template>