From c59e31eeb2f8ec535b17eec7f49e39489473b7b0 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 13 Oct 2026 14:04:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=90=8E=E5=8F=B0=E6=A0=87=E7=AD=BE):=20?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E9=A1=B5=E6=94=B9=E6=88=90=E7=9F=A5=E8=AF=86?= =?UTF-8?q?=E7=82=B9=E3=80=81=E4=B8=BB=E9=A2=98=E5=B7=A6=E5=8F=B3=E4=B8=A4?= =?UTF-8?q?=E6=A0=8F=EF=BC=8C=E4=B8=80=E7=9C=BC=E7=9C=8B=E5=87=BA=E6=AF=8F?= =?UTF-8?q?=E4=B8=AA=E6=A0=87=E7=AD=BE=E6=8C=82=E4=BA=86=E5=87=A0=E9=81=93?= =?UTF-8?q?=E9=A2=98=EF=BC=9B=E6=94=B9=E5=90=8D=E3=80=81=E6=8D=A2=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E3=80=81=E5=88=A0=E9=99=A4=E6=94=B6=E8=BF=9B=20?= =?UTF-8?q?=E2=8B=AF=EF=BC=8C=E6=B2=A1=E5=BD=92=E7=B1=BB=E7=9A=84=E5=8D=95?= =?UTF-8?q?=E7=8B=AC=E6=94=BE=E6=9C=80=E4=B8=8A=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- .../problem/components/TagProblemsModal.vue | 23 +- apps/web/src/admin/problem/tags.vue | 357 +++++++++++------- 2 files changed, 229 insertions(+), 151 deletions(-) diff --git a/apps/web/src/admin/problem/components/TagProblemsModal.vue b/apps/web/src/admin/problem/components/TagProblemsModal.vue index 9f9bf99..84c3be6 100644 --- a/apps/web/src/admin/problem/components/TagProblemsModal.vue +++ b/apps/web/src/admin/problem/components/TagProblemsModal.vue @@ -26,29 +26,28 @@ const limit = ref(10) const keyword = ref("") const columns: DataTableColumn[] = [ - { title: "显示编号", key: "_id", width: 100 }, + { title: "题号", key: "_id", width: 90 }, { - title: "标题", + title: "题目", key: "title", minWidth: 200, - render: (row) => - h(NButton, { text: true, type: "primary", onClick: () => goEdit(row) }, () => row.title), + render: (row) => h(NButton, { text: true, onClick: () => goEdit(row) }, () => row.title), }, { - title: "可见", + title: "学生看得到", key: "visible", - width: 80, + width: 100, render: (row) => - h(NTag, { size: "small", type: row.visible ? "success" : "default" }, () => - row.visible ? "公开" : "隐藏", + h(NTag, { size: "small", bordered: false, type: row.visible ? "success" : "default" }, () => + row.visible ? "看得到" : "藏着", ), }, { - title: "选项", + title: "", key: "actions", - width: 110, + width: 90, render: (row) => - h(NButton, { size: "small", type: "error", onClick: () => removeTag(row) }, () => "移除标签"), + h(NButton, { size: "small", quaternary: true, onClick: () => removeTag(row) }, () => "摘掉"), }, ] @@ -119,7 +118,7 @@ watchDebounced( diff --git a/apps/web/src/admin/problem/tags.vue b/apps/web/src/admin/problem/tags.vue index 0ab32be..93f0791 100644 --- a/apps/web/src/admin/problem/tags.vue +++ b/apps/web/src/admin/problem/tags.vue @@ -1,36 +1,21 @@