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:
119
转换产物-attach/schema/c1590e17-6719-477a-a9dd-8b09dfb2d86b.json
Normal file
119
转换产物-attach/schema/c1590e17-6719-477a-a9dd-8b09dfb2d86b.json
Normal file
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "用户组角色分配编辑页面",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"id" : "eip4-edit-form",
|
||||
"title" : "",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"leftFixed" : 120
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "group",
|
||||
"body" : [ {
|
||||
"name" : "SYS_USERGROUP_ID",
|
||||
"label" : "用户组",
|
||||
"type" : "static",
|
||||
"tpl" : "${SYS_USERGROUP_ID_DISPLAY__ ? SYS_USERGROUP_ID_DISPLAY__ : (NAME ? NAME : SYS_USERGROUP_ID)}"
|
||||
} ]
|
||||
}, {
|
||||
"type" : "flex",
|
||||
"justify" : "flex-start",
|
||||
"alignItems" : "center",
|
||||
"style" : {
|
||||
"paddingLeft" : "120px",
|
||||
"marginBottom" : "4px"
|
||||
},
|
||||
"items" : [ {
|
||||
"name" : "ROLES",
|
||||
"label" : "选择",
|
||||
"type" : "button",
|
||||
"level" : "primary",
|
||||
"actionType" : "dialog",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"id" : "egadddlgROLES",
|
||||
"title" : "角色",
|
||||
"size" : "lg",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/picker/ab08aab4-5874-4f70-ad7b-8d59bd21cc66/list",
|
||||
"mode" : "table",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"multiple" : true,
|
||||
"keepItemSelectionOnPageChange" : true,
|
||||
"primaryField" : "_id",
|
||||
"labelField" : "_label",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"placeholder" : "输入关键字搜索",
|
||||
"name" : "q"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ],
|
||||
"onEvent" : {
|
||||
"selectedChange" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "egadddlgROLES",
|
||||
"args" : {
|
||||
"value" : {
|
||||
"__egpicked" : "${event.data.selectedItems}"
|
||||
}
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "取消",
|
||||
"actionType" : "close"
|
||||
}, {
|
||||
"type" : "button",
|
||||
"label" : "确定",
|
||||
"level" : "primary",
|
||||
"onEvent" : {
|
||||
"click" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "addItem",
|
||||
"componentId" : "eg-ROLELIST",
|
||||
"args" : {
|
||||
"item" : "${ARRAYMAP(__egpicked, item => ({...item}))}"
|
||||
}
|
||||
}, {
|
||||
"actionType" : "closeDialog"
|
||||
} ]
|
||||
}
|
||||
}
|
||||
} ]
|
||||
},
|
||||
"hiddenOn" : "${__readonly}"
|
||||
} ]
|
||||
}, {
|
||||
"name" : "ROLELIST",
|
||||
"label" : "角色列表",
|
||||
"type" : "input-table",
|
||||
"id" : "eg-ROLELIST",
|
||||
"addable" : false,
|
||||
"removable" : false,
|
||||
"staticOn" : "${__readonly}",
|
||||
"columns" : [ {
|
||||
"name" : "SYS_ROLE_ID",
|
||||
"label" : "角色",
|
||||
"type" : "tpl",
|
||||
"tpl" : "${SYS_ROLE_ID_DISPLAY__ ? SYS_ROLE_ID_DISPLAY__ : SYS_ROLE_ID}",
|
||||
"quickEdit" : false
|
||||
}, {
|
||||
"name" : "ENTITYTYPEID",
|
||||
"label" : "实体分类",
|
||||
"type" : "tpl",
|
||||
"tpl" : "${ENTITYTYPEID_DISPLAY__ ? ENTITYTYPEID_DISPLAY__ : ENTITYTYPEID}",
|
||||
"quickEdit" : false
|
||||
} ],
|
||||
"needConfirm" : false
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user