{ "type" : "page", "title" : "人事变动-调职", "body" : { "type" : "crud", "api" : "/api/flow/HR_POSITIONTRANSFER_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "EMPLOYEE", "label" : "姓名", "type" : "picker", "clearable" : true, "source" : "/api/picker/4982d448-a9d4-493e-9e1d-ebcd3c7dfcd6/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "CHANGEDATE", "label" : "变动日期", "type" : "input-date-range" }, { "name" : "OLDPOSITION", "label" : "原所在岗位", "type" : "input-text" }, { "name" : "NEWPOSITION", "label" : "现所在岗位", "type" : "input-text" }, { "name" : "REMARK", "label" : "备注", "hidden" : true, "type" : "input-text" } ] }, "columns" : [ { "name" : "HR_POSITIONTRANSFER_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "EMPLOYEENUM", "label" : "工号", "width" : 80 }, { "name" : "EMPLOYEE_DISPLAY__", "label" : "姓名", "width" : 80 }, { "name" : "OLDPOSITION", "label" : "原所在岗位", "width" : 180 }, { "name" : "NEWPOSITION", "label" : "现所在岗位", "width" : 180 }, { "name" : "CHANGEDATE", "label" : "变动日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "REMARK", "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/d970cc1f-23c7-4653-972b-67c14564b48d?format=amis", "api" : { "method" : "get", "url" : "/api/form/HR_POSITIONTRANSFER/defaults?templateId=d970cc1f-23c7-4653-972b-67c14564b48d" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_POSITIONTRANSFER_ADD?__egtpl=d970cc1f-23c7-4653-972b-67c14564b48d", "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_POSITIONTRANSFER_DELETE", "data" : { "ids" : "${selectedItems|pick:HR_POSITIONTRANSFER_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/249a7ebb-b986-4cd0-a835-faa4cc40a0ed?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/HR_POSITIONTRANSFER_LOAD?__egtpl=249a7ebb-b986-4cd0-a835-faa4cc40a0ed", "data" : { "HR_POSITIONTRANSFER_ID" : "${HR_POSITIONTRANSFER_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "HR_POSITIONTRANSFER_ID" } }