fix: 统一人工费用分组表头配色 (#766)
This commit is contained in:
parent
1e177042d3
commit
58eb62b7be
@ -249,6 +249,26 @@
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.labor-expense-table thead tr:last-child th[data-labor-group="base"] {
|
||||
background: var(--labor-group-base);
|
||||
}
|
||||
|
||||
.labor-expense-table thead tr:last-child th[data-labor-group="original"] {
|
||||
background: var(--labor-group-original);
|
||||
}
|
||||
|
||||
.labor-expense-table thead tr:last-child th[data-labor-group="fund"] {
|
||||
background: var(--labor-group-fund);
|
||||
}
|
||||
|
||||
.labor-expense-table thead tr:last-child th[data-labor-group="salary_parttime"] {
|
||||
background: var(--labor-group-salary-parttime);
|
||||
}
|
||||
|
||||
.labor-expense-table thead tr:last-child th[data-labor-group="settlement"] {
|
||||
background: var(--labor-group-settlement);
|
||||
}
|
||||
|
||||
.labor-expense-table thead th[data-labor-column="A"],
|
||||
.labor-expense-table tbody td[data-labor-column="A"] {
|
||||
min-width: 4rem;
|
||||
|
||||
@ -142,6 +142,22 @@ class LaborExpensePageAccessTest extends FeatureTestCase
|
||||
"const fixedStartColumns = ['A', 'B', 'C', 'D', 'E'];",
|
||||
$html
|
||||
);
|
||||
foreach ([
|
||||
'base' => 'base',
|
||||
'original' => 'original',
|
||||
'fund' => 'fund',
|
||||
'salary_parttime' => 'salary-parttime',
|
||||
'settlement' => 'settlement',
|
||||
] as $group => $variable) {
|
||||
$this->assertMatchesRegularExpression(
|
||||
'/\.labor-expense-table thead tr:last-child th\[data-labor-group="' .
|
||||
$group .
|
||||
'"\]\s*\{\s*background:\s*var\(--labor-group-' .
|
||||
$variable .
|
||||
'\);/s',
|
||||
$html
|
||||
);
|
||||
}
|
||||
foreach ([
|
||||
'B' => 'base',
|
||||
'J' => 'original',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user