Files
eip4-platform/转换产物-attach/schema/41d16b2f-48c7-4993-a1dc-2b864ff4e868.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

139 lines
3.9 KiB
JSON

{
"type" : "page",
"title" : "列表引用值选择框",
"body" : {
"type" : "crud",
"api" : "/api/flow/searchReferenceValue",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "ENTITYID",
"label" : "实体",
"type" : "picker",
"clearable" : true,
"source" : "/api/template/treegrid?treeRef=e6b69e2d-a8ab-49e9-8d79-e2bc4f2f45fd&gridTable=SYS_ENTITY&rcol=ENTITYTYPE&node=${ENTITYTYPE}&NAME=${NAME}&page=${page}&perPage=${perPage}",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"filter" : {
"title" : "",
"body" : [ {
"type" : "tree-select",
"name" : "ENTITYTYPE",
"label" : "分类",
"source" : "/api/template/e6b69e2d-a8ab-49e9-8d79-e2bc4f2f45fd/tree",
"searchable" : true,
"clearable" : true
}, {
"type" : "input-text",
"name" : "NAME",
"label" : "名称",
"clearable" : true
} ]
},
"columns" : [ {
"name" : "NAME",
"label" : "名称",
"width" : 300
}, {
"name" : "TABLENAME",
"label" : "数据库表名",
"width" : 300
}, {
"name" : "ISVIEW",
"label" : "视图",
"width" : 40,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
}
}, {
"name" : "ENTITYTYPE_DISPLAY__",
"label" : "实体模块分类",
"width" : 180
}, {
"name" : "TABLETYPE",
"label" : "表类型",
"width" : 60,
"type" : "mapping",
"map" : {
"0" : "主表",
"1" : "子表",
"2" : "中间表"
}
}, {
"name" : "ACCESSLEVEL",
"label" : "访问级别",
"width" : 80,
"type" : "mapping",
"map" : {
"1" : "系统",
"2" : "固有业务",
"3" : "自定义业务"
},
"toggled" : false
}, {
"name" : "DESCRIPTION",
"label" : "描述",
"width" : 200
}, {
"name" : "ISCHANGELOG",
"label" : "记录日志",
"width" : 50,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
},
"toggled" : false
}, {
"name" : "ISDELETEABLE",
"label" : "是否可删除",
"width" : 50,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
},
"toggled" : false
}, {
"name" : "ISVIEWDISPLAY",
"label" : "是否视图显示名称",
"width" : 80,
"toggled" : false
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
},
"columns" : [ {
"name" : "SYS_REFERENCEVALUE_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "ENTITYATTRIBUTEID",
"label" : "外键属性名",
"width" : 200
}, {
"name" : "ENTITYID",
"label" : "实体",
"width" : 200
} ],
"headerToolbar" : [ "pagination" ],
"primaryField" : "SYS_REFERENCEVALUE_ID"
}
}