Files
eip4-platform/转换产物-attach/schema/2d3a8c6b-3200-431a-a765-59cf6c6c4a1d.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

124 lines
3.2 KiB
JSON

{
"type" : "page",
"title" : "论坛视图",
"body" : {
"type" : "crud",
"api" : "/api/flow/OA_ZONEVIEW_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "TITLE",
"label" : "主题",
"type" : "input-text"
}, {
"name" : "ZONEID",
"label" : "版块",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/52292a04-4f24-4e3c-9380-9578926b05e2/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
},
"columns" : [ {
"name" : "OA_ZONEVIEW_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "ZONEID",
"label" : "版块",
"width" : 200
}, {
"name" : "TITLE",
"label" : "主题",
"width" : 200
}, {
"name" : "PUBLISHUSER",
"label" : "作者",
"width" : 200
}, {
"name" : "PUBLISHTIME",
"label" : "时间",
"width" : 200
}, {
"name" : "VISITNUM",
"label" : "人气数",
"width" : 200
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "发表话题",
"label" : "发表话题",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "发表话题",
"body" : {
"type" : "tpl",
"tpl" : "该单据未配编辑表单"
}
}
}, {
"type" : "button",
"id" : "发起投票",
"label" : "发起投票",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "发起投票",
"body" : {
"type" : "tpl",
"tpl" : "该单据未配编辑表单"
}
}
}, {
"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/3d94fad0-310b-425a-ae89-8606013575be?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/OA_ZONEVIEW_LOAD?__egtpl=3d94fad0-310b-425a-ae89-8606013575be",
"data" : {
"ORPHAN_156f97c6_8a5c_4ca2_8564_287a61c2a9bc_ID" : "${ORPHAN_156f97c6_8a5c_4ca2_8564_287a61c2a9bc_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, "pagination" ],
"primaryField" : "ORPHAN_156f97c6_8a5c_4ca2_8564_287a61c2a9bc_ID"
}
}