feat(M08-D): 补审计日志与系统配置
This commit is contained in:
@@ -19,6 +19,7 @@ for (const pattern of [
|
||||
"activeModule = 'platformApps'",
|
||||
"activeModule = 'content'",
|
||||
"activeModule = 'franchise'",
|
||||
"activeModule = 'system'",
|
||||
'平台运营总览',
|
||||
'StoresRoomsPanel',
|
||||
'OrdersPanel',
|
||||
@@ -29,6 +30,7 @@ for (const pattern of [
|
||||
'PlatformAppsPanel',
|
||||
'ContentManagementPanel',
|
||||
'FranchisePanel',
|
||||
'LogsSystemPanel',
|
||||
'运营总览',
|
||||
'savedToken',
|
||||
'loadCleaningWorkspace'
|
||||
@@ -219,6 +221,19 @@ const franchiseRoutes = read('backend/src/routes/franchise.ts');
|
||||
assert.match(franchiseRoutes, /'\/app-api\/franchise-applications'/);
|
||||
assert.match(franchiseRoutes, /'\/admin-api\/franchise-applications\/:id\/follow-ups'/);
|
||||
|
||||
const systemPanel = read('admin/src/components/LogsSystemPanel.vue');
|
||||
for (const pattern of ['listAuditLogs', 'getSystemOverview', 'updateTenantSystemConfig',
|
||||
'安全审计日志', '导出当前页', 'Schema 迁移', '脱敏元数据']) {
|
||||
assert.match(systemPanel, new RegExp(pattern));
|
||||
}
|
||||
const systemRoutes = read('backend/src/routes/system-operations.ts');
|
||||
assert.match(systemRoutes, /'\/admin-api\/audit-logs'/);
|
||||
assert.match(systemRoutes, /'\/admin-api\/system\/overview'/);
|
||||
assert.match(systemRoutes, /'\/admin-api\/system\/tenant'/);
|
||||
const systemRepository = read('backend/src/operations/system-operations-repository.ts');
|
||||
assert.match(systemRepository, /sanitizeMetadata/);
|
||||
assert.match(systemRepository, /TENANT_SYSTEM_CONFIG_UPDATED/);
|
||||
|
||||
const routes = read('backend/src/routes/business-statistics.ts');
|
||||
assert.match(routes, /'\/app-api\/management\/statistics', '\/admin-api\/statistics'/);
|
||||
|
||||
@@ -261,6 +276,8 @@ for (const pattern of [
|
||||
'.asset-gallery',
|
||||
'.component-editor',
|
||||
'.franchise-metrics',
|
||||
'.system-metrics',
|
||||
'.audit-filters',
|
||||
'@media (max-width: 980px)',
|
||||
'@media (max-width: 560px)'
|
||||
]) {
|
||||
|
||||
Reference in New Issue
Block a user