{ "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}" } } ] } } } }