Files
eip4-platform/转换产物-attach/schema/e129406e-b00b-43cb-8623-e7de859789a0.json
zhengwr 8fe377b0c8 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>
2026-06-20 15:16:30 +08:00

257 lines
6.3 KiB
JSON

{
"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,
"hidden" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO",
"value" : "0"
}, {
"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" : [ ]
}
}