diff --git a/src/admin/announcement/components/Actions.vue b/src/admin/announcement/components/Actions.vue
index bce097c..8732bed 100644
--- a/src/admin/announcement/components/Actions.vue
+++ b/src/admin/announcement/components/Actions.vue
@@ -25,7 +25,7 @@ async function handleDelete() {
-
+
编辑
@@ -35,6 +35,6 @@ async function handleDelete() {
确定删除这条公告吗?
-
+
diff --git a/src/admin/announcement/detail.vue b/src/admin/announcement/detail.vue
index 748baaa..b1b7d43 100644
--- a/src/admin/announcement/detail.vue
+++ b/src/admin/announcement/detail.vue
@@ -98,9 +98,9 @@ onMounted(init)
v-model:value="announcement.content"
:min-height="200"
/>
-
+
保存
-
+
diff --git a/src/admin/contest/detail.vue b/src/admin/contest/detail.vue
index 15fa2b1..d39076f 100644
--- a/src/admin/contest/detail.vue
+++ b/src/admin/contest/detail.vue
@@ -127,9 +127,9 @@ onMounted(getContestDetail)
v-model:value="contest.description"
:min-height="200"
/>
-
+
保存
-
+
diff --git a/src/admin/problem/detail.vue b/src/admin/problem/detail.vue
index d178449..e0190c0 100644
--- a/src/admin/problem/detail.vue
+++ b/src/admin/problem/detail.vue
@@ -424,7 +424,7 @@ watch(
title="输出的描述"
/>
-
+
测试样例 {{ index + 1 }}
删除 {{ index + 1 }}
-
+
-
+
输入样例
-
+
-
+
输出样例
-
+
@@ -493,7 +493,7 @@ watch(
type="info"
>
-
+
测试组编号 {{ problem.test_case_id.slice(0, 12) }} 共有
{{ problem.test_case_score.length }}
@@ -508,21 +508,21 @@ watch(
>
下载
-
+
-
+
-
+
@@ -543,22 +543,24 @@ watch(
-
+
温馨提醒
【测试用例】最好要有10个,要考虑边界情况,不要跟【测试样例】一模一样
-
- 上传测试用例
-
+
+
+ 上传测试用例
+
+
提交
-
+
diff --git a/src/admin/problem/list.vue b/src/admin/problem/list.vue
index 63e5b99..13ac67a 100644
--- a/src/admin/problem/list.vue
+++ b/src/admin/problem/list.vue
@@ -119,9 +119,9 @@ watchDebounced(() => query.keyword, listProblems, {
-
+
{{ title }}
-
+
新建比赛题目
@@ -132,9 +132,11 @@ watchDebounced(() => query.keyword, listProblems, {
>
从题库中选择
-
-
-
+
+
+
+
+
{
-
+
网站设置
保存
-
+
@@ -185,20 +185,20 @@ onMounted(() => {
-
-
+
+
是否允许注册
-
-
+
+
显示全部题目的提交
-
-
+
+
-
+
判题服务器
{
>
删除无效服务器
-
+
接口凭证 {{ token }}
@@ -222,12 +222,12 @@ onMounted(() => {
-
+
无效的测试用例
deleteTestcase()">
全部删除
-
+
-
+
亲爱的管理员:{{ userStore.user?.username }}
-
-
+
+
总用户数:{{ userCount }}
@@ -97,17 +97,19 @@ watch(
近期比赛:{{ contestCount }}
-
-
+
+
我猜你要:
新题目
新比赛
-
+
+ />
+
用户排名
-
+
diff --git a/src/admin/user/components/Actions.vue b/src/admin/user/components/Actions.vue
index f871262..4b301d3 100644
--- a/src/admin/user/components/Actions.vue
+++ b/src/admin/user/components/Actions.vue
@@ -19,7 +19,7 @@ async function banUser() {
}
-
+
确定删除这个用户吗?删除后无法恢复!
-
+
diff --git a/src/admin/user/components/Name.vue b/src/admin/user/components/Name.vue
index 7dd0325..96b9dd9 100644
--- a/src/admin/user/components/Name.vue
+++ b/src/admin/user/components/Name.vue
@@ -9,7 +9,7 @@ const props = defineProps()
const isAdmin = computed(() => props.user.admin_type !== "Regular User")
-
+
封号中
@@ -21,5 +21,5 @@ const isAdmin = computed(() => props.user.admin_type !== "Regular User")
{{ getUserRole(props.user.admin_type).tagString }}
{{ props.user.username }}
-
+
diff --git a/src/admin/user/generate.vue b/src/admin/user/generate.vue
index dccd4b8..c2c5f70 100644
--- a/src/admin/user/generate.vue
+++ b/src/admin/user/generate.vue
@@ -76,11 +76,11 @@ function handleAll() {
-
-
+
+
前面带上 ks
-
+
-
+
-
+
让我康康
上传用户
一键三连
-
+
diff --git a/src/admin/user/list.vue b/src/admin/user/list.vue
index 53ed82f..e9669b0 100644
--- a/src/admin/user/list.vue
+++ b/src/admin/user/list.vue
@@ -29,7 +29,7 @@ const columns: DataTableColumn[] = [
{
title: "用户名",
key: "username",
- width: 180,
+ width: 200,
render: (row) => h(Name, { user: row }),
},
{
@@ -155,12 +155,12 @@ watch(query, listUsers, { deep: true })
-
-
+
+
用户列表
新建用户
-
-
+
+
确定删除选中的用户吗?删除后无法恢复!
-
-
-
+
+
+
+
+
封号
-
+
取消
保存
-
+
diff --git a/src/oj/api.ts b/src/oj/api.ts
index e538d8d..e73ffcf 100644
--- a/src/oj/api.ts
+++ b/src/oj/api.ts
@@ -209,6 +209,7 @@ export function getCommentStatistics(problemID: number) {
return http.get("comment/statistics", { params: { problem_id: problemID } })
}
+// TODO: 这个API有问题
export function refreshUserProblemDisplayIds() {
return http.get("profile/fresh_display_id")
}
diff --git a/src/oj/contest/components/ContestMenu.vue b/src/oj/contest/components/ContestMenu.vue
index 24e4a85..5fa2fb3 100644
--- a/src/oj/contest/components/ContestMenu.vue
+++ b/src/oj/contest/components/ContestMenu.vue
@@ -32,7 +32,7 @@ const options: DropdownOption[] = [
-
+
比赛题目
@@ -45,7 +45,7 @@ const options: DropdownOption[] = [
比赛排名
-
+
菜单
diff --git a/src/oj/contest/detail.vue b/src/oj/contest/detail.vue
index 09be298..3bd3ca7 100644
--- a/src/oj/contest/detail.vue
+++ b/src/oj/contest/detail.vue
@@ -30,9 +30,12 @@ const passwordFormVisible = computed(
-
-
-
+
+
+
+
+ {{ contestStore.countdown }}
+
{{ contestStore.contest.title }}
-
- {{ contestStore.countdown }}
-
-
-
+
+
-
-
+
+
-
+
diff --git a/src/oj/problem/components/Form.vue b/src/oj/problem/components/Form.vue
index aa24281..721b7a8 100644
--- a/src/oj/problem/components/Form.vue
+++ b/src/oj/problem/components/Form.vue
@@ -87,7 +87,7 @@ function gotoTestCat() {
-
+
编辑
-
+