feat: add grade appeal workflow
This commit is contained in:
1 parent
0bed55546c
commit
5db57d5cf4
14 files changed
+12449
-9
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import ArchiveDialog from '../components/ArchiveDialog.vue'
|
||||
import GradeAppealPanel from '../components/GradeAppealPanel.vue'
|
||||
import { computed, onMounted, reactive, ref, watch } from 'vue'
|
||||
import {
|
||||
Check,
|
||||
@@ -33,6 +34,7 @@ const tasks = ref<any[]>([])
|
||||
const selectedTask = ref<any | null>(null)
|
||||
const detail = ref<any | null>(null)
|
||||
const transcript = ref<any>({ student: null, records: [] })
|
||||
const gradeAppealPanel = ref<InstanceType<typeof GradeAppealPanel>>()
|
||||
const loading = ref(false)
|
||||
const detailLoading = ref(false)
|
||||
const createDialog = ref(false)
|
||||
@@ -760,6 +762,7 @@ onMounted(async () => {
|
||||
<b v-else>—</b>
|
||||
<small>绩点 {{ record.gradePoint ?? '—' }}</small>
|
||||
<span v-if="record.evaluationMethod === 'Percentage'" class="card-entry">查看成绩分析 <el-icon><ArrowRight /></el-icon></span>
|
||||
<el-button link type="warning" @click.stop="gradeAppealPanel?.openForRecord(record)">成绩有异议</el-button>
|
||||
</div>
|
||||
<section
|
||||
v-if="record.evaluationMethod === 'Percentage' && transcriptComponents(record).length"
|
||||
@@ -785,9 +788,11 @@ onMounted(async () => {
|
||||
</article>
|
||||
<el-empty v-if="!transcript.records.length" description="本学期暂无已发布成绩" />
|
||||
</section>
|
||||
<GradeAppealPanel ref="gradeAppealPanel" :student="true" :records="transcript.records" />
|
||||
</template>
|
||||
|
||||
<template v-else>
|
||||
<GradeAppealPanel :student="false" />
|
||||
<section class="grade-toolbar">
|
||||
<el-input
|
||||
v-model="taskKeyword"
|
||||
|
||||
Reference in new issue
Block a user