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