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>
194 lines
5.7 KiB
JSON
194 lines
5.7 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "用户类别管理",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/SYS_CATEGORY_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "CATEGORYNAME",
|
|
"label" : "用户类别",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "类别描述",
|
|
"type" : "input-text"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "SYS_CATEGORY_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "CATEGORYNAME",
|
|
"label" : "类别名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "类别描述",
|
|
"width" : 400
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加用户类别",
|
|
"label" : "添加用户类别",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加用户类别",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/5f601bd6-b96a-4536-826f-9150a92f680d?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/SYS_CATEGORY/defaults?templateId=5f601bd6-b96a-4536-826f-9150a92f680d"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/SYS_CATEGORY_ADD?__egtpl=5f601bd6-b96a-4536-826f-9150a92f680d",
|
|
"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/5f601bd6-b96a-4536-826f-9150a92f680d?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/SYS_CATEGORY_LOAD?__egtpl=5f601bd6-b96a-4536-826f-9150a92f680d",
|
|
"data" : {
|
|
"SYS_CATEGORY_ID" : "${SYS_CATEGORY_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/SYS_CATEGORY_UPDATE?__egtpl=5f601bd6-b96a-4536-826f-9150a92f680d",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "删除用户类别",
|
|
"label" : "删除用户类别",
|
|
"actionType" : "ajax",
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/SYS_CATEGORY_DELETE",
|
|
"data" : {
|
|
"SYS_CATEGORY_ID" : "${selectedItems[0].SYS_CATEGORY_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/54c4fcd0-558a-457b-9de7-e7f83924aaca?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/SYS_CATEGORY_LOAD?__egtpl=54c4fcd0-558a-457b-9de7-e7f83924aaca",
|
|
"data" : {
|
|
"SYS_CATEGORY_ID" : "${SYS_CATEGORY_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/aa0c2aea-f4bc-48ad-bc69-f39fe0c1c3d3?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/SYS_CATEGORY_LOAD?__egtpl=aa0c2aea-f4bc-48ad-bc69-f39fe0c1c3d3",
|
|
"data" : {
|
|
"SYS_CATEGORY_ID" : "${SYS_CATEGORY_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/SYS_CATEGORY_UPDATE?__egtpl=aa0c2aea-f4bc-48ad-bc69-f39fe0c1c3d3",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "SYS_CATEGORY_ID"
|
|
}
|
|
} |