From 78e80c93cf3a84cfd77b5e35845a6b59770facba Mon Sep 17 00:00:00 2001 From: ssw Date: Mon, 22 Jun 2026 20:54:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(dict):=20v0.11=20=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E9=A1=B9=E8=A1=A5=20enabledMark=20=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=20(=E4=B8=8E=20web=20Form.vue=20Switch=20=E5=AF=B9=E9=BD=90)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/commands/dict/typecreate.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/dict/typecreate.ts b/src/commands/dict/typecreate.ts index 46c1375..872332b 100644 --- a/src/commands/dict/typecreate.ts +++ b/src/commands/dict/typecreate.ts @@ -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}`) }