{ "type" : "page", "title" : "计划执行", "body" : { "type" : "crud", "api" : "/api/flow/HR_RECRUITPLAN_SEARCH_DO_STATUS", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "NAME", "label" : "计划名称", "type" : "input-text" }, { "name" : "CREATETIME", "label" : "制定日期", "type" : "input-date-range" }, { "name" : "DOSTATUS", "label" : "执行状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/HR_PLAN_DOSTATUS" } ] }, "columns" : [ { "name" : "HR_RECRUITPLAN_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "SERIALNO", "label" : "计划编号", "width" : 200 }, { "name" : "NAME", "label" : "计划名称", "width" : 200 }, { "name" : "PRINCIPAL_DISPLAY__", "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" : "BUDGETFARE", "label" : "预算费用(元)", "width" : 200 }, { "name" : "PLANCOUNT", "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" : "DOSTATUS", "label" : "执行状态", "width" : 200, "type" : "mapping", "map" : { "1" : "执行中", "2" : "已执行", "3" : "未执行" } }, { "name" : "DEPART_DISPLAY__", "label" : "制定部门", "width" : 200, "toggled" : false } ], "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/e64164d8-9354-4662-9dce-d8aa4fc62bd1?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_RECRUITPLAN_LOAD_RECRUITJOB?__egtpl=e64164d8-9354-4662-9dce-d8aa4fc62bd1", "data" : { "HR_RECRUITPLAN_ID" : "${HR_RECRUITPLAN_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "fa65ccab-237a-42db-b824-9d5631d814e5" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_RECRUITPLAN_SETRECRUITJOB?__egtpl=e64164d8-9354-4662-9dce-d8aa4fc62bd1", "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/dad2fbc1-fe08-4ffa-88cb-a923efe27189?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/HR_RECRUITPLAN_LOAD_RECRUITJOB?__egtpl=dad2fbc1-fe08-4ffa-88cb-a923efe27189", "data" : { "HR_RECRUITPLAN_ID" : "${HR_RECRUITPLAN_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "执行完成", "label" : "执行完成", "actionType" : "ajax", "disabled" : true, "api" : { "method" : "post", "url" : "/api/flow/HR_RECRUITPLAN_UPDATE_DO_STATUS", "data" : { "HR_RECRUITPLAN_ID" : "${selectedItems[0].HR_RECRUITPLAN_ID}" } } }, "pagination" ], "primaryField" : "HR_RECRUITPLAN_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "disabled", "componentId" : "执行完成" }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${event.data.selectedItems[0]}", "templateId" : "fa65ccab-237a-42db-b824-9d5631d814e5" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] }, "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "fa65ccab-237a-42db-b824-9d5631d814e5" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } } }