{ "type" : "page", "title" : "离职目标配置", "body" : { "type" : "crud", "api" : "/api/flow/HR_EMPLOYEE_SCHEME_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "SCHEMENAME", "label" : "方案名称", "type" : "input-text" }, { "name" : "STARTYEAR", "label" : "起始年份", "type" : "input-number", "precision" : 0, "step" : 1 }, { "name" : "REGISTER", "label" : "编制人", "type" : "picker", "clearable" : true, "source" : "/api/picker/ac35b7e4-a338-4ca6-b5cd-98d5d1c54bab/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "REGISTERDATE", "label" : "编制日期", "type" : "input-date-range" } ] }, "columns" : [ { "name" : "HR_EMPLOYEE_SCHEME_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "SCHEMENAME", "label" : "方案名称", "width" : 300 }, { "name" : "STARTYEAR", "label" : "起始年份", "width" : 200 }, { "name" : "REGISTER_DISPLAY__", "label" : "编制人", "width" : 200 }, { "name" : "REGISTERDATE", "label" : "编制日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/c8344753-81e3-493b-8a22-acfd40e82d5c?format=amis", "api" : { "method" : "get", "url" : "/api/form/HR_EMPLOYEE_SCHEME/defaults?templateId=c8344753-81e3-493b-8a22-acfd40e82d5c" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_EMPLOYEE_SCHEME_ADD?__egtpl=c8344753-81e3-493b-8a22-acfd40e82d5c", "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/c8344753-81e3-493b-8a22-acfd40e82d5c?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_EMPLOYEE_SCHEME_LOAD?__egtpl=c8344753-81e3-493b-8a22-acfd40e82d5c", "data" : { "HR_EMPLOYEE_SCHEME_ID" : "${HR_EMPLOYEE_SCHEME_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "e8642275-66ef-418d-b22d-ba7328c081a4" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_EMPLOYEE_SCHEME_UPDATE?__egtpl=c8344753-81e3-493b-8a22-acfd40e82d5c", "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_EMPLOYEE_SCHEME_DELETE", "data" : { "ids" : "${selectedItems|pick:HR_EMPLOYEE_SCHEME_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/c8344753-81e3-493b-8a22-acfd40e82d5c?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/HR_EMPLOYEE_SCHEME_LOAD?__egtpl=c8344753-81e3-493b-8a22-acfd40e82d5c", "data" : { "HR_EMPLOYEE_SCHEME_ID" : "${HR_EMPLOYEE_SCHEME_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "HR_EMPLOYEE_SCHEME_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "e8642275-66ef-418d-b22d-ba7328c081a4" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }