Files
eip4-platform/转换产物-attach/schema/e4e88a2d-377a-49ee-bb2c-e27c0fd9407e.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

202 lines
6.3 KiB
JSON

{
"type" : "page",
"title" : "枚举项维护",
"body" : {
"type" : "grid",
"columns" : [ {
"md" : 3,
"body" : {
"type" : "input-tree",
"name" : "tree",
"showOutline" : true,
"initiallyOpen" : true,
"virtualThreshold" : 100000,
"className" : "eip4-treegrid-tree",
"id" : "treegrid_tree",
"source" : "/api/template/b9401f70-ee50-4e8b-9a26-270936b41ab5/tree"
}
}, {
"md" : 9,
"body" : {
"type" : "crud",
"id" : "treegrid_crud",
"syncLocation" : false,
"api" : "/api/template/treegrid?treeRef=b9401f70-ee50-4e8b-9a26-270936b41ab5&gridTable=SYS_ENUMERATE&rcol=SYS_ENUMERATETYPE_ID&node=${tree}&page=${page}&perPage=${perPage}",
"selectable" : true,
"checkOnItemClick" : true,
"headerToolbar" : [ {
"type" : "button",
"id" : "添加",
"label" : "添加",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "添加",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/1ca149e6-1a7a-41aa-a811-74ea91dc0b31?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/SYS_ENUMERATE/defaults?templateId=1ca149e6-1a7a-41aa-a811-74ea91dc0b31"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/SYS_ENUMERATE_ADD?__egtpl=1ca149e6-1a7a-41aa-a811-74ea91dc0b31",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "修改",
"label" : "修改",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "修改",
"size" : "lg",
"data" : {
"&" : "${selectedItems[0]}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/1ca149e6-1a7a-41aa-a811-74ea91dc0b31?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/SYS_ENUMERATE_LOAD?__egtpl=1ca149e6-1a7a-41aa-a811-74ea91dc0b31",
"data" : {
"SYS_ENUMERATE_ID" : "${SYS_ENUMERATE_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/SYS_ENUMERATE_UPDATE?__egtpl=1ca149e6-1a7a-41aa-a811-74ea91dc0b31",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "删除",
"label" : "删除",
"level" : "danger",
"actionType" : "ajax",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"confirmText" : "确认要删除此记录吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/SYS_ENUMERATE_DELETE",
"data" : {
"ids" : "${selectedItems|pick:SYS_ENUMERATE_ID|join:','}"
}
}
}, {
"type" : "button",
"id" : "查看",
"label" : "查看",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "查看",
"size" : "lg",
"data" : {
"&" : "${selectedItems[0]}",
"__readonly" : true
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/1ca149e6-1a7a-41aa-a811-74ea91dc0b31?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/SYS_ENUMERATE_LOAD?__egtpl=1ca149e6-1a7a-41aa-a811-74ea91dc0b31",
"data" : {
"SYS_ENUMERATE_ID" : "${SYS_ENUMERATE_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, "pagination" ],
"primaryField" : "SYS_ENUMERATE_ID",
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "ORDERASC",
"label" : "排序",
"type" : "input-number",
"precision" : 0,
"step" : 1
}, {
"name" : "CODEDES",
"label" : "枚举项",
"type" : "input-text"
}, {
"name" : "CODEVALUE",
"label" : "枚举值",
"type" : "input-number",
"precision" : 0,
"step" : 1
} ]
},
"columns" : [ {
"name" : "SYS_ENUMERATETYPE_ID_DISPLAY__",
"label" : "枚举组",
"width" : 150
}, {
"name" : "CODEDES",
"label" : "枚举项",
"width" : 200
}, {
"name" : "CODEVALUE",
"label" : "枚举值",
"width" : 100
}, {
"name" : "EXTENDATTRIBUTEONE",
"label" : "扩展属性一",
"width" : 100
}, {
"name" : "EXTENDATTRIBUTETWO",
"label" : "扩展属性二",
"width" : 100
}, {
"name" : "EXTENDATTRIBUTETHREE",
"label" : "扩展属性三",
"width" : 100
}, {
"name" : "ORDERASC",
"label" : "排序",
"width" : 50
}, {
"name" : "SYS_ENUMERATE_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
} ]
}
} ]
}
}