|
|
|
@ -51,16 +51,16 @@ export async function getInitialState(): Promise<{
|
|
|
|
|
success: true,
|
|
|
|
|
data: {
|
|
|
|
|
routes: [
|
|
|
|
|
{
|
|
|
|
|
"path": "/welcome",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "welcome",
|
|
|
|
|
"icon": "HomeOutlined",
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "Welcome",
|
|
|
|
|
"title": "首页",
|
|
|
|
|
"routes": []
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// "path": "/welcome",
|
|
|
|
|
// "key": "",
|
|
|
|
|
// "name": "welcome",
|
|
|
|
|
// "icon": "HomeOutlined",
|
|
|
|
|
// "access": "",
|
|
|
|
|
// "component": "Welcome",
|
|
|
|
|
// "title": "首页",
|
|
|
|
|
// "routes": []
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
"path": "/realTime",
|
|
|
|
|
"key": "",
|
|
|
|
@ -70,26 +70,26 @@ export async function getInitialState(): Promise<{
|
|
|
|
|
"component": "",
|
|
|
|
|
"title": "实时分析",
|
|
|
|
|
"routes": [
|
|
|
|
|
// {
|
|
|
|
|
// "access": "",
|
|
|
|
|
// "component": "Alarm/AlarmList",
|
|
|
|
|
// "icon": "",
|
|
|
|
|
// "key": "",
|
|
|
|
|
// "name": "alarm-list",
|
|
|
|
|
// "path": "/realTime/alarm-list",
|
|
|
|
|
// "routes": [],
|
|
|
|
|
// "title": "告警列表",
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "access": "",
|
|
|
|
|
// "component": "Alarm/AlarmRules",
|
|
|
|
|
// "icon": "",
|
|
|
|
|
// "key": "",
|
|
|
|
|
// "name": "alarm_rules",
|
|
|
|
|
// "path": "/realTime/alarm_rules",
|
|
|
|
|
// "routes": [],
|
|
|
|
|
// "title": "告警规则",
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "Alarm/AlarmList",
|
|
|
|
|
"icon": "",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "alarm-list",
|
|
|
|
|
"path": "/realTime/alarm-list",
|
|
|
|
|
"routes": [],
|
|
|
|
|
"title": "告警列表",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "Alarm/AlarmRules",
|
|
|
|
|
"icon": "",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "alarm_rules",
|
|
|
|
|
"path": "/realTime/alarm_rules",
|
|
|
|
|
"routes": [],
|
|
|
|
|
"title": "告警规则",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "Alarm/InvolvedList",
|
|
|
|
@ -102,26 +102,26 @@ export async function getInitialState(): Promise<{
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"path": "/alarm/alarm-list",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "alarm-list",
|
|
|
|
|
"icon": "WarningOutlined",
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "Hidden",
|
|
|
|
|
"title": "告警列表",
|
|
|
|
|
"routes": []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"path": "alarm_rules",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "alarm_rules",
|
|
|
|
|
"icon": "OrderedListOutlined",
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "Hidden",
|
|
|
|
|
"title": "告警规则",
|
|
|
|
|
"routes": []
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// "path": "/alarm/alarm-list",
|
|
|
|
|
// "key": "",
|
|
|
|
|
// "name": "alarm-list",
|
|
|
|
|
// "icon": "WarningOutlined",
|
|
|
|
|
// "access": "",
|
|
|
|
|
// "component": "Hidden",
|
|
|
|
|
// "title": "告警列表",
|
|
|
|
|
// "routes": []
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "path": "alarm_rules",
|
|
|
|
|
// "key": "",
|
|
|
|
|
// "name": "alarm_rules",
|
|
|
|
|
// "icon": "OrderedListOutlined",
|
|
|
|
|
// "access": "",
|
|
|
|
|
// "component": "Hidden",
|
|
|
|
|
// "title": "告警规则",
|
|
|
|
|
// "routes": []
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "path": "involved-list",
|
|
|
|
|
// "key": "",
|
|
|
|
@ -133,45 +133,86 @@ export async function getInitialState(): Promise<{
|
|
|
|
|
// "routes": []
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
"path": "interfaceManage",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "interfaceManage",
|
|
|
|
|
"icon": "BranchesOutlined",
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "Hidden",
|
|
|
|
|
"title": "接口管理",
|
|
|
|
|
"routes": []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"path": "userList",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "userList",
|
|
|
|
|
"icon": "UserOutlined",
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "Hidden",
|
|
|
|
|
"title": "用户列表",
|
|
|
|
|
"routes": []
|
|
|
|
|
"path": "/offline",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "offline",
|
|
|
|
|
"icon": "WarningOutlined",
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "",
|
|
|
|
|
"title": "离线分析",
|
|
|
|
|
"routes": [
|
|
|
|
|
{
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "VideoAnalysis",
|
|
|
|
|
"icon": "",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "videoAnalysis",
|
|
|
|
|
"path": "/offline/videoAnalysis",
|
|
|
|
|
"routes": [],
|
|
|
|
|
"title": "视频分析",
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// "access": "",
|
|
|
|
|
// "component": "Alarm/AlarmRules",
|
|
|
|
|
// "icon": "",
|
|
|
|
|
// "key": "",
|
|
|
|
|
// "name": "alarm_rules",
|
|
|
|
|
// "path": "/offline/alarm_rules",
|
|
|
|
|
// "routes": [],
|
|
|
|
|
// "title": "告警规则",
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "Alarm/InvolvedListUpload",
|
|
|
|
|
"icon": "",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "involved-list-upload",
|
|
|
|
|
"path": "/offline/involved-list-upload",
|
|
|
|
|
"routes": [],
|
|
|
|
|
"title": "重点关注(上传)",
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"path": "videoAnalysis",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "videoAnalysis",
|
|
|
|
|
"icon": "VideoCameraOutlined",
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "Hidden",
|
|
|
|
|
"title": "视频分析",
|
|
|
|
|
"routes": []
|
|
|
|
|
"path": "interfaceManage",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "interfaceManage",
|
|
|
|
|
"icon": "BranchesOutlined",
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "Hidden",
|
|
|
|
|
"title": "接口管理",
|
|
|
|
|
"routes": []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"path": "involved-list-upload",
|
|
|
|
|
"key": "",
|
|
|
|
|
"name": "involved-list-upload",
|
|
|
|
|
"icon": "FileSearchOutlined",
|
|
|
|
|
"access": "",
|
|
|
|
|
"component": "Hidden",
|
|
|
|
|
"title": "重点关注(上传)",
|
|
|
|
|
"routes": []
|
|
|
|
|
}
|
|
|
|
|
// {
|
|
|
|
|
// "path": "userList",
|
|
|
|
|
// "key": "",
|
|
|
|
|
// "name": "userList",
|
|
|
|
|
// "icon": "UserOutlined",
|
|
|
|
|
// "access": "",
|
|
|
|
|
// "component": "Hidden",
|
|
|
|
|
// "title": "用户列表",
|
|
|
|
|
// "routes": []
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "path": "videoAnalysis",
|
|
|
|
|
// "key": "",
|
|
|
|
|
// "name": "videoAnalysis",
|
|
|
|
|
// "icon": "VideoCameraOutlined",
|
|
|
|
|
// "access": "",
|
|
|
|
|
// "component": "Hidden",
|
|
|
|
|
// "title": "视频分析",
|
|
|
|
|
// "routes": []
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "path": "involved-list-upload",
|
|
|
|
|
// "key": "",
|
|
|
|
|
// "name": "involved-list-upload",
|
|
|
|
|
// "icon": "FileSearchOutlined",
|
|
|
|
|
// "access": "",
|
|
|
|
|
// "component": "Hidden",
|
|
|
|
|
// "title": "重点关注(上传)",
|
|
|
|
|
// "routes": []
|
|
|
|
|
// }
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
msg: "获取成功"
|
|
|
|
|