fix(dict): v0.11 字典项补 enabledMark 默认值 (与 web Form.vue Switch 对齐)
P1 修复(与 web Form.vue 一致): - DictionaryData 创建 body 加 enabledMark: 1 默认值 来源: web/views/sysData/dictionary/Form.vue:50-54 (Switch 组件 defaultValue: 1) 后端: DictionaryDataCrForm.java:14-15 字段有效标志 Integer P2 校准 (审计撤回): - 字典类型 category 字段: 后端 DictionaryTypeCrForm.java:34 存在此字段, 保留 原审计建议删除 — 经查 Java 实体有该字段, 不应删除 Co-Authored-By: Claude <[email protected]>
This commit is contained in:
1 parent
284b38694d
commit
78e80c93cf
1 file changed
+2
@@ -83,6 +83,8 @@ export function buildDictTypeCreateCommand(): Command {
|
||||
fullName: item.fullName,
|
||||
parentId: item.parentId || '0',
|
||||
sortCode: item.sortCode ?? 0,
|
||||
// v0.11 修复: web Form.vue:50-54 enabledMark Switch 默认 1
|
||||
enabledMark: (item as any).enabledMark ?? 1,
|
||||
}
|
||||
const r = await c.postJson<{ id: string }>('/system/DictionaryData', body)
|
||||
if (r.code === 200) { ok++; log.ok(` ✓ ${item.enCode} → ${item.fullName}`) }
|
||||
|
||||
Reference in new issue
Block a user