{ "type" : "page", "title" : "实体", "body" : { "type" : "crud", "api" : "/api/flow/searchEntity", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "ACCESSLEVEL", "label" : "访问级别", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/ACCLEVEL" }, { "name" : "TABLETYPE", "label" : "表类型", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/TABLETYPE" }, { "name" : "TABLENAME", "label" : "数据库表名", "type" : "input-text" }, { "name" : "ISDELETEABLE", "label" : "该表是否可删除", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" }, { "name" : "DESCRIPTION", "label" : "描述", "type" : "input-text" }, { "name" : "NAME", "label" : "名称", "type" : "input-text" }, { "name" : "ISVIEW", "label" : "是否视图", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" }, { "name" : "ISCHANGELOG", "label" : "是否记录日志", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" } ] }, "columns" : [ { "name" : "SYS_ENTITY_ID", "label" : "SYS_Entity_ID", "width" : 200 }, { "name" : "NAME", "label" : "名称", "width" : 300 }, { "name" : "TABLENAME", "label" : "数据库表名", "width" : 300 }, { "name" : "ISVIEW", "label" : "视图", "width" : 40, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" } }, { "name" : "ENTITYTYPE_DISPLAY__", "label" : "实体模块分类", "width" : 180 }, { "name" : "TABLETYPE", "label" : "表类型", "width" : 60, "type" : "mapping", "map" : { "0" : "主表", "1" : "子表", "2" : "中间表" } }, { "name" : "ACCESSLEVEL", "label" : "访问级别", "width" : 80, "type" : "mapping", "map" : { "1" : "系统", "2" : "固有业务", "3" : "自定义业务" }, "toggled" : false }, { "name" : "DESCRIPTION", "label" : "描述", "width" : 200 }, { "name" : "ISCHANGELOG", "label" : "记录日志", "width" : 50, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" }, "toggled" : false }, { "name" : "ISDELETEABLE", "label" : "是否可删除", "width" : 50, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" }, "toggled" : false }, { "name" : "ISVIEWDISPLAY", "label" : "是否视图显示名称", "width" : 80, "toggled" : false } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/8de37a6d-40e4-4882-a613-7059ce5169b6?format=amis", "api" : { "method" : "get", "url" : "/api/form/SYS_ENTITY/defaults?templateId=8de37a6d-40e4-4882-a613-7059ce5169b6" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/insertEntity?__egtpl=8de37a6d-40e4-4882-a613-7059ce5169b6", "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/8de37a6d-40e4-4882-a613-7059ce5169b6?format=amis", "api" : { "method" : "post", "url" : "/api/flow/loadEntity?__egtpl=8de37a6d-40e4-4882-a613-7059ce5169b6", "data" : { "SYS_ENTITY_ID" : "${SYS_ENTITY_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/updateEntity?__egtpl=8de37a6d-40e4-4882-a613-7059ce5169b6", "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/deleteEntity", "data" : { "ids" : "${selectedItems|pick:SYS_ENTITY_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/12491103-fe4a-4bd3-8b4e-568be807d606?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/loadEntity?__egtpl=12491103-fe4a-4bd3-8b4e-568be807d606", "data" : { "SYS_ENTITY_ID" : "${SYS_ENTITY_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "SYS_ENTITY_ID" } }