优化
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user