fix(web): limit protocol managers to active region leaders

Provide tenant-scoped leader options for the Web protocol form, exclude ordinary members and retain historical names only for display. Default only to a leader of the selected region and prevent delayed requests from replacing manual choices.

Refs #1. Add backend option isolation and Web cascade regression coverage.
This commit is contained in:
zlwu committed 2026-10-30 17:47:43 +08:00
1 parent f6cfce3315
commit d1347e8cea
6 files changed
+300 -61

No files matched your search

+8
View File
@@ -27,6 +27,14 @@ export function fetchCollectionProtocolList(params?: {
})
}
export type ProtocolRegionManager = { id: string; nickName: string; regionIds: string[] }
export function fetchProtocolRegionManagers() {
return request.get<{ list: ProtocolRegionManager[] }>({
url: '/web/admin/collection-protocols/region-managers'
})
}
export function fetchCollectionProtocolDetail(id: string) {
return request.get<{
protocol: Record<string, unknown>