diff --git a/src/oj/submission/components/StatisticsPanel.vue b/src/oj/submission/components/StatisticsPanel.vue
index ef3eb6f..55ee057 100644
--- a/src/oj/submission/components/StatisticsPanel.vue
+++ b/src/oj/submission/components/StatisticsPanel.vue
@@ -59,20 +59,18 @@
班级完成度:{{ person.rate }}
-
- {{ unaccepted ? "隐藏没有完成的" : "显示没有完成的" }}
-
+
+
+ {{ unaccepted ? "隐藏没有完成的" : "显示没有完成的" }}
+
+ 复制名单
+
暂无数据统计
- 这 {{ listUnaccepted.length }} 位没有完成:
+ 这{{ listUnaccepted.length }}位没有完成:
{{ removeClassname(item) }}
@@ -91,6 +89,7 @@ interface Props {
const props = defineProps()
+const message = useMessage()
const options: SelectOption[] = [
{ label: "30分钟内", value: "minutes:30" },
{ label: "本节课内", value: "hours:1" },
@@ -160,4 +159,14 @@ function removeClassname(name: string) {
}
return name
}
+
+function copyUnaccepted() {
+ const grade = query.username.slice(2, 4)
+ const classname = query.username.slice(4, 5)
+ const prefix = `${grade}计算机${classname}班${query.problem}这道题有${listUnaccepted.value.length}人没有完成,分别是:`
+ const names = listUnaccepted.value.map(removeClassname).join("、")
+ const suffix = "。请以上同学尽快完成!"
+ console.log(prefix+names+suffix)
+ message.success("到 DevTool 中手动复制")
+}