{ "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/f91a6d73-ac2a-44f8-bd4f-697569c87364/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" : "oa_office_goodssort_editform", "args" : { "value" : { "PARENTID" : "", "SORT_NAME" : "", "SORT_EXPLAIN" : "", "OA_OFFICE_GOODSSORT_ID" : "" } } } ] } } }, { "type" : "button", "label" : "删除", "level" : "danger", "icon" : "fa fa-trash", "disabledOn" : "${!selId}", "actionType" : "ajax", "confirmText" : "确认删除选中项?", "api" : { "method" : "post", "url" : "/api/flow/OA_OFFICE_GOODSSORT_DELETE", "data" : { "OA_OFFICE_GOODSSORT_ID" : "${selId}" } }, "reload" : "decltree_tree" } ] }, { "type" : "form", "id" : "oa_office_goodssort_editform", "title" : "用品类别", "mode" : "horizontal", "horizontal" : { "left" : 3, "right" : 8 }, "initApi" : { "method" : "get", "url" : "/api/entity/OA_OFFICE_GOODSSORT/${selId}", "data" : { "pageId" : "baca0f09-a7f1-4637-ae2a-8cf79c0c22f4" }, "sendOn" : "${selId}" }, "api" : "post:/api/flow/OA_OFFICE_GOODSSORT_ADD", "body" : [ { "type" : "group", "body" : [ { "name" : "SORT_NAME", "label" : "类别名称", "required" : true, "type" : "input-text" } ] }, { "name" : "SORT_EXPLAIN", "label" : "类别说明", "type" : "textarea" }, { "name" : "PARENTID", "label" : "上级类别名称", "hidden" : true, "type" : "static", "tpl" : "${PARENTID_DISPLAY__ ? PARENTID_DISPLAY__ : (SORT_NAME ? SORT_NAME : PARENTID)}" }, { "name" : "OA_OFFICE_GOODSSORT_ID", "label" : "主键", "hidden" : true, "type" : "input-text" } ], "actions" : [ { "type" : "submit", "label" : "保存", "level" : "primary", "icon" : "fa fa-save", "reload" : "decltree_tree" } ] } ] } ] } }