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>
71 lines
1.6 KiB
JSON
71 lines
1.6 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "公司危险源报表",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_DANGERLISTITEM_SEARCH?page=${page}&perPage=${perPage}",
|
|
"syncLocation" : false,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "DANGERID",
|
|
"label" : "作业过程与活动",
|
|
"type" : "tree-select",
|
|
"clearable" : true,
|
|
"source" : "/api/template/82b68117-5b61-4c9f-b188-4592782af30b/tree",
|
|
"searchable" : true
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "PM_DANGERLISTITEM_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "DANGERID_DISPLAY__",
|
|
"label" : "目录",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "DANGERPROPERTY",
|
|
"label" : "危险危害因素",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "DANGERSTATUS",
|
|
"label" : "状态",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"3" : "紧急"
|
|
}
|
|
}, {
|
|
"name" : "TROUBLE",
|
|
"label" : "可能导致事故",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "DANGERGRADE_DISPLAY__",
|
|
"label" : "危险级别",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "EVALUATIONMETHOD",
|
|
"label" : "评价方法",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "定性评价",
|
|
"2" : "定量评价"
|
|
}
|
|
}, {
|
|
"name" : "SCORE",
|
|
"label" : "得分",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "CONTROLMEASURE",
|
|
"label" : "建议控制措施",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "LIST",
|
|
"label" : "分数项集合",
|
|
"width" : 200
|
|
} ]
|
|
}
|
|
} |