From f3136cd9ad1a6b4363157ce3df26eb63ea1f9178 Mon Sep 17 00:00:00 2001 From: rjl <98n9@163.com> Date: Wed, 11 Feb 2026 17:27:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E9=A2=98=E7=9B=AE?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=9C=8D=E5=8A=A1=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AB=AF=E7=AD=94=E9=A2=98=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 question-importer 服务,支持从 JSON 文件批量导入题目到题库 - 重构用户端答题流程,整合抽题、答题、结果分析页面状态管理 - 将题目分类从 UI 模板类型切换为业务分类(question_category_name) - 在题库管理页面支持题目批量选择和删除功能 - 优化用户端组别选择,增加“已结束”状态提示和禁用逻辑 - 修复题目新增/更新 API 请求参数格式问题 - 为富文本编辑器配置排除不必要的工具栏按键 --- .../src/components/common/wang-editor.vue | 16 +- apps/admin/src/enum/business.ts | 8 + apps/admin/src/service/api/game.ts | 36 ++ apps/admin/src/service/api/question.ts | 23 +- apps/admin/src/service/api/result.ts | 10 + .../src/store/modules/activityinfo/index.ts | 8 + .../src/store/modules/competition/index.ts | 44 +- apps/admin/src/typings/api/Competition.d.ts | 66 +- .../modules/QuestionConfig.vue | 3 +- .../modules/QuestionConfigCard.vue | 5 +- .../question-store/modules/CategoryTree.vue | 8 +- .../question-store/modules/QuestionList.vue | 115 +++- apps/admin/src/views/results/index.vue | 41 +- apps/admin/src/views/user/analysis/index.vue | 126 +++- apps/admin/src/views/user/cover/index.vue | 53 +- apps/admin/src/views/user/draw/index.vue | 86 ++- apps/admin/src/views/user/game/index.vue | 58 +- apps/admin/src/views/user/groups/index.vue | 49 +- .../views/user/modules/QuestionRenderer.vue | 192 +++--- apps/admin/src/views/user/rules/index.vue | 10 +- apps/admin/src/views/user/teams/index.vue | 8 +- apps/admin/src/views/user/types.ts | 14 + apps/question-importer/asset/反义词.json | 340 +++++++++++ apps/question-importer/asset/拼音听写.json | 428 +++++++++++++ apps/question-importer/asset/拼音听写2.json | 460 ++++++++++++++ .../asset/根据偏旁写汉字.json | 468 +++++++++++++++ apps/question-importer/asset/词语听写.json | 452 ++++++++++++++ apps/question-importer/asset/诗词听写.json | 460 ++++++++++++++ apps/question-importer/package.json | 27 + apps/question-importer/src/clean_ciyu.ts | 44 ++ apps/question-importer/src/index.ts | 141 +++++ apps/question-importer/tsconfig.json | 11 + package.json | 3 + pnpm-lock.yaml | 566 +++++++++++++++++- 34 files changed, 4154 insertions(+), 225 deletions(-) create mode 100644 apps/admin/src/service/api/result.ts create mode 100644 apps/question-importer/asset/反义词.json create mode 100644 apps/question-importer/asset/拼音听写.json create mode 100644 apps/question-importer/asset/拼音听写2.json create mode 100644 apps/question-importer/asset/根据偏旁写汉字.json create mode 100644 apps/question-importer/asset/词语听写.json create mode 100644 apps/question-importer/asset/诗词听写.json create mode 100644 apps/question-importer/package.json create mode 100644 apps/question-importer/src/clean_ciyu.ts create mode 100644 apps/question-importer/src/index.ts create mode 100644 apps/question-importer/tsconfig.json diff --git a/apps/admin/src/components/common/wang-editor.vue b/apps/admin/src/components/common/wang-editor.vue index 5d99a37..837a401 100644 --- a/apps/admin/src/components/common/wang-editor.vue +++ b/apps/admin/src/components/common/wang-editor.vue @@ -1,6 +1,6 @@