diff --git a/docs/reports/implementation/2026-03-23-project-upload-data-card-simplify-implementation.md b/docs/reports/implementation/2026-03-23-project-upload-data-card-simplify-implementation.md new file mode 100644 index 00000000..a8a62661 --- /dev/null +++ b/docs/reports/implementation/2026-03-23-project-upload-data-card-simplify-implementation.md @@ -0,0 +1,34 @@ +# 上传数据页卡片精简实施记录 + +## 变更时间 + +- 2026-03-23 + +## 变更内容 + +- 调整项目详情上传数据页右上角操作区,新增“导入导入”按钮,按钮直接复用现有流水批量上传弹窗入口。 +- 删除上传区中的“征信导入”和“名单库选择”卡片,仅保留“流水导入”卡片。 +- 调整上传卡片区布局,使单张“流水导入”卡片在上传区域内居中展示。 +- 将“流水导入”卡片宽度由 `320px` 调整为 `420px`,同时保留 `max-width: 100%` 以兼容窄屏。 +- 调整头部按钮视觉层级,将“查看报告”设为重要按钮,“征信导入”调整为默认按钮样式。 +- 清理与已删除卡片对应的前端入口代码,避免保留无效页面分支。 + +## 涉及文件 + +- `ruoyi-ui/src/views/ccdiProject/components/detail/UploadData.vue` +- `ruoyi-ui/tests/unit/upload-data-header-import-button.test.js` +- `ruoyi-ui/tests/unit/upload-data-disabled-cards.test.js` + +## 验证命令 + +- `node ruoyi-ui/tests/unit/upload-data-header-import-button.test.js` +- `node ruoyi-ui/tests/unit/upload-data-disabled-cards.test.js` +- `node ruoyi-ui/tests/unit/upload-data-batch-upload.test.js` +- `node ruoyi-ui/tests/unit/upload-data-pull-bank-info-dialog-layout.test.js` + +## 验证结果 + +- `node ruoyi-ui/tests/unit/upload-data-header-import-button.test.js`:通过 +- `node ruoyi-ui/tests/unit/upload-data-disabled-cards.test.js`:通过 +- `node ruoyi-ui/tests/unit/upload-data-batch-upload.test.js`:通过 +- `node ruoyi-ui/tests/unit/upload-data-pull-bank-info-dialog-layout.test.js`:通过 diff --git a/ruoyi-ui/src/views/ccdiProject/components/detail/UploadData.vue b/ruoyi-ui/src/views/ccdiProject/components/detail/UploadData.vue index fe64e0a9..a4f523dd 100644 --- a/ruoyi-ui/src/views/ccdiProject/components/detail/UploadData.vue +++ b/ruoyi-ui/src/views/ccdiProject/components/detail/UploadData.vue @@ -9,10 +9,11 @@ - 生成报告 + 查看报告 拉取本行信息 + + 征信导入 + @@ -158,11 +167,10 @@ --> - @@ -172,53 +180,25 @@ action="#" :disabled="isProjectTagging" :auto-upload="false" - :on-change="handleFileChange" - :file-list="fileList" + :on-change="handleCreditFileChange" + :file-list="creditFileList" >
将文件拖到此处,或点击上传
- 支持 {{ uploadFileTypes }} 格式文件 + 支持 HTML 格式文件
- 取消 + 取消 确定 - -
- - - - - - - - - - - - - - - - - - - - 取消 - 确定 + 确定 + @@ -375,11 +355,9 @@