{ "type" : "page", "title" : "枚举项维护", "body" : { "type" : "grid", "columns" : [ { "md" : 3, "body" : { "type" : "input-tree", "name" : "tree", "showOutline" : true, "initiallyOpen" : true, "virtualThreshold" : 100000, "className" : "eip4-treegrid-tree", "id" : "treegrid_tree", "source" : "/api/template/b9401f70-ee50-4e8b-9a26-270936b41ab5/tree" } }, { "md" : 9, "body" : { "type" : "crud", "id" : "treegrid_crud", "syncLocation" : false, "api" : "/api/template/treegrid?treeRef=b9401f70-ee50-4e8b-9a26-270936b41ab5&gridTable=SYS_ENUMERATE&rcol=SYS_ENUMERATETYPE_ID&node=${tree}&page=${page}&perPage=${perPage}", "selectable" : true, "checkOnItemClick" : true, "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/1ca149e6-1a7a-41aa-a811-74ea91dc0b31?format=amis", "api" : { "method" : "get", "url" : "/api/form/SYS_ENUMERATE/defaults?templateId=1ca149e6-1a7a-41aa-a811-74ea91dc0b31" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/SYS_ENUMERATE_ADD?__egtpl=1ca149e6-1a7a-41aa-a811-74ea91dc0b31", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "修改", "label" : "修改", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "修改", "size" : "lg", "data" : { "&" : "${selectedItems[0]}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/1ca149e6-1a7a-41aa-a811-74ea91dc0b31?format=amis", "api" : { "method" : "post", "url" : "/api/flow/SYS_ENUMERATE_LOAD?__egtpl=1ca149e6-1a7a-41aa-a811-74ea91dc0b31", "data" : { "SYS_ENUMERATE_ID" : "${SYS_ENUMERATE_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/SYS_ENUMERATE_UPDATE?__egtpl=1ca149e6-1a7a-41aa-a811-74ea91dc0b31", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "删除", "label" : "删除", "level" : "danger", "actionType" : "ajax", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/SYS_ENUMERATE_DELETE", "data" : { "ids" : "${selectedItems|pick:SYS_ENUMERATE_ID|join:','}" } } }, { "type" : "button", "id" : "查看", "label" : "查看", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "查看", "size" : "lg", "data" : { "&" : "${selectedItems[0]}", "__readonly" : true }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/1ca149e6-1a7a-41aa-a811-74ea91dc0b31?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/SYS_ENUMERATE_LOAD?__egtpl=1ca149e6-1a7a-41aa-a811-74ea91dc0b31", "data" : { "SYS_ENUMERATE_ID" : "${SYS_ENUMERATE_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "SYS_ENUMERATE_ID", "filter" : { "title" : "查询", "body" : [ { "name" : "ORDERASC", "label" : "排序", "type" : "input-number", "precision" : 0, "step" : 1 }, { "name" : "CODEDES", "label" : "枚举项", "type" : "input-text" }, { "name" : "CODEVALUE", "label" : "枚举值", "type" : "input-number", "precision" : 0, "step" : 1 } ] }, "columns" : [ { "name" : "SYS_ENUMERATETYPE_ID_DISPLAY__", "label" : "枚举组", "width" : 150 }, { "name" : "CODEDES", "label" : "枚举项", "width" : 200 }, { "name" : "CODEVALUE", "label" : "枚举值", "width" : 100 }, { "name" : "EXTENDATTRIBUTEONE", "label" : "扩展属性一", "width" : 100 }, { "name" : "EXTENDATTRIBUTETWO", "label" : "扩展属性二", "width" : 100 }, { "name" : "EXTENDATTRIBUTETHREE", "label" : "扩展属性三", "width" : 100 }, { "name" : "ORDERASC", "label" : "排序", "width" : 50 }, { "name" : "SYS_ENUMERATE_ID", "label" : "主键", "width" : 200, "toggled" : false } ] } } ] } }