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>
122 lines
3.1 KiB
JSON
122 lines
3.1 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "人员编制版本历史",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/SYS_ESTABLISHMENT_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "YEAR",
|
|
"label" : "年度",
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1
|
|
}, {
|
|
"name" : "ESTABLISHMENTVERSION",
|
|
"label" : "版本",
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "SYS_ESTABLISHMENT_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "YEAR",
|
|
"label" : "年度",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "ESTABLISHMENTVERSION",
|
|
"label" : "版本",
|
|
"width" : 50
|
|
}, {
|
|
"name" : "ISISSUER",
|
|
"label" : "是否已经发布",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是",
|
|
"false" : "否",
|
|
"true" : "是"
|
|
}
|
|
}, {
|
|
"name" : "PREPARER_DISPLAY__",
|
|
"label" : "编制人",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "ESTABLISHMENTDATE",
|
|
"label" : "编制日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "ISSUEDATE",
|
|
"label" : "发布日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "ISSUER_DISPLAY__",
|
|
"label" : "发布人",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ORGESTABLISHMENTITEMS",
|
|
"label" : "公司编制集合",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "DEPARTESTABLISHMENTITEMS",
|
|
"label" : "部门编制集合",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "POSTESTABLISHMENTITEMS",
|
|
"label" : "岗位编制集合",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"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/9db747e9-67dd-4dd1-b008-81ff557fb2a6?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/SYS_ESTABLISHMENT_LOAD?__egtpl=9db747e9-67dd-4dd1-b008-81ff557fb2a6",
|
|
"data" : {
|
|
"SYS_ESTABLISHMENT_ID" : "${SYS_ESTABLISHMENT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "SYS_ESTABLISHMENT_ID"
|
|
}
|
|
} |