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:
143
转换产物-attach/schema/f01a91fe-62a8-4b64-a871-bcb20d914d51.json
Normal file
143
转换产物-attach/schema/f01a91fe-62a8-4b64-a871-bcb20d914d51.json
Normal file
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "绩效管理-评估记录",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/VIEW_HR_ASSESSEMP_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "EMPLOYEESERIALNO",
|
||||
"label" : "员工工号",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "EMPLOYEENAME",
|
||||
"label" : "员工姓名",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "SCHEMENAME",
|
||||
"label" : "考核方案",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "DOSTATUS",
|
||||
"label" : "执行状态",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/HR_PLAN_DOSTATUS"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "VIEW_HR_ASSESSEMP_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "EMPLOYEE",
|
||||
"label" : "员工id",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "ASSESSSCHEME",
|
||||
"label" : "考核方案id",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "EMPLOYEESERIALNO",
|
||||
"label" : "员工工号",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "EMPLOYEENAME",
|
||||
"label" : "员工姓名",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "SCHEMENAME",
|
||||
"label" : "考核方案",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "ASSESSEVAL",
|
||||
"label" : "考评人员",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "SCHEMESCORE",
|
||||
"label" : "方案总分",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "EVALUSER",
|
||||
"label" : "已评分人员",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "EVALCOUNT",
|
||||
"label" : "考评份数",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "EVALTOTAL",
|
||||
"label" : "所得总分",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "EVALAVG",
|
||||
"label" : "平均分",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "DOSTATUS",
|
||||
"label" : "执行状态",
|
||||
"width" : 200,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "执行中",
|
||||
"2" : "已执行",
|
||||
"3" : "未执行"
|
||||
},
|
||||
"toggled" : false
|
||||
} ],
|
||||
"headerToolbar" : [ {
|
||||
"type" : "button",
|
||||
"id" : "查看评估明细",
|
||||
"label" : "查看评估明细",
|
||||
"actionType" : "dialog",
|
||||
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"title" : "评估明细",
|
||||
"size" : "lg",
|
||||
"data" : {
|
||||
"VIEW_HR_ASSESSEMP_ID" : "${selectedItems[0].VIEW_HR_ASSESSEMP_ID}"
|
||||
},
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/1c3adaaf-ba90-462b-975f-83b55113e8ae?format=amis"
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "关闭",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "VIEW_HR_ASSESSEMP_ID",
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "f01a91fe-62a8-4b64-a871-bcb20d914d51"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user