{ "type" : "page", "title" : "招聘管理-指标类别", "body" : { "type" : "grid", "columns" : [ { "md" : 4, "columnClassName" : "b-r pr-md", "body" : [ { "type" : "input-tree", "name" : "selId", "multiple" : false, "virtualThreshold" : 100000, "id" : "decltree_tree", "source" : "/api/template/52ed0153-bd30-4e84-806e-94c91fca37bb/tree", "label" : false, "searchable" : true, "initiallyOpen" : true, "showOutline" : true, "heightAuto" : true } ] }, { "md" : 8, "columnClassName" : "pl-md", "body" : [ { "type" : "button-toolbar", "className" : "m-b-sm", "buttons" : [ { "type" : "button", "label" : "添加", "level" : "primary", "icon" : "fa fa-plus", "onEvent" : { "click" : { "actions" : [ { "actionType" : "setValue", "componentId" : "decltree_tree", "args" : { "value" : "" } }, { "actionType" : "setValue", "componentId" : "hr_guidecategory_editform", "args" : { "value" : { "HR_GUIDECATEGORY_ID" : "", "NAME" : "" } } } ] } } }, { "type" : "button", "label" : "删除", "level" : "danger", "icon" : "fa fa-trash", "disabledOn" : "${!selId}", "actionType" : "ajax", "confirmText" : "确认删除选中项?", "api" : { "method" : "post", "url" : "/api/flow/HR_GUIDECATEGORY_DELETE", "data" : { "HR_GUIDECATEGORY_ID" : "${selId}" } }, "reload" : "decltree_tree" } ] }, { "type" : "form", "id" : "hr_guidecategory_editform", "title" : "招聘管理-指标类别", "mode" : "horizontal", "horizontal" : { "left" : 3, "right" : 8 }, "initApi" : { "method" : "get", "url" : "/api/entity/HR_GUIDECATEGORY/${selId}", "data" : { "pageId" : "70e3a996-74ed-4dbd-afcf-84061b0e5307" }, "sendOn" : "${selId}" }, "api" : "post:/api/flow/HR_GUIDECATEGORY_ADD", "body" : [ { "type" : "group", "body" : [ { "name" : "NAME", "label" : "类别名称", "required" : true, "type" : "input-text", "maxLength" : 30 } ] }, { "name" : "HR_GUIDECATEGORY_ID", "label" : "主键", "hidden" : true, "type" : "input-text" } ], "actions" : [ { "type" : "submit", "label" : "保存", "level" : "primary", "icon" : "fa fa-save", "reload" : "decltree_tree" } ] } ] } ] } }