{ "type" : "page", "title" : "人才库", "body" : { "type" : "crud", "api" : "/api/flow/HR_PERSON_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "NAME", "label" : "姓名", "type" : "input-text" }, { "name" : "IDCARD", "label" : "身份证", "type" : "input-text" }, { "name" : "HOMEPHONE", "label" : "家庭电话", "type" : "input-text" }, { "name" : "NOWADDRESS", "label" : "现住址", "type" : "input-text" }, { "name" : "PHONE", "label" : "电话", "type" : "input-text" }, { "name" : "ZIPCODE", "label" : "邮编", "type" : "input-text" }, { "name" : "SOCIA", "label" : "社保编号", "type" : "input-text" }, { "name" : "EMAIL", "label" : "邮箱", "type" : "input-text" }, { "name" : "OLDNAME", "label" : "曾用名", "type" : "input-text" }, { "name" : "HOMEADDRESS", "label" : "家庭地址", "type" : "input-text" }, { "name" : "ARCHIVESLOCALE", "label" : "档案归属地", "type" : "input-text" }, { "name" : "BIRTH", "label" : "出生日期", "type" : "input-date-range" }, { "name" : "SEX", "label" : "性别", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/SEX" }, { "name" : "NATIVE", "label" : "籍贯", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/NATIVE_PLACE" }, { "name" : "POLITY", "label" : "政治面貌", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/POLICITAL_STATUS" }, { "name" : "NATION", "label" : "民族", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/NATIONALITY" }, { "name" : "DEGREE", "label" : "学历", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/EDUCATIONAL_HISTORY" } ] }, "columns" : [ { "name" : "HR_PERSON_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "NAME", "label" : "姓名", "width" : 140 }, { "name" : "SEX", "label" : "性别", "width" : 50, "type" : "mapping", "map" : { "0" : "女", "1" : "男" } }, { "name" : "BIRTH", "label" : "出生日期", "width" : 160, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "IDCARD", "label" : "身份证号", "width" : 200 }, { "name" : "DEGREE", "label" : "学历", "width" : 80, "type" : "mapping", "map" : { "1055" : "本科", "1056" : "大专", "1057" : "高中", "1058" : "职高", "1059" : "技校", "1060" : "初中", "1061" : "小学以下", "1062" : "硕士", "1063" : "博士", "1244" : "小学", "1245" : "中专" } }, { "name" : "POLITY", "label" : "政治面貌", "width" : 100, "type" : "mapping", "map" : { "1068" : "党员", "1069" : "预备党员", "1070" : "团员", "1071" : "群众", "1072" : "其他" } }, { "name" : "PHONE", "label" : "电话", "width" : 180 }, { "name" : "EMAIL", "label" : "邮箱", "width" : 200 } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/a03c0f8d-4775-49af-8d2b-26ceb00ae488?format=amis", "api" : { "method" : "get", "url" : "/api/form/HR_PERSON/defaults?templateId=a03c0f8d-4775-49af-8d2b-26ceb00ae488" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_PERSON_ADD?__egtpl=a03c0f8d-4775-49af-8d2b-26ceb00ae488", "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]}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/a03c0f8d-4775-49af-8d2b-26ceb00ae488?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_PERSON_LOAD?__egtpl=a03c0f8d-4775-49af-8d2b-26ceb00ae488", "data" : { "HR_PERSON_ID" : "${HR_PERSON_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_PERSON_UPDATE?__egtpl=a03c0f8d-4775-49af-8d2b-26ceb00ae488", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "删除", "label" : "删除", "level" : "danger", "actionType" : "ajax", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/HR_PERSON_DELETE", "data" : { "ids" : "${selectedItems|pick:HR_PERSON_ID|join:','}" } } }, { "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/a03c0f8d-4775-49af-8d2b-26ceb00ae488?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/HR_PERSON_LOAD?__egtpl=a03c0f8d-4775-49af-8d2b-26ceb00ae488", "data" : { "HR_PERSON_ID" : "${HR_PERSON_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "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/7c73b7b5-44e5-462c-9c6e-ebd560bf5f55?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_PERSON_LOAD?__egtpl=7c73b7b5-44e5-462c-9c6e-ebd560bf5f55", "data" : { "HR_PERSON_ID" : "${HR_PERSON_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "cef76ed2-2f8b-4ba9-abe5-f8d29fafc7c0" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_EMPLOYEE_PERSONTOADD?__egtpl=7c73b7b5-44e5-462c-9c6e-ebd560bf5f55", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "HR_PERSON_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "cef76ed2-2f8b-4ba9-abe5-f8d29fafc7c0" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }