Skip to content

[Feature]: 新增Excel导入功能#503

Merged
luch1994 merged 2 commits intodidi:feature/peking-2025from
HELANYOURUO:feature/peking-2025
Jul 11, 2025
Merged

[Feature]: 新增Excel导入功能#503
luch1994 merged 2 commits intodidi:feature/peking-2025from
HELANYOURUO:feature/peking-2025

Conversation

@HELANYOURUO
Copy link
Contributor

@HELANYOURUO HELANYOURUO commented Jun 4, 2025

技术方案连接(Issue)

https://ocngxzrr34ln.feishu.cn/file/D76FbfAaBo7W9WxggZIc2Wrrnwe

改动原因

目前B端“Excel导入”功能未实现,创建问卷方式不够丰富

改动内容

实现了B端“Excel导入”的功能,B端用户可以在创建问卷时选择“Excel导入”方式创建问卷。主要地,在前端增加了“Excel导入”的界面web\src\management\pages\list\components\ExcelImport.vue,并在web\src\management\pages\list\index.vue中使用,此外在web\public\excel_survey_template.xlsx处存放Excel模板。在后端server\src\modules\survey\controllers\survey.controller.ts中新增API“POST /api/survey/uploadExcel”,并在server/src/modules/survey/dto/createSurvey.dto.ts中允许创建问卷的方式为“ExcelImport”。

@codecov
Copy link

codecov bot commented Jun 5, 2025

Codecov Report

Attention: Patch coverage is 6.00000% with 47 lines in your changes missing coverage. Please review.

Please upload report for BASE (feature/peking-2025@96e80ee). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...rc/modules/survey/controllers/survey.controller.ts 6.00% 43 Missing and 4 partials ⚠️
Additional details and impacted files
@@                  Coverage Diff                   @@
##             feature/peking-2025     #503   +/-   ##
======================================================
  Coverage                       ?   81.52%           
======================================================
  Files                          ?      142           
  Lines                          ?     3631           
  Branches                       ?      467           
======================================================
  Hits                           ?     2960           
  Misses                         ?      645           
  Partials                       ?       26           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@luch1994 luch1994 merged commit 0eb9220 into didi:feature/peking-2025 Jul 11, 2025
luch1994 added a commit that referenced this pull request Jul 31, 2025
Co-authored-by: luch <32321690+luch1994@users.noreply.github.com>
luch1994 added a commit that referenced this pull request Sep 4, 2025
Co-authored-by: luch <32321690+luch1994@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants