revert(module-management): 撤回表单设计「缺 N」徽标(阶段二)
并非所有启用字段都应出现在表单里(审计字段等常有意不布局), 「缺 N」口径对表单设计是假警报。revert 6bfa0d81,计划文档记录决策。 阶段一(tab 脏点)保留;查询配置的「缺 N」为使用者既有实现,不动。
This commit is contained in:
1 parent
2ab502b4a5
commit
08646c547f
4 files changed
+6
-50
No files matched your search
@@ -387,9 +387,6 @@ export function useModuleConfig(deps) {
|
||||
|
||||
const missingListCount = missingConfigCount('listConfig')
|
||||
const missingQueryCount = missingConfigCount('queryConfig')
|
||||
// 表单设计缺配:启用字段未被 editConfig 任何行引用(b_field_id 口径,
|
||||
// 不涉及布局细节)。editConfig 同时承载主表表单/子表表格两种编辑方式,口径通用
|
||||
const missingEditCount = missingConfigCount('editConfig')
|
||||
|
||||
return {
|
||||
hasModuleChanges,
|
||||
@@ -401,7 +398,6 @@ export function useModuleConfig(deps) {
|
||||
syncFields,
|
||||
missingListCount,
|
||||
missingQueryCount,
|
||||
missingEditCount,
|
||||
fillMissingConfigs,
|
||||
}
|
||||
}
|
||||
@@ -143,13 +143,7 @@ const configGroups = computed(() => {
|
||||
// 界面配置:表单设计(数据模块,含主表表单/子表表格两种编辑方式)→ 列表配置 → 查询配置
|
||||
const uiItems = []
|
||||
if (isDataModule.value) {
|
||||
// 表单设计缺配徽标:启用字段未布局的数量(口径与查询「缺 N」一致)
|
||||
uiItems.push({
|
||||
key: 'edit',
|
||||
label: '表单设计',
|
||||
icon: Pencil,
|
||||
badge: missingEditCount.value ? `缺 ${missingEditCount.value}` : '',
|
||||
})
|
||||
uiItems.push({ key: 'edit', label: '表单设计', icon: Pencil })
|
||||
}
|
||||
// 列表配置行在加载时自动补全全部启用字段,无「缺失」概念,不带徽标
|
||||
uiItems.push({ key: 'list', label: '列表配置', icon: List })
|
||||
@@ -324,7 +318,6 @@ const {
|
||||
syncFields,
|
||||
dirtySections,
|
||||
missingQueryCount,
|
||||
missingEditCount,
|
||||
fillMissingConfigs,
|
||||
} = useModuleConfig({
|
||||
moduleSelectedId,
|
||||
|
||||
Reference in new issue
Block a user