fix(admin): 菜单管理列表去掉权限标识/路由列并自适应列宽(编辑弹窗仍保留字段)

This commit is contained in:
2026-09-05 21:32:56 +08:00
parent 85f565bd82
commit 3902acafb9
2 changed files with 10 additions and 10 deletions
+5 -3
View File
@@ -13,10 +13,12 @@ test('test_task_252_menus_list_normal_primary_path', () => {
})
test('test_task_252_menus_list_normal_variant_input', () => {
// 正常变体:保留权限标识/路由/排序列,便于运维;删除确认文案含菜单名。
// 正常变体:权限标识/路由不作为列表列展示(运维从对话框维护),列宽自适应;删除确认含菜单名。
const page = readSource('src/pages/account/MenusPage.vue')
assert.match(page, /权限标识/, '需有权限标识列')
assert.match(page, /routePath/, '需有路由列')
assert.equal(/<el-table-column[^>]*prop="columnKey"/.test(page), false, '权限标识不应作为列表列')
assert.equal(/<el-table-column[^>]*prop="routePath"/.test(page), false, '路由不应作为列表列')
assert.match(page, /menuForm\.columnKey/, '权限标识字段仍在编辑表单内')
assert.match(page, /menuForm\.routePath/, '路由字段仍在编辑表单内')
assert.match(page, /确定删除菜单/, '删除确认需含“确定删除菜单”')
assert.match(page, /menuDeleteReason/, '删除需过前置校验')
})