feat: 添加权限查询和管理机制

- 新增权限管理页面
- 改进轮询链,引入权限查询
- 支持订阅权限变更或轮询权限检测变更
- 应用权限到页面和组件
This commit is contained in:
yangsy
2026-01-22 10:34:37 +08:00
parent 82789c78a9
commit 0af52c62ce
53 changed files with 1129 additions and 131 deletions

View File

@@ -1,5 +1,6 @@
export const LINE_ALARMS_QUERY_KEY = 'line-alarms';
export const LINE_DEVICES_QUERY_KEY = 'line-devices';
export const LINE_STATIONS_QUERY_KEY = 'line-stations';
export const USER_PERMISSION_QUERY_KEY = 'user-permission';
export const VERIFY_USER_QUERY_KEY = 'verify-user';
export const VERSION_CHECK_QUERY_KEY = 'version-check';

View File

@@ -1,3 +1,3 @@
export const ALARM_TOPIC = '/topic/deviceAlarm';
export const PERMISSION_TOPIC = '/topic/permission';
export const SYNC_CAMERA_STATUS_TOPIC = '/topic/syncCameraStatus';

View File

@@ -1,5 +1,6 @@
export const NDM_ALARM_STORE_ID = 'ndm-alarm-store';
export const NDM_DEVICE_STORE_ID = 'ndm-device-store';
export const NDM_PERMISSION_STORE_ID = 'ndm-permission-store';
export const NDM_POLLIING_STORE_ID = 'ndm-polling-store';
export const NDM_SETTING_STORE_ID = 'ndm-setting-store';
export const NDM_STATION_STORE_ID = 'ndm-station-store';