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:
257
转换产物-attach/schema/40fac6ff-403d-4024-ad99-60ae40017b60.json
Normal file
257
转换产物-attach/schema/40fac6ff-403d-4024-ad99-60ae40017b60.json
Normal file
@@ -0,0 +1,257 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "实体属性查看页面",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"id" : "eip4-edit-form",
|
||||
"title" : "",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"leftFixed" : 120
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "COLUMNNAME",
|
||||
"label" : "数据库列名",
|
||||
"required" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "DISPLAYNAME",
|
||||
"label" : "显示名称",
|
||||
"required" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ISENTITYDISPLAY",
|
||||
"label" : "是否实体显示列",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO",
|
||||
"value" : "0"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ISREADONLY",
|
||||
"label" : "是否只读",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO",
|
||||
"value" : "0"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "REFERENCEID",
|
||||
"label" : "属性类型",
|
||||
"required" : true,
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/73d099d4-4d44-4440-9006-43433a8b6ea5/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "COLUMNSQL",
|
||||
"label" : "虚拟字段SQL表达式",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "REFERENCEVALUE",
|
||||
"label" : "引用值",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/41d16b2f-48c7-4993-a1dc-2b864ff4e868/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ENUMERATETYPE",
|
||||
"label" : "枚举组",
|
||||
"type" : "tree-select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/template/7a5ee34a-137e-4ef8-971f-9b09ec764bce/tree",
|
||||
"searchable" : true,
|
||||
"onlyLeaf" : true
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ISIDENTIFIER",
|
||||
"label" : "是否唯一",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO",
|
||||
"value" : "0"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ISCOMBIDENTIFIER",
|
||||
"label" : "是否业务主键",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO",
|
||||
"value" : "0"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ISMANDATORY",
|
||||
"label" : "是否必填",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO",
|
||||
"value" : "0"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "FIELDLENGTH",
|
||||
"label" : "文本长度",
|
||||
"type" : "input-number",
|
||||
"precision" : 0,
|
||||
"step" : 1
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "DEFAULTVALUE",
|
||||
"label" : "默认值",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "VALUEMAX",
|
||||
"label" : "最大值",
|
||||
"type" : "input-number"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "VALUEMIN",
|
||||
"label" : "最小值",
|
||||
"type" : "input-number"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ENTITYDISPLAYSEQ",
|
||||
"label" : "排序",
|
||||
"required" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 0,
|
||||
"step" : 1
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "DESCRIPTION",
|
||||
"label" : "描述",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"name" : "SYS_ENTITYATTRIBUTE_ID",
|
||||
"label" : "主键",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "METAID",
|
||||
"label" : "元属性",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "ISKEY",
|
||||
"label" : "是否主键",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO",
|
||||
"value" : "0",
|
||||
"hidden" : true
|
||||
}, {
|
||||
"name" : "ENTITYID",
|
||||
"label" : "实体",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "FUNC",
|
||||
"label" : "取值函数",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "RULEID",
|
||||
"label" : "规则",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user