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>
284 lines
8.3 KiB
JSON
284 lines
8.3 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "用户组管理",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/SYS_USERGROUP_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "NAME",
|
|
"label" : "名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "DESCRIPTION",
|
|
"label" : "说明",
|
|
"type" : "input-text"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "SYS_USERGROUP_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "NAME",
|
|
"label" : "名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "DESCRIPTION",
|
|
"label" : "说明",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "USERS",
|
|
"label" : "用户",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ROLES",
|
|
"label" : "角色",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加用户组",
|
|
"label" : "添加用户组",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加用户组",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/b3482a80-8676-4037-83c7-9a9c293fc8dc?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/SYS_USERGROUP/defaults?templateId=b3482a80-8676-4037-83c7-9a9c293fc8dc"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/SYS_USERGROUP_ADD?__egtpl=b3482a80-8676-4037-83c7-9a9c293fc8dc",
|
|
"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/b3482a80-8676-4037-83c7-9a9c293fc8dc?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/SYS_USERGROUP_LOAD?__egtpl=b3482a80-8676-4037-83c7-9a9c293fc8dc",
|
|
"data" : {
|
|
"SYS_USERGROUP_ID" : "${SYS_USERGROUP_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/SYS_USERGROUP_UPDATE?__egtpl=b3482a80-8676-4037-83c7-9a9c293fc8dc",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "删除用户组",
|
|
"label" : "删除用户组",
|
|
"actionType" : "ajax",
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/SYS_USERGROUP_DELETE",
|
|
"data" : {
|
|
"SYS_USERGROUP_ID" : "${selectedItems[0].SYS_USERGROUP_ID}"
|
|
}
|
|
},
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
|
|
}, {
|
|
"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/16f53655-db1d-44ae-9f41-f6cec9b230f7?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/SYS_USERGROUP_LOAD?__egtpl=16f53655-db1d-44ae-9f41-f6cec9b230f7",
|
|
"data" : {
|
|
"SYS_USERGROUP_ID" : "${SYS_USERGROUP_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"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/8cace9d5-7fb0-4c71-bd46-d5a82e6ba6f9?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/SYS_USERGROUP_LOAD?__egtpl=8cace9d5-7fb0-4c71-bd46-d5a82e6ba6f9",
|
|
"data" : {
|
|
"SYS_USERGROUP_ID" : "${SYS_USERGROUP_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/SYS_USERGROUP_UPDATE?__egtpl=8cace9d5-7fb0-4c71-bd46-d5a82e6ba6f9",
|
|
"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/c1590e17-6719-477a-a9dd-8b09dfb2d86b?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/SYS_USERGROUP_LOAD?__egtpl=c1590e17-6719-477a-a9dd-8b09dfb2d86b",
|
|
"data" : {
|
|
"SYS_USERGROUP_ID" : "${SYS_USERGROUP_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/SYS_USERGROUP_UPDATE?__egtpl=c1590e17-6719-477a-a9dd-8b09dfb2d86b",
|
|
"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/d76e0803-6654-4089-845f-d7ddc6451fe6?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/SYS_USERGROUP_LOAD?__egtpl=d76e0803-6654-4089-845f-d7ddc6451fe6",
|
|
"data" : {
|
|
"SYS_USERGROUP_ID" : "${SYS_USERGROUP_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/SYS_USERGROUP_ADD?__egtpl=d76e0803-6654-4089-845f-d7ddc6451fe6",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "SYS_USERGROUP_ID"
|
|
}
|
|
} |