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:
254
转换产物-attach/schema/a4a1cf1b-bf56-49f5-a52b-802bc4fe6b0d.json
Normal file
254
转换产物-attach/schema/a4a1cf1b-bf56-49f5-a52b-802bc4fe6b0d.json
Normal file
@@ -0,0 +1,254 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "公告管理归档",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/OA_BULLETINMANAGE_FILINGUP_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "IMPORTANT",
|
||||
"label" : "重要级别",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/Important"
|
||||
}, {
|
||||
"name" : "TITLE",
|
||||
"label" : "主题",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "USER_ID",
|
||||
"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" : "请点击右侧的图标"
|
||||
}, {
|
||||
"name" : "STATUS",
|
||||
"label" : "审批状态",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/WFSTATUS"
|
||||
}, {
|
||||
"name" : "ISDEL",
|
||||
"label" : "是否删除",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO"
|
||||
}, {
|
||||
"name" : "ISSEND",
|
||||
"label" : "是否发布",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO"
|
||||
}, {
|
||||
"name" : "ISSHOW",
|
||||
"label" : "显示/隐藏",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/OA_MS_ISSHOW"
|
||||
}, {
|
||||
"name" : "ISPLACE",
|
||||
"label" : "归档状态",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/SYS_FILINGUP_STATUS"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "OA_BULLETINMANAGE_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "IMPORTANT",
|
||||
"label" : "重要级别",
|
||||
"width" : 80,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"0" : "一般",
|
||||
"1" : "重要"
|
||||
}
|
||||
}, {
|
||||
"name" : "TITLE",
|
||||
"label" : "主题",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "BULLETINCONTENT",
|
||||
"label" : "内容",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "USER_ID_DISPLAY__",
|
||||
"label" : "拟稿人",
|
||||
"width" : 80
|
||||
}, {
|
||||
"name" : "SAVETIME",
|
||||
"label" : "保存时间",
|
||||
"width" : 150,
|
||||
"type" : "datetime",
|
||||
"format" : "YYYY-MM-DD HH:mm",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "STATUS",
|
||||
"label" : "审批状态",
|
||||
"width" : 80,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "未提交",
|
||||
"2" : "处理中",
|
||||
"3" : "通过",
|
||||
"4" : "未通过",
|
||||
"5" : "重新提交",
|
||||
"6" : "作废"
|
||||
}
|
||||
}, {
|
||||
"name" : "ISDEL",
|
||||
"label" : "是否删除",
|
||||
"width" : 80,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"0" : "否",
|
||||
"1" : "是"
|
||||
}
|
||||
}, {
|
||||
"name" : "ISSEND",
|
||||
"label" : "是否发布",
|
||||
"width" : 80,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"0" : "否",
|
||||
"1" : "是"
|
||||
}
|
||||
}, {
|
||||
"name" : "USERSEND_ID_DISPLAY__",
|
||||
"label" : "发布人",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "SENDTIME",
|
||||
"label" : "发布时间",
|
||||
"width" : 200,
|
||||
"type" : "datetime",
|
||||
"format" : "YYYY-MM-DD HH:mm",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "ISSHOW",
|
||||
"label" : "显示/隐藏",
|
||||
"width" : 80,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "显示",
|
||||
"0" : "隐藏"
|
||||
}
|
||||
}, {
|
||||
"name" : "ISPLACE",
|
||||
"label" : "归档状态",
|
||||
"width" : 80,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"0" : "未归档",
|
||||
"1" : "待归档",
|
||||
"2" : "已退档",
|
||||
"3" : "已归档"
|
||||
}
|
||||
} ],
|
||||
"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/bb6033d5-b61b-44f5-8f63-756316a6f799?format=amis",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/OA_BULLETINMANAGE_FILINGUP_LOAD?__egtpl=bb6033d5-b61b-44f5-8f63-756316a6f799",
|
||||
"data" : {
|
||||
"OA_BULLETINMANAGE_ID" : "${OA_BULLETINMANAGE_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"api" : "POST:/api/flow/OA_BULLETINMANAGE_FILINGUP_SAVE?__egtpl=bb6033d5-b61b-44f5-8f63-756316a6f799",
|
||||
"close" : true
|
||||
}, {
|
||||
"type" : "button",
|
||||
"label" : "取消",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, {
|
||||
"type" : "button",
|
||||
"id" : "退档",
|
||||
"label" : "退档",
|
||||
"actionType" : "ajax",
|
||||
"disabled" : true,
|
||||
"confirmText" : "确认要退档吗?",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/OA_BULLETINMANAGE_BACK",
|
||||
"data" : {
|
||||
"OA_BULLETINMANAGE_ID" : "${selectedItems[0].OA_BULLETINMANAGE_ID}"
|
||||
}
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "OA_BULLETINMANAGE_ID",
|
||||
"onEvent" : {
|
||||
"selectedChange" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "disabled",
|
||||
"componentId" : "退档"
|
||||
}, {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${event.data.selectedItems[0]}",
|
||||
"templateId" : "a4a1cf1b-bf56-49f5-a52b-802bc4fe6b0d"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user