merge: sync main changes (3 commit + linter 改) into feat
包含: -9442046B-9 tables[0].typeId='1' (后端 FlowFormDataUtil 需要) -707c3fbmemory ssw-h5dev-flow v0.9 lint + dispatch 协议 -d22ac5fform-lint dead import + unused interface 修复 - linter 修改 3 文件 (form/index.ts / form/create.ts / workflow/list.ts) 合并后 feat 分支同时含 jxcj P0/P1 修复 + main 新改动
This commit is contained in:
commit
a68b62fd79
1 file changed
+13
@@ -1130,6 +1130,19 @@ export function buildFormCreateCommand(): Command {
|
||||
log.info(`★ 场景 A: columnList 留空, 去 formDesign Web 设计器第二步"列表设计"手动勾选字段`)
|
||||
}
|
||||
|
||||
// 2026-06-27 B-9 修复: tables 推导后, 自动给第一个表加 typeId='1' (主表标识)
|
||||
// 后端 jnpf/.../FlowFormDataUtil.java:831 查 typeId='1' 找主表, 找不到抛 MsgCode.COD001
|
||||
// ("集合条件过滤获得目标为空"). 即使用户 --tables 显式传了, 也可能漏 typeId.
|
||||
// 兜底 schema 已有 typeId='1' (line 124), 这里统一保护用户传入路径.
|
||||
// 用户 --tables 显式指定 typeId 不受影响 (先检查 !t.typeId).
|
||||
if (Array.isArray(tables) && tables.length > 0) {
|
||||
tables.forEach((t: any, idx: number) => {
|
||||
if (t && typeof t === 'object' && !t.typeId) {
|
||||
t.typeId = idx === 0 ? '1' : '0'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const body: Record<string, unknown> = {
|
||||
fullName: opts.fullName,
|
||||
enCode: opts.enCode,
|
||||
|
||||
Reference in new issue
Block a user