Files
eip4-platform/转换产物-attach/schema/55ff56f1-14e0-41e7-9e84-72b120d26980.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

311 lines
8.8 KiB
JSON

{
"type" : "page",
"title" : "公司污染源清单项",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_POLLUTIONLISTITEM_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "POLLUTIONID",
"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" : "TENSE",
"label" : "时态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_POLLUTION_TENSE"
}, {
"name" : "POLLUTIONSTATUS",
"label" : "状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/DANGER_STATUS"
}, {
"name" : "POLLUTIONGRADE",
"label" : "污染级别",
"type" : "select",
"clearable" : true,
"source" : "/api/picker/PM_POLLUTIONRISKLEVEL/list?perPage=500"
}, {
"name" : "EVALUATIONMETHOD",
"label" : "评价方法",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/evaluationmethod"
}, {
"name" : "SCORE",
"label" : "得分",
"type" : "input-number",
"precision" : 2
}, {
"name" : "CONTROLMEASURE",
"label" : "建议控制措施",
"type" : "input-text"
} ]
},
"columns" : [ {
"name" : "PM_POLLUTIONLISTITEM_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "POLLUTIONID_DISPLAY__",
"label" : "作业过程或活动",
"width" : 200,
"toggled" : false
}, {
"name" : "POLLUTIONPROPERTY",
"label" : "环境因素",
"width" : 200
}, {
"name" : "TROUBLE",
"label" : "环境影响",
"width" : 200
}, {
"name" : "TENSE",
"label" : "时态",
"width" : 200,
"type" : "mapping",
"map" : {
"0" : "过去"
}
}, {
"name" : "POLLUTIONSTATUS",
"label" : "状态",
"width" : 200
}, {
"name" : "POLLUTIONGRADE_DISPLAY__",
"label" : "污染级别",
"width" : 200
}, {
"name" : "EVALUATIONMETHOD",
"label" : "评价方法",
"width" : 200,
"type" : "mapping",
"map" : {
"1" : "定性评价",
"2" : "定量评价"
}
}, {
"name" : "SCORE",
"label" : "得分",
"width" : 200
}, {
"name" : "CONTROLMEASURE",
"label" : "建议控制措施",
"width" : 200
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "添加",
"label" : "添加",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "添加",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/6e8dd341-5063-41b2-a841-72e8a2439e5a?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/PM_POLLUTIONLISTITEM/defaults?templateId=6e8dd341-5063-41b2-a841-72e8a2439e5a"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_POLLUTIONLISTITEM_ADD?__egtpl=6e8dd341-5063-41b2-a841-72e8a2439e5a",
"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/6e8dd341-5063-41b2-a841-72e8a2439e5a?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_POLLUTIONLISTITEM_LOAD?__egtpl=6e8dd341-5063-41b2-a841-72e8a2439e5a",
"data" : {
"PM_POLLUTIONLISTITEM_ID" : "${PM_POLLUTIONLISTITEM_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_POLLUTIONLISTITEM_UPDATE?__egtpl=6e8dd341-5063-41b2-a841-72e8a2439e5a",
"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/PM_POLLUTIONLISTITEM_DELETE",
"data" : {
"ids" : "${selectedItems|pick:PM_POLLUTIONLISTITEM_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/6e8dd341-5063-41b2-a841-72e8a2439e5a?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_POLLUTIONLISTITEM_LOAD?__egtpl=6e8dd341-5063-41b2-a841-72e8a2439e5a",
"data" : {
"PM_POLLUTIONLISTITEM_ID" : "${PM_POLLUTIONLISTITEM_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"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/6df40f31-a3c3-4a51-8152-d5492623d535?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_POLLUTIONLISTITEM_LOAD?__egtpl=6df40f31-a3c3-4a51-8152-d5492623d535",
"data" : {
"PM_POLLUTIONLISTITEM_ID" : "${PM_POLLUTIONLISTITEM_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_POLLUTIONLISTITEM_UPDATE?__egtpl=6df40f31-a3c3-4a51-8152-d5492623d535",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "项目污染源清单",
"label" : "项目污染源清单",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "项目污染源清单",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/a5661675-2a63-401a-a52a-6b1f008ed95f?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "公司污染源清单",
"label" : "公司污染源清单",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "公司污染源清单",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/f3526816-5498-48f2-929d-3029381995ab?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "PM_POLLUTIONLISTITEM_ID"
}
}