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:
113
转换产物-attach/schema/62df6a50-37bb-40aa-b208-24be1fec345f.json
Normal file
113
转换产物-attach/schema/62df6a50-37bb-40aa-b208-24be1fec345f.json
Normal file
@@ -0,0 +1,113 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "绩效管理-考核评分",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/HR_ASSESSPLAN_SEARCH_WF_OVER",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "NAME",
|
||||
"label" : "方案名称",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "STARTTIME",
|
||||
"label" : "开始日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "ENDTIME",
|
||||
"label" : "结束日期",
|
||||
"type" : "input-date-range"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "HR_ASSESSPLAN_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "NAME",
|
||||
"label" : "方案名称",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "STARTTIME",
|
||||
"label" : "开始日期",
|
||||
"width" : 200,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "ENDTIME",
|
||||
"label" : "结束日期",
|
||||
"width" : 200,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "CREATEBY_DISPLAY__",
|
||||
"label" : "制定人",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "CREATETIME",
|
||||
"label" : "制定日期",
|
||||
"width" : 200,
|
||||
"type" : "datetime",
|
||||
"format" : "YYYY-MM-DD HH:mm",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "SCORE",
|
||||
"label" : "方案总分",
|
||||
"width" : 200
|
||||
} ],
|
||||
"headerToolbar" : [ {
|
||||
"type" : "button",
|
||||
"id" : "打分",
|
||||
"label" : "打分",
|
||||
"actionType" : "dialog",
|
||||
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"title" : "待考核人员",
|
||||
"size" : "lg",
|
||||
"data" : {
|
||||
"HR_ASSESSPLAN_ID" : "${selectedItems[0].HR_ASSESSPLAN_ID}"
|
||||
},
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/0ba53717-cde9-4788-86f2-36945f729e32?format=amis"
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "关闭",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "HR_ASSESSPLAN_ID",
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "62df6a50-37bb-40aa-b208-24be1fec345f"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user