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:
122
转换产物-attach/schema/6f42ddab-4efb-49bf-a6de-4932e4f7cac1.json
Normal file
122
转换产物-attach/schema/6f42ddab-4efb-49bf-a6de-4932e4f7cac1.json
Normal file
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "工程功能解除控制",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/SYS_TEMPLATECONTROL_SEARCH_PROJECT",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "TEMPLATEID",
|
||||
"label" : "功能名称",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"searchable" : true,
|
||||
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "SYS_TEMPLATECONTROL_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "TEMPLATEID",
|
||||
"label" : "功能名称",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "MEMO",
|
||||
"label" : "说明",
|
||||
"width" : 200
|
||||
} ],
|
||||
"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/13ca21e4-0fea-46c1-84b1-097ddf081e90?format=amis",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/SYS_TEMPLATECONTROL_LOAD?__egtpl=13ca21e4-0fea-46c1-84b1-097ddf081e90",
|
||||
"data" : {
|
||||
"SYS_TEMPLATECONTROL_ID" : "${SYS_TEMPLATECONTROL_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
},
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "6f42ddab-4efb-49bf-a6de-4932e4f7cac1"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"api" : "POST:/api/flow/SYS_TEMPLATECONTROL_UPDATE?__egtpl=13ca21e4-0fea-46c1-84b1-097ddf081e90",
|
||||
"close" : true
|
||||
}, {
|
||||
"type" : "button",
|
||||
"label" : "取消",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "SYS_TEMPLATECONTROL_ID",
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "6f42ddab-4efb-49bf-a6de-4932e4f7cac1"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user