fix: 补齐人工费用分组表头背景色

This commit is contained in:
chenxi 2026-10-29 17:56:13 +08:00
parent 58eb62b7be
commit 9ba945b1ea
2 changed files with 13 additions and 0 deletions

View File

@ -221,22 +221,27 @@
}
.labor-expense-table thead tr:first-child th[data-labor-group="base"] {
background: var(--labor-group-base);
box-shadow: inset 0 3px 0 #548235;
}
.labor-expense-table thead tr:first-child th[data-labor-group="original"] {
background: var(--labor-group-original);
box-shadow: inset 0 3px 0 #7f7f7f;
}
.labor-expense-table thead tr:first-child th[data-labor-group="fund"] {
background: var(--labor-group-fund);
box-shadow: inset 0 3px 0 #70ad47;
}
.labor-expense-table thead tr:first-child th[data-labor-group="salary_parttime"] {
background: var(--labor-group-salary-parttime);
box-shadow: inset 0 3px 0 #ed7d31;
}
.labor-expense-table thead tr:first-child th[data-labor-group="settlement"] {
background: var(--labor-group-settlement);
box-shadow: inset 0 3px 0 #bf9000;
}

View File

@ -149,6 +149,14 @@ class LaborExpensePageAccessTest extends FeatureTestCase
'salary_parttime' => 'salary-parttime',
'settlement' => 'settlement',
] as $group => $variable) {
$this->assertMatchesRegularExpression(
'/\.labor-expense-table thead tr:first-child th\[data-labor-group="' .
$group .
'"\]\s*\{\s*background:\s*var\(--labor-group-' .
$variable .
'\);/s',
$html
);
$this->assertMatchesRegularExpression(
'/\.labor-expense-table thead tr:last-child th\[data-labor-group="' .
$group .