Files
eip4-platform/转换产物-attach/schema/de7c8e28-c910-4553-9ad0-d53fddcdf93e.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

257 lines
7.9 KiB
JSON

{
"type" : "page",
"title" : "图片管理-资料员",
"body" : {
"type" : "grid",
"columns" : [ {
"md" : 3,
"body" : {
"type" : "input-tree",
"name" : "tree",
"showOutline" : true,
"initiallyOpen" : true,
"virtualThreshold" : 100000,
"className" : "eip4-treegrid-tree",
"id" : "treegrid_tree",
"source" : "/api/template/3a5efa11-2b6b-43d8-aceb-c4e34f3b06e7/tree"
}
}, {
"md" : 9,
"body" : {
"type" : "crud",
"id" : "treegrid_crud",
"syncLocation" : false,
"api" : "/api/template/treegrid?treeRef=3a5efa11-2b6b-43d8-aceb-c4e34f3b06e7&gridTable=PM_DATUMPICTURE&rcol=FOLDERID&node=${tree}&page=${page}&perPage=${perPage}",
"selectable" : true,
"checkOnItemClick" : true,
"headerToolbar" : [ {
"type" : "button",
"id" : "添加",
"label" : "添加",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "添加",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/c0960cee-b531-44e7-9f27-23eeac86e308?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/PM_DATUMPICTURE/defaults?templateId=c0960cee-b531-44e7-9f27-23eeac86e308"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_DATUMPICTURE_ADD?__egtpl=c0960cee-b531-44e7-9f27-23eeac86e308",
"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]}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/c0960cee-b531-44e7-9f27-23eeac86e308?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_DATUMPICTURE_UPDATE_LOAD?__egtpl=c0960cee-b531-44e7-9f27-23eeac86e308",
"data" : {
"PM_DATUMPICTURE_ID" : "${PM_DATUMPICTURE_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_DATUMPICTURE_UPDATE?__egtpl=c0960cee-b531-44e7-9f27-23eeac86e308",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "删除",
"label" : "删除",
"level" : "danger",
"actionType" : "ajax",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"confirmText" : "确认要删除此记录吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_DATUMPICTURE_DELETE",
"data" : {
"ids" : "${selectedItems|pick:PM_DATUMPICTURE_ID|join:','}"
}
}
}, "pagination" ],
"primaryField" : "PM_DATUMPICTURE_ID",
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "PROJECTID",
"label" : "工程名称",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"value" : "${currentProject}"
}, {
"name" : "PICTURENAME",
"label" : "图片名称",
"type" : "input-text"
}, {
"name" : "SHOOTPART",
"label" : "拍摄部位",
"type" : "input-text"
}, {
"name" : "SHOOTCONTENT",
"label" : "拍摄内容",
"type" : "input-text"
}, {
"name" : "SHOOTER",
"label" : "拍摄人",
"type" : "input-text"
}, {
"name" : "SHOOTDATE",
"label" : "拍摄日期",
"type" : "input-date-range"
}, {
"name" : "CREATETIME",
"label" : "插入时间",
"type" : "input-date-range"
}, {
"name" : "ISIMPORT",
"label" : "图片级别",
"hidden" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_isImport"
} ]
},
"columns" : [ {
"name" : "PM_DATUMPICTURE_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "LOOKLINK",
"label" : "查看",
"width" : 40
}, {
"name" : "ISIMPORT",
"label" : "图片级别",
"width" : 100,
"type" : "mapping",
"map" : {
"1" : "上传",
"0" : "不上传"
},
"toggled" : false
}, {
"name" : "PICTURENAME",
"label" : "图片名称",
"width" : 200
}, {
"name" : "SHOOTPART",
"label" : "拍摄部位",
"width" : 200
}, {
"name" : "SHOOTCONTENT",
"label" : "拍摄内容",
"width" : 200
}, {
"name" : "SHOOTER",
"label" : "拍摄人",
"width" : 100
}, {
"name" : "SHOOTDATE",
"label" : "拍摄日期",
"width" : 100,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "CREATETIME",
"label" : "插入时间",
"width" : 60,
"type" : "datetime",
"format" : "YYYY-MM-DD HH:mm",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "PICTUREPOSTFIX",
"label" : "图片类型",
"width" : 200,
"toggled" : false
}, {
"name" : "PICTUREPATH",
"label" : "图片地址",
"width" : 200,
"toggled" : false
}, {
"name" : "PICTURETHUMBNAILPATH",
"label" : "图片缩略图地址",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTID_DISPLAY__",
"label" : "工程名称",
"width" : 200,
"toggled" : false
}, {
"name" : "FOLDERID_DISPLAY__",
"label" : "所属目录",
"width" : 200,
"toggled" : false
}, {
"name" : "PICTUREID",
"label" : "序号",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTTASKID_DISPLAY__",
"label" : "关联任务",
"width" : 100
} ]
}
} ]
}
}