{ "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/6fa33eab-c45e-4fcd-82fa-32c8e090475f/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" : "pm_conmenuforwj_editform", "args" : { "value" : { "PM_CONMENUFORWJ_ID" : "", "MENUNAME" : "", "SORTID" : "", "PARENTID" : "" } } } ] } } }, { "type" : "button", "label" : "删除", "level" : "danger", "icon" : "fa fa-trash", "disabledOn" : "${!selId}", "actionType" : "ajax", "confirmText" : "确认删除选中项?", "api" : { "method" : "post", "url" : "/api/flow/PM_CONMENUFORWJ_DELETE", "data" : { "PM_CONMENUFORWJ_ID" : "${selId}" } }, "reload" : "decltree_tree" } ] }, { "type" : "form", "id" : "pm_conmenuforwj_editform", "title" : "五建定制合同类型", "mode" : "horizontal", "horizontal" : { "left" : 3, "right" : 8 }, "initApi" : { "method" : "get", "url" : "/api/entity/PM_CONMENUFORWJ/${selId}", "data" : { "pageId" : "175cad37-3620-427d-9e58-8894bd069b10" }, "sendOn" : "${selId}" }, "api" : "post:/api/flow/PM_CONMENUFORWJ_ADD", "body" : [ { "type" : "group", "body" : [ { "name" : "MENUNAME", "label" : "类型名称", "required" : true, "type" : "input-text" }, { "name" : "SORTID", "label" : "排序号", "required" : true, "type" : "input-number", "precision" : 0, "step" : 1, "min" : 1.0, "max" : 9999999.0 } ] }, { "name" : "PM_CONMENUFORWJ_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "PARENTID", "label" : "父ID", "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}", "hidden" : true } ], "actions" : [ { "type" : "submit", "label" : "保存", "level" : "primary", "icon" : "fa fa-save", "reload" : "decltree_tree" } ] } ] } ] } }