Files
eip4-platform/转换产物-attach/schema/54042d08-22ab-436d-90de-33bdba8df10f.json
zhengwr 8fe377b0c8 feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg,
保留 13-arg 兼容构造);新增 PageBlueprintChild record。
PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架,
新增/编辑表单内联 house-style input-table 子表(name=listColumn,
quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。
validate 接受 master-detail 并要求 child 非空/childTable/listColumn
非空/fields 非空。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 15:16:30 +08:00

153 lines
4.0 KiB
JSON

{
"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"
}
}