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>
185 lines
4.6 KiB
JSON
185 lines
4.6 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "项目部污染源清单项编辑",
|
|
"body" : {
|
|
"type" : "form",
|
|
"id" : "eip4-edit-form",
|
|
"title" : "",
|
|
"mode" : "horizontal",
|
|
"horizontal" : {
|
|
"leftFixed" : 120
|
|
},
|
|
"body" : [ {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 7,
|
|
"body" : [ {
|
|
"name" : "POLLUTIONLISTNAME",
|
|
"label" : "污染源目录",
|
|
"required" : true,
|
|
"type" : "tree-select",
|
|
"clearable" : true,
|
|
"source" : "/api/template/3ccd2705-ae8f-450f-9537-8e2e19fac5c7/tree",
|
|
"searchable" : true
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 7,
|
|
"body" : [ {
|
|
"name" : "POLLUTIONPROPERTY",
|
|
"label" : "环境因素",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
} ]
|
|
}, {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "TROUBLE",
|
|
"label" : "环境影响",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 7,
|
|
"body" : [ {
|
|
"name" : "POLLUTIONSTATUS",
|
|
"label" : "状态",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/POLLUTION_STATUS",
|
|
"value" : "1"
|
|
} ]
|
|
}, {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "TENSE",
|
|
"label" : "时态",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_POLLUTION_TENSE",
|
|
"value" : "1"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 7,
|
|
"body" : [ {
|
|
"name" : "EVALUATIONMETHOD",
|
|
"label" : "评价方法",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/evaluationmethod",
|
|
"value" : "1"
|
|
} ]
|
|
}, {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "POLLUTIONGRADE",
|
|
"label" : "污染级别",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/PM_POLLUTIONRISKLEVEL/list?perPage=500"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "test",
|
|
"label" : "test",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "SCORE",
|
|
"label" : "得分",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "SCORES",
|
|
"label" : "分数项",
|
|
"required" : true,
|
|
"type" : "input-table",
|
|
"id" : "eg-SCORES",
|
|
"addable" : false,
|
|
"removable" : false,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "MARK",
|
|
"label" : "标识",
|
|
"type" : "tpl",
|
|
"tpl" : "${MARK_DISPLAY__ ? MARK_DISPLAY__ : MARK}",
|
|
"quickEdit" : false
|
|
}, {
|
|
"name" : "SCORE",
|
|
"label" : "得分",
|
|
"quickEdit" : {
|
|
"name" : "SCORE",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "CONTROLMEASURE",
|
|
"label" : "建议控制措施",
|
|
"type" : "textarea"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "PM_PROJECTPOLLUTIONLISTITEM_ID",
|
|
"label" : "主键",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "APPLYID",
|
|
"label" : "项目部污染源申报",
|
|
"hidden" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"searchable" : true,
|
|
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
|
|
}, {
|
|
"name" : "DISPOSE",
|
|
"label" : "是否处理",
|
|
"hidden" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO",
|
|
"value" : "0"
|
|
}, {
|
|
"name" : "ISNEW",
|
|
"label" : "是否是新的污染源 ",
|
|
"hidden" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1,
|
|
"value" : "1"
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |