|
@@ -9,6 +9,7 @@ import { WEEKDAY_NAMES } from "@/constants/constants";
|
|
|
import OnlineExamResultList from "./OnlineExamResultList.vue";
|
|
|
import { useRoute } from "vue-router";
|
|
|
import { watch } from "vue";
|
|
|
+import { Refresh } from "@vicons/ionicons5";
|
|
|
|
|
|
const {
|
|
|
courses = [],
|
|
@@ -142,11 +143,16 @@ async function raceEnter(course: OnlineExam) {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+const emit = defineEmits<{ (e: "refresh"): void }>();
|
|
|
+function refreshPage() {
|
|
|
+ emit("refresh");
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
<div class="list">
|
|
|
- <div style="display: flex; margin-bottom: 10px">
|
|
|
+ <div style="display: flex; margin-bottom: 10px; align-items: center">
|
|
|
<n-button
|
|
|
type="success"
|
|
|
:class="selectExamState != 'EXAMING' && 'button-unselected'"
|
|
@@ -162,6 +168,11 @@ async function raceEnter(course: OnlineExam) {
|
|
|
>
|
|
|
已结束考试
|
|
|
</n-button>
|
|
|
+
|
|
|
+ <n-button strong secondary circle type="success" @click="refreshPage">
|
|
|
+ <template #icon>
|
|
|
+ <n-icon><Refresh /></n-icon> </template
|
|
|
+ ></n-button>
|
|
|
</div>
|
|
|
|
|
|
<table>
|