{ "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/40cb8b6f-cd9b-4077-ba4a-5b7045b8ecdd/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_filecab_folder_editform", "args" : { "value" : { "OA_FILECAB_FOLDER_ID" : "", "PARENTID" : "", "NAME" : "", "SORTID" : "", "ISSHARE" : "", "USERLIST" : "", "REMARK" : "", "ISDEL" : "" } } } ] } } }, { "type" : "button", "label" : "删除", "level" : "danger", "icon" : "fa fa-trash", "disabledOn" : "${!selId}", "actionType" : "ajax", "confirmText" : "确认删除选中项?", "api" : { "method" : "post", "url" : "/api/flow/OA_FILECAB_FOLDER_DELETE", "data" : { "OA_FILECAB_FOLDER_ID" : "${selId}" } }, "reload" : "decltree_tree" } ] }, { "type" : "form", "id" : "oa_filecab_folder_editform", "title" : "个人文件柜分类", "mode" : "horizontal", "horizontal" : { "left" : 3, "right" : 8 }, "initApi" : { "method" : "get", "url" : "/api/entity/OA_FILECAB_FOLDER/${selId}", "data" : { "pageId" : "b047e607-c5e4-4918-a6ce-319f96ac4e10" }, "sendOn" : "${selId}" }, "api" : "post:/api/flow/OA_FILECAB_FOLDER_ADD", "body" : [ { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "NAME", "label" : "名称", "required" : true, "type" : "input-text" } ] }, { "md" : 6, "body" : [ { "name" : "SORTID", "label" : "排序号", "type" : "input-number", "precision" : 0, "step" : 1 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "ISSHARE", "label" : "是否共享", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO", "value" : "0" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "USERLIST", "label" : "共享范围", "type" : "picker", "clearable" : true, "multiple" : true, "overflowConfig" : { "displayPosition" : [ "select" ], "maxTagCount" : 1 }, "source" : "/api/picker/1b3bad0b-a24b-4347-9466-db78f7432756/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "placeholder" : "请点击右侧的图标" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "REMARK", "label" : "说明", "type" : "textarea" } ] } ] }, { "name" : "OA_FILECAB_FOLDER_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "PARENTID", "label" : "父结点编号", "hidden" : true, "type" : "input-text" }, { "name" : "ISDEL", "label" : "是否删除", "required" : true, "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO", "value" : "0" } ], "actions" : [ { "type" : "submit", "label" : "保存", "level" : "primary", "icon" : "fa fa-save", "reload" : "decltree_tree" } ] } ] } ] } }