feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg, 保留 13-arg 兼容构造);新增 PageBlueprintChild record。 PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架, 新增/编辑表单内联 house-style input-table 子表(name=listColumn, quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。 validate 接受 master-detail 并要求 child 非空/childTable/listColumn 非空/fields 非空。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
143
转换产物-attach/schema/12491103-fe4a-4bd3-8b4e-568be807d606.json
Normal file
143
转换产物-attach/schema/12491103-fe4a-4bd3-8b4e-568be807d606.json
Normal file
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "实体查看页面",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"id" : "eip4-edit-form",
|
||||
"title" : "",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"leftFixed" : 120
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "tabs",
|
||||
"tabs" : [ {
|
||||
"title" : "实体",
|
||||
"body" : [ {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "NAME",
|
||||
"label" : "名称",
|
||||
"required" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "TABLENAME",
|
||||
"label" : "数据库表名",
|
||||
"required" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ISVIEW",
|
||||
"label" : "是否视图",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO",
|
||||
"value" : "0"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ACCESSLEVEL",
|
||||
"label" : "访问级别",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/ACCLEVEL",
|
||||
"value" : "3"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "TABLETYPE",
|
||||
"label" : "表类型",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/TABLETYPE",
|
||||
"value" : "0"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ENTITYTYPE",
|
||||
"label" : "实体模块分类",
|
||||
"required" : true,
|
||||
"type" : "tree-select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/template/e6b69e2d-a8ab-49e9-8d79-e2bc4f2f45fd/tree",
|
||||
"searchable" : true
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ISDELETEABLE",
|
||||
"label" : "该表是否可删除",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO",
|
||||
"value" : "0"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "DESCRIPTION",
|
||||
"label" : "描述",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ISCHANGELOG",
|
||||
"label" : "是否记录日志",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO",
|
||||
"value" : "0"
|
||||
} ]
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"title" : "实体属性",
|
||||
"body" : [ {
|
||||
"name" : "ATTRIBUTES",
|
||||
"label" : "属性子表",
|
||||
"type" : "input-table",
|
||||
"id" : "eg-ATTRIBUTES",
|
||||
"addable" : true,
|
||||
"removable" : true,
|
||||
"staticOn" : "${__readonly}",
|
||||
"columns" : [ ],
|
||||
"needConfirm" : false
|
||||
}, {
|
||||
"name" : "SYS_ENTITY_ID",
|
||||
"label" : "SYS_Entity_ID",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user