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:
99
转换产物-attach/schema/f856a72e-50c9-4700-a0e9-e104d59c8599.json
Normal file
99
转换产物-attach/schema/f856a72e-50c9-4700-a0e9-e104d59c8599.json
Normal file
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "选择关联的污染源清单项",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/PM_SCHEMEPOLLUTIONRELATION_PROJECTPOLLUTIONLISTITEM_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "POLLUTIONLISTNAME",
|
||||
"label" : "作业过程或活动",
|
||||
"type" : "tree-select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/template/3ccd2705-ae8f-450f-9537-8e2e19fac5c7/tree",
|
||||
"searchable" : true
|
||||
}, {
|
||||
"name" : "POLLUTIONPROPERTY",
|
||||
"label" : "污染危害因素",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "TROUBLE",
|
||||
"label" : "可能导致事故",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "POLLUTIONGRADE",
|
||||
"label" : "污染级别",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/769a4ce1-0025-4aa5-8fd7-b2361d9a7932/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
}, {
|
||||
"name" : "STAGE",
|
||||
"label" : "阶段",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PROJECT_D_P_STAGE"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "PM_PROJECTPOLLUTIONLISTITEM_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "PROJECTID",
|
||||
"label" : "工程名称",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "POLLUTIONLISTNAME_DISPLAY__",
|
||||
"label" : "作业过程或活动",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "POLLUTIONPROPERTY",
|
||||
"label" : "污染危害因素",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "TROUBLE",
|
||||
"label" : "可能导致事故、事件",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "POLLUTIONGRADE_DISPLAY__",
|
||||
"label" : "污染级别",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "STAGE",
|
||||
"label" : "阶段",
|
||||
"width" : 200,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "已识别",
|
||||
"2" : "方案已审批",
|
||||
"3" : "已交底",
|
||||
"4" : "已封闭"
|
||||
}
|
||||
}, {
|
||||
"name" : "CONTROLMEASURE",
|
||||
"label" : "控制措施",
|
||||
"width" : 200
|
||||
} ],
|
||||
"headerToolbar" : [ "pagination" ],
|
||||
"primaryField" : "PM_PROJECTPOLLUTIONLISTITEM_ID"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user