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>
162 lines
4.4 KiB
JSON
162 lines
4.4 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "培训评估",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/HR_TRAIN_PLAN_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "NAME",
|
|
"label" : "计划名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "CREATETIME",
|
|
"label" : "制定日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "DO_STATUS",
|
|
"label" : "执行状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/HR_PLAN_DOSTATUS"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "HR_TRAIN_PLAN_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "NAME",
|
|
"label" : "计划名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "DEPART_ID_DISPLAY__",
|
|
"label" : "计划部门",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "PRINCIPAL_DISPLAY__",
|
|
"label" : "负责人",
|
|
"width" : 200
|
|
}, {
|
|
"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" : "DO_STATUS",
|
|
"label" : "执行状态",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "执行中",
|
|
"2" : "已执行",
|
|
"3" : "未执行"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"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/2f5f04b1-306a-4aef-ae17-1335847a74dc?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_TRAIN_EVAL_ADD_LOAD?__egtpl=2f5f04b1-306a-4aef-ae17-1335847a74dc",
|
|
"data" : {
|
|
"HR_TRAIN_PLAN_ID" : "${HR_TRAIN_PLAN_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_TRAIN_EVAL_ADD?__egtpl=2f5f04b1-306a-4aef-ae17-1335847a74dc",
|
|
"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]}",
|
|
"__readonly" : true
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/2f5f04b1-306a-4aef-ae17-1335847a74dc?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_TRAIN_EVAL_VIEW_LOAD?__egtpl=2f5f04b1-306a-4aef-ae17-1335847a74dc",
|
|
"data" : {
|
|
"HR_TRAIN_PLAN_ID" : "${HR_TRAIN_PLAN_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "HR_TRAIN_PLAN_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "5bdb3837-e72c-43df-840b-d2852effdba3"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |