只移除本部门直属人数标签及无用样式,保留总人数独立列、部门展开、直属人员、兼属及统计值。 验证:标签不再出现的回归先红后绿,11项相关测试及类型检查通过。完整门禁、候选与上线验收待执行。
This commit is contained in:
@@ -35,7 +35,8 @@ it('shows direct people beneath each expanded department with a multi-department
|
||||
expect(html.match(/>Fixture Alpha</g)).toHaveLength(2)
|
||||
expect(html.match(/>Fixture Beta</g)).toHaveLength(1)
|
||||
expect(html.match(/>兼属 2 部门</g)).toHaveLength(2)
|
||||
expect(html).toContain('本部门直属 2 人')
|
||||
expect(html).not.toContain('本部门直属')
|
||||
expect(html).not.toContain('qa-department-direct')
|
||||
expect(html).toContain('Fixture Root/Fixture Child')
|
||||
expect(html).toContain('未命名人员')
|
||||
expect(html).toContain('<summary')
|
||||
|
||||
@@ -170,7 +170,6 @@ export function DepartmentStatisticsView(p: DepartmentStatisticsViewProps) {
|
||||
<span className="qa-department-label">
|
||||
{d.name}
|
||||
{label ? <small className="qa-department-region">{label}</small> : null}
|
||||
<small className="qa-department-direct">本部门直属 {members.length} 人</small>
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@@ -268,13 +268,6 @@
|
||||
font-weight: 400;
|
||||
color: #8190a4;
|
||||
}
|
||||
.qa-department-direct {
|
||||
display: inline-block;
|
||||
margin-left: 9px;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
color: #718096;
|
||||
}
|
||||
.qa-department-person {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
|
||||
Reference in New Issue
Block a user