This commit is contained in:
2026-08-14 16:06:30 +08:00
parent 1c1c48f8d3
commit d1b4a4d3f3
26 changed files with 187 additions and 29 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ describe('platform IAM roles', () => {
it('supports owner password reset, logical archive, and audited impersonation contracts', async () => {
const password = { newPassword: 'NewPassword#2026', forceChangePassword: true }
const archivedTenant = { id: '190000000000000099', tenantCode: 'TEN99', tenantName: '测试客户', status: 'DISABLED' }
const archivedTenant = { id: '190000000000000099', tenantCode: 'TEN99', tenantName: '测试客户', status: 'ARCHIVED' }
const impersonation = { code: 'ticket-code', ticketId: 'ticket-id', expiresIn: 60 }
vi.mocked(http.put).mockResolvedValue({ code: '200', message: 'success', data: null })
vi.mocked(http.post)
+1 -1
View File
@@ -22,7 +22,7 @@ export interface EnterpriseReview {
[key: string]: unknown
}
export type PlatformTenantStatus = 'PENDING' | 'ACTIVE' | 'REJECTED' | 'INACTIVE' | string
export type PlatformTenantStatus = 'PROFILE_REQUIRED' | 'PENDING' | 'ACTIVE' | 'REJECTED' | 'DISABLED' | 'ARCHIVED' | string
export interface PlatformTenantResource {
id: number | string
@@ -32,6 +32,7 @@ const statusLabels: Record<string, string> = {
REJECTED: '已驳回',
DISABLED: '已停用',
INACTIVE: '已停用',
ARCHIVED: '已归档',
}
function tenantLabel(tenant: PlatformTenantResource) {