{ "type" : "page", "title" : "系统日志查询", "body" : { "type" : "crud", "api" : "/api/flow/SYS_LOG_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "TYPE", "label" : "类型", "type" : "input-text" }, { "name" : "CONTENT", "label" : "日志内容", "type" : "input-text" }, { "name" : "CREATEBY", "label" : "操作人", "type" : "picker", "clearable" : true, "source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "placeholder" : "请点击右侧的图标" } ] }, "columns" : [ { "name" : "SYS_LOG_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "TYPE", "label" : "类型", "width" : 200 }, { "name" : "CONTENT", "label" : "日志内容", "width" : 200 }, { "name" : "CREATEBY_DISPLAY__", "label" : "操作人", "width" : 200 }, { "name" : "CREATETIME", "label" : "操作时间", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" } ], "headerToolbar" : [ { "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/39db066b-aeb4-486f-819a-bb65adc7339a?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/SYS_LOG_LOAD?__egtpl=39db066b-aeb4-486f-819a-bb65adc7339a", "data" : { "SYS_LOG_ID" : "${SYS_LOG_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "通过类型删除", "label" : "通过类型删除", "icon" : "fa fa-filter", "level" : "warning", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "通过类型删除", "size" : "sm", "body" : { "type" : "form", "body" : [ { "type" : "select", "name" : "LOGTYPE", "label" : "日志类型", "options" : [ { "label" : "Errors", "value" : "Errors" }, { "label" : "Info", "value" : "Info" }, { "label" : "Debug", "value" : "Debug" }, { "label" : "Warnings", "value" : "Warnings" } ], "required" : true } ], "api" : { "method" : "post", "url" : "/api/admin/log/delete-by-type", "data" : { "type" : "${LOGTYPE}" } } } } }, { "type" : "button", "id" : "全部删除", "label" : "全部删除", "icon" : "fa fa-trash", "level" : "danger", "actionType" : "ajax", "confirmText" : "确认删除全部系统日志?此操作不可恢复。", "api" : { "method" : "post", "url" : "/api/admin/log/delete-all" } }, "pagination" ], "primaryField" : "SYS_LOG_ID" } }