fix(样办反馈): ①生成记录查询按钮与输入框对齐(修复登录页非scoped .form-group{margin-bottom:20px}全局泄漏,登录页样式收窄scoped+页面内显式重置) ②去重汇总移除数据权限分组摘要块(模型纯函数保留) ③分组筛选下拉显示真实分组名(解析器兼容Java groupName字段)

This commit is contained in:
2026-09-06 22:37:27 +08:00
parent c200fa4f32
commit 66082af52a
6 changed files with 25 additions and 81 deletions
@@ -18,3 +18,11 @@ test('align_history_empty_text', () => {
assert.equal(historyEmptyText({ hasFilter: false, total: 0 }), '暂无记录')
assert.equal(historyEmptyText({ hasFilter: false, total: 2 }), '')
})
test('align_history_form_group_no_global_margin_leak', () => {
// 修复按钮与筛选输入框不对齐:全局 .form-group{margin-bottom:20px} 由登录页非 scoped 样式泄漏;登录页样式收窄为 scoped,页面内显式重置。
const login = readSource('src/pages/login/LoginPage.vue')
assert.match(login, /<style scoped>/, '登录页样式 scoped,不再全局泄漏 .form-group')
const page = readSource('src/pages/records/RecordsHistoryPage.vue')
assert.match(page, /\.form-group \{[^}]*margin-bottom: 0/, '页面内 form-group 显式重置 margin')
})