feat(M08-D): 补设备运营后台

This commit is contained in:
Codex
2026-08-10 12:27:05 +08:00
parent 7c5f55cccf
commit 5c9fd697f3
6 changed files with 304 additions and 2 deletions
+18
View File
@@ -15,12 +15,14 @@ for (const pattern of [
"activeModule = 'payments'",
"activeModule = 'thirdParty'",
"activeModule = 'people'",
"activeModule = 'devices'",
'平台运营总览',
'StoresRoomsPanel',
'OrdersPanel',
'PaymentsPanel',
'ThirdPartyPanel',
'MembersStaffPanel',
'DevicesPanel',
'运营总览',
'savedToken',
'loadCleaningWorkspace'
@@ -159,6 +161,20 @@ for (const pattern of [
const userRoutes = read('backend/src/routes/user-management.ts');
assert.match(userRoutes, /userType: z\.enum\(\['STAFF'\]\)\.optional\(\)/);
const devices = read('admin/src/components/DevicesPanel.vue');
for (const pattern of [
'getDeviceTopology',
'createDeviceAsset',
'bindDeviceChannel',
'bindSubDevice',
'addDeviceMaintenance',
'controlDevice',
'openAlerts',
'Sub1G'
]) {
assert.match(devices, new RegExp(pattern));
}
const routes = read('backend/src/routes/business-statistics.ts');
assert.match(routes, /'\/app-api\/management\/statistics', '\/admin-api\/statistics'/);
@@ -194,6 +210,8 @@ for (const pattern of [
'.settings-preview',
'.people-metrics',
'.member-detail-grid',
'.device-metrics',
'.device-topology-grid',
'@media (max-width: 980px)',
'@media (max-width: 560px)'
]) {