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>
This commit is contained in:
143
转换产物-attach/schema/56c1d3cf-a4b5-41fd-8a71-c8f1529270ef.json
Normal file
143
转换产物-attach/schema/56c1d3cf-a4b5-41fd-8a71-c8f1529270ef.json
Normal file
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "员工日志",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/OA_DAILY_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "USERNAME",
|
||||
"label" : "姓名",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "TITLE",
|
||||
"label" : "标题",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "DAILYDATE",
|
||||
"label" : "日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "ISREAD",
|
||||
"label" : "是否已阅",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "OA_DAILY_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "DAILYDATE",
|
||||
"label" : "日期",
|
||||
"width" : 200,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "USERID_DISPLAY__",
|
||||
"label" : "姓名",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "TITLE",
|
||||
"label" : "标题",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "CONTENT",
|
||||
"label" : "内容",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "COMMMENTUSERNAME",
|
||||
"label" : "评论人",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "ISREAD",
|
||||
"label" : "是否已阅",
|
||||
"width" : 100,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"0" : "否",
|
||||
"1" : "是"
|
||||
}
|
||||
} ],
|
||||
"headerToolbar" : [ {
|
||||
"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/9db07359-cf06-4d1d-8c20-ff39d01d304d?format=amis",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/OA_DAILY_COMMENT_LOAD?__egtpl=9db07359-cf06-4d1d-8c20-ff39d01d304d",
|
||||
"data" : {
|
||||
"OA_DAILY_ID" : "${OA_DAILY_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"api" : "POST:/api/flow/OA_DAILY_COMMENT_ADD?__egtpl=9db07359-cf06-4d1d-8c20-ff39d01d304d",
|
||||
"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]}",
|
||||
"__readonly" : true
|
||||
},
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/809f7d36-5702-4634-8d09-d2ebd49f1067?format=amis",
|
||||
"static" : true,
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/OA_DAILY_LOAD?__egtpl=809f7d36-5702-4634-8d09-d2ebd49f1067",
|
||||
"data" : {
|
||||
"OA_DAILY_ID" : "${OA_DAILY_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "OA_DAILY_ID"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user