{ "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/d3d98698-f836-4b22-b4b3-4967f63700cd/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" : "sys_org_editform", "args" : { "value" : { "SYS_ORG_ID" : "", "PARENTID" : "", "NAME" : "", "CODE" : "", "DESCRIPTION" : "", "SEQ" : "" } } } ] } } }, { "type" : "button", "label" : "删除", "level" : "danger", "icon" : "fa fa-trash", "disabledOn" : "${!selId}", "actionType" : "ajax", "confirmText" : "确认删除选中项?", "api" : { "method" : "post", "url" : "/api/flow/SYS_ORG_DELETE", "data" : { "SYS_ORG_ID" : "${selId}" } }, "reload" : "decltree_tree" } ] }, { "type" : "form", "id" : "sys_org_editform", "title" : "部门编制", "mode" : "horizontal", "horizontal" : { "left" : 3, "right" : 8 }, "initApi" : { "method" : "get", "url" : "/api/entity/SYS_ORG/${selId}", "data" : { "pageId" : "42b675b5-d87e-4650-82cc-2c69683148a0" }, "sendOn" : "${selId}" }, "api" : "post:/api/flow/SYS_ORG_INSERTORUPDATE", "body" : [ { "type" : "group", "body" : [ { "name" : "NAME", "label" : "组织名称", "required" : true, "type" : "input-text" }, { "name" : "CODE", "label" : "简称", "required" : true, "type" : "input-text" } ] }, { "name" : "DESCRIPTION", "label" : "组织描述", "type" : "textarea" }, { "type" : "group", "body" : [ { "name" : "SEQ", "label" : "组织排序号", "required" : true, "type" : "input-number", "precision" : 0, "step" : 1 } ] }, { "name" : "SYS_ORG_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "PARENTID", "label" : "父级组织", "hidden" : true, "type" : "input-text" } ], "actions" : [ { "type" : "submit", "label" : "保存", "level" : "primary", "icon" : "fa fa-save", "reload" : "decltree_tree" } ] } ] } ] } }