- -
-

{{ currentMenuTitle }}

-
- - 上传流水 - - - 查看报告 - - - 拉取本行信息 - - - 征信导入 - -
-
-
{{ isProjectArchived ? "项目已归档,暂不可上传或拉取数据。" : "项目正在进行银行流水打标,暂不可上传或拉取数据。" }}
@@ -50,6 +10,41 @@
刷新 +
+ + 上传流水 + + + 拉取本行信息 + + + 征信导入 + + + 查看报告 + +
@@ -1022,38 +1017,6 @@ export default { // 主内容区 .main-content { - .content-header { - display: flex; - justify-content: space-between; - align-items: flex-start; - gap: 16px; - margin-bottom: 16px; - padding: 20px 24px; - border: 1px solid #ebeef5; - border-radius: 12px; - background: linear-gradient(135deg, #fffaf5 0%, #ffffff 58%, #fff4ec 100%); - box-shadow: 0 10px 24px rgba(140, 76, 38, 0.08); - - .content-title { - margin: 0; - font-size: 20px; - font-weight: 600; - color: #303133; - line-height: 32px; - } - - .header-actions { - display: flex; - flex-wrap: wrap; - justify-content: flex-end; - gap: 12px; - - .el-button { - min-width: 104px; - } - } - } - .tagging-lock-tip { margin-bottom: 16px; padding: 10px 14px; @@ -1075,11 +1038,22 @@ export default { .list-toolbar { display: flex; - justify-content: flex-end; + justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f2f5; + + .toolbar-actions { + display: flex; + flex-wrap: wrap; + justify-content: flex-end; + gap: 12px; + + .el-button { + min-width: 104px; + } + } } ::v-deep .el-table { @@ -1089,8 +1063,6 @@ export default { } ::v-deep .el-table th { - background: #faf6f2; - color: #5f4b3a; font-weight: 600; } } @@ -1275,8 +1247,8 @@ export default { // 响应式 @media (max-width: 1200px) { - .main-content .content-header { - padding: 18px 20px; + .file-list-section .list-toolbar .toolbar-actions { + gap: 10px; } } @@ -1289,21 +1261,15 @@ export default { margin-bottom: 16px; } - .content-header { - flex-direction: column; - align-items: flex-start; - gap: 12px; - - .header-actions { - width: 100%; - justify-content: flex-start; - } - } - .file-list-section .list-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; + + .toolbar-actions { + width: 100%; + justify-content: flex-start; + } } .pull-bank-file-panel { diff --git a/ruoyi-ui/tests/unit/upload-data-file-list-table.test.js b/ruoyi-ui/tests/unit/upload-data-file-list-table.test.js index 37cb3ecc..69afd347 100644 --- a/ruoyi-ui/tests/unit/upload-data-file-list-table.test.js +++ b/ruoyi-ui/tests/unit/upload-data-file-list-table.test.js @@ -22,4 +22,16 @@ assert( "上传数据文件列表表格不应再启用斑马纹" ); +const tableHeaderStyleMatch = source.match( + /::v-deep \.el-table th\s*\{([^}]*)\}/ +); + +assert(tableHeaderStyleMatch, "未找到文件上传列表表头样式"); +assert( + /font-weight:\s*600;/.test(tableHeaderStyleMatch[1]) && + !/background:/.test(tableHeaderStyleMatch[1]) && + !/color:/.test(tableHeaderStyleMatch[1]), + "文件上传列表表头应移除自定义颜色,仅保留基础字重" +); + console.log("upload-data-file-list-table test passed"); diff --git a/ruoyi-ui/tests/unit/upload-data-header-import-button.test.js b/ruoyi-ui/tests/unit/upload-data-header-import-button.test.js index b947e929..19cd0161 100644 --- a/ruoyi-ui/tests/unit/upload-data-header-import-button.test.js +++ b/ruoyi-ui/tests/unit/upload-data-header-import-button.test.js @@ -9,17 +9,33 @@ const componentPath = path.resolve( const source = fs.readFileSync(componentPath, "utf8"); assert( - /
[\s\S]*?@click="handleOpenBatchUploadDialog"[\s\S]*?>\s*上传流水\s*<\/el-button>[\s\S]*?@click="handleViewReport"[\s\S]*?>\s*查看报告\s*<\/el-button>[\s\S]*?@click="handleFetchBankInfo"[\s\S]*?>\s*拉取本行信息\s*<\/el-button>[\s\S]*?@click="handleGoCreditInfoPage"[\s\S]*?>\s*征信导入\s*<\/el-button>/.test( + /
[\s\S]*?
[\s\S]*?@click="handleOpenBatchUploadDialog"[\s\S]*?>\s*上传流水\s*<\/el-button>[\s\S]*?@click="handleFetchBankInfo"[\s\S]*?>\s*拉取本行信息\s*<\/el-button>[\s\S]*?@click="handleGoCreditInfoPage"[\s\S]*?>\s*征信导入\s*<\/el-button>[\s\S]*?@click="handleViewReport"[\s\S]*?>\s*查看报告\s*<\/el-button>/.test( source ), - "页面右上角按钮顺序应为上传流水、查看报告、拉取本行信息、征信导入" + "文件上传列表右上角按钮顺序应为上传流水、拉取本行信息、征信导入、查看报告" ); assert( - /\s*上传流水\s*<\/el-button>/.test( + /\s*查看报告\s*<\/el-button>/.test( source ), - "上传流水按钮应为头部唯一主按钮" + "查看报告按钮应为头部唯一重要按钮" +); + +assert( + /\s*上传流水\s*<\/el-button>/.test( + source + ) && + !/\s*上传流水\s*<\/el-button>/.test( + source + ), + "上传流水按钮应为默认样式" +); + +assert( + !/class="content-header"/.test(source) && + !/\.content-header\s*\{/.test(source), + "页面标题卡片和相关样式应已移除" ); assert(