{ "type" : "page", "title" : "培训结果登记", "body" : { "type" : "crud", "api" : "/api/flow/HR_TRAIN_PLAN_SEARCH_PASS", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "NAME", "label" : "计划名称", "type" : "input-text" }, { "name" : "COURSETYPE", "label" : "培训课程", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/HR_TRIAN_COURSETYPE" }, { "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" : 70 }, { "name" : "COURSETYPE", "label" : "培训课程", "width" : 100, "type" : "mapping", "map" : { "1" : "建造师注册证", "3" : "ABC三类人员证", "4" : "技术工人证", "5" : "十大员", "6" : "职称", "100" : "其他" } }, { "name" : "CREATEBY_DISPLAY__", "label" : "制定人", "width" : 70 }, { "name" : "CREATETIME", "label" : "制定日期", "width" : 100, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "DO_STATUS", "label" : "执行状态", "width" : 70, "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/043ca17e-900d-44b6-aef4-e3bac9c2076c?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_TRAIN_RECORD_LOAD_BY_PLANINFOID?__egtpl=043ca17e-900d-44b6-aef4-e3bac9c2076c", "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_RECORD_ADD?__egtpl=043ca17e-900d-44b6-aef4-e3bac9c2076c", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "HR_TRAIN_PLAN_ID" } }