-
-
-
{{ 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(
- /