hr-system/wwwroot/data_scope.ui

52 lines
2.2 KiB
XML

{
"name": "data_scope",
"title": "人员数据范围管理(F11)",
"type": "tabpanel",
"items": [
{
"type": "grid",
"columns": [
{"field": "username", "title": "管理员账号", "width": 120},
{"field": "real_name", "title": "姓名", "width": 120},
{"field": "scope_type", "title": "范围类型", "width": 100},
{"field": "org_ids", "title": "组织维度(含子树)", "width": 260},
{"field": "field_ids", "title": "花名册字段维度", "width": 260},
{"field": "remark", "title": "备注", "width": 160},
{"field": "updated_at", "title": "更新时间", "width": 160}
],
"api": {
"list": {"endpoint": "scope_list"},
"save": {"endpoint": "scope_save"},
"delete": {"endpoint": "scope_delete"}
},
"toolbar": ["refresh"]
},
{
"type": "form",
"title": "数据范围配置",
"fields": [
{"field": "admin_user_id", "title": "管理员", "type": "select", "optionsApi": {"endpoint": "admin_list"}, "required": true},
{"field": "scope_type", "title": "范围类型", "type": "select", "options": [
{"value": "org", "label": "组织维度"},
{"value": "field", "label": "花名册字段维度"},
{"value": "all", "label": "双维度同时启用"}
], "default": "org"},
{"field": "org_ids", "title": "组织部门(含子树)", "type": "org-tree", "multiple": true},
{"field": "field_ids", "title": "花名册字段白名单", "type": "multi-select", "optionsApi": {"endpoint": "roster_field_def_options"}},
{"field": "remark", "title": "备注", "type": "text"}
],
"api": {"submit": {"endpoint": "scope_save"}}
},
{
"type": "panel",
"title": "叠加机制说明",
"items": [
{
"type": "text",
"text": "数据范围按管理员账号唯一配置:组织维度(org_unit 子树自动展开)与花名册字段维度(可见字段白名单)叠加生效。多角色时组织取并集、字段取并集;未配置字段维度则该角色字段不受限。系统管理员(admin/sys_admin)拥有全组织全字段范围。"
}
]
}
]
}