From c0808b902d911efcbc80e3832a267be204117b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E8=AA=89=E7=A8=8B?= <2659568239@qq.com> Date: Fri, 24 Nov 2023 10:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes/index.ts | 51 +++++++++++++++++ src/layouts/index.tsx | 31 ++++++---- src/pages/MY/{ => KeyBodyManage}/index.less | 0 src/pages/MY/{ => KeyBodyManage}/index.tsx | 0 src/pages/{SB => MY/KeyManage}/index.less | 0 src/pages/{SB => MY/KeyManage}/index.tsx | 0 src/pages/MY/MailboxManage/index.less | 0 src/pages/MY/MailboxManage/index.tsx | 9 +++ src/pages/SB/AuditManage/index.less | 0 src/pages/SB/AuditManage/index.tsx | 9 +++ src/pages/SB/DeviceManage/index.less | 0 src/pages/SB/DeviceManage/index.tsx | 9 +++ src/pages/SB/LogManage/index.less | 0 src/pages/SB/LogManage/index.tsx | 9 +++ src/pages/SB/OverseasTaskManage/index.less | 0 src/pages/SB/OverseasTaskManage/index.tsx | 9 +++ src/pages/construction.tsx | 18 ++++++ src/utils/menu.ts | 63 +++++++++++++-------- 18 files changed, 173 insertions(+), 35 deletions(-) rename src/pages/MY/{ => KeyBodyManage}/index.less (100%) rename src/pages/MY/{ => KeyBodyManage}/index.tsx (100%) rename src/pages/{SB => MY/KeyManage}/index.less (100%) rename src/pages/{SB => MY/KeyManage}/index.tsx (100%) create mode 100644 src/pages/MY/MailboxManage/index.less create mode 100644 src/pages/MY/MailboxManage/index.tsx create mode 100644 src/pages/SB/AuditManage/index.less create mode 100644 src/pages/SB/AuditManage/index.tsx create mode 100644 src/pages/SB/DeviceManage/index.less create mode 100644 src/pages/SB/DeviceManage/index.tsx create mode 100644 src/pages/SB/LogManage/index.less create mode 100644 src/pages/SB/LogManage/index.tsx create mode 100644 src/pages/SB/OverseasTaskManage/index.less create mode 100644 src/pages/SB/OverseasTaskManage/index.tsx create mode 100644 src/pages/construction.tsx diff --git a/config/routes/index.ts b/config/routes/index.ts index 0445a1a..4f58830 100644 --- a/config/routes/index.ts +++ b/config/routes/index.ts @@ -12,6 +12,7 @@ const routes = [ { path: '/teamViewer/otherCommand', name: '其他命令', component: '@/pages/GLQ/TeamViewer/OtherCommand' }, // --------------------------------------------------------------------------- + // ------------------------------网络MMJ管理---------------------------------- { path: '/webMMJ/mmjInitInstall', name: 'MMJ初装', component: '@/pages/GLQ/WebMMJ/MmjInitInstall' }, { path: '/webMMJ/statusQuery', name: '状态查询', component: '@/pages/GLQ/WebMMJ/StatusQuery' }, @@ -20,6 +21,7 @@ const routes = [ { path: '/webMMJ/mmjRemoteKill', name: 'MMJ遥毙', component: '@/pages/GLQ/WebMMJ/MmjRemoteKill' }, // --------------------------------------------------------------------------- + // ------------------------------网络GLQ配置---------------------------------- // 获取配置信息 { path: '/webGLQ/serviceListInfo', name: '服务列表信息', component: '@/pages/GLQ/WebGLQ/ServiceListInfo' }, @@ -37,6 +39,55 @@ const routes = [ { path: '/webMMJ/vpnPolicy', name: 'VPN策略', component: '@/pages/GLQ/WebGLQ/VpnPolicy' }, // --------------------------------------------------------------------------- + + // ------------------------------MY管理---------------------------------- + // 密钥体管理 + // { path: '/KeyBodyManage/name', name: '密钥体格式导入', component: '@/pages/MY/KeyBodyManage/name' }, + // { path: '/KeyBodyManage/name', name: '密钥体格式发布', component: '@/pages/MY/KeyBodyManage/name' }, + // { path: '/KeyBodyManage/name', name: '密钥体申请', component: '@/pages/MY/KeyBodyManage/name' }, + // { path: '/KeyBodyManage/name', name: '密钥体导入', component: '@/pages/MY/KeyBodyManage/name' }, + // { path: '/KeyBodyManage/name', name: '密钥体接收单', component: '@/pages/MY/KeyBodyManage/name' }, + // { path: '/KeyBodyManage/name', name: '已清理密钥体', component: '@/pages/MY/KeyBodyManage/name' }, + // { path: '/KeyBodyManage/name', name: '密钥体代号对照表', component: '@/pages/MY/KeyBodyManage/name' }, + // { path: '/KeyBodyManage/name', name: '向下级配发', component: '@/pages/MY/KeyBodyManage/name' }, + // { path: '/KeyBodyManage/name', name: '向邮箱配发', component: '@/pages/MY/KeyBodyManage/name' }, + // { path: '/KeyBodyManage/name', name: '向专用密码管理系统配发', component: '@/pages/MY/KeyBodyManage/name' }, + // { path: '/KeyBodyManage/name', name: '密钥体配发三联单', component: '@/pages/MY/KeyBodyManage/name' }, + // { path: '/KeyBodyManage/name', name: '明文载体包封', component: '@/pages/MY/KeyBodyManage/name' }, + // { path: '/KeyBodyManage/name', name: '密文载体包封', component: '@/pages/MY/KeyBodyManage/name' }, + // 密钥管理 + // { path: '/KeyManage/name', name: '管理系统管理盘数据维护', component: '@/pages/MY/KeyManage/name' }, + // { path: '/KeyManage/name', name: '统型完善普密设备密钥互通关系配置', component: '@/pages/MY/KeyManage/name' }, + // { path: '/KeyManage/name', name: '管理密钥装配', component: '@/pages/MY/KeyManage/name' }, + // { path: '/KeyManage/name', name: '用户密钥装配', component: '@/pages/MY/KeyManage/name' }, + // { path: '/KeyManage/name', name: '专用密钥装配', component: '@/pages/MY/KeyManage/name' }, + // { path: '/KeyManage/name', name: '密钥配置查询', component: '@/pages/MY/KeyManage/name' }, + // { path: '/KeyManage/name', name: '密钥配发三联单', component: '@/pages/MY/KeyManage/name' }, + // 邮箱管理 + { path: '/mailboxManage/index', name: '邮箱管理', component: '@/pages/MY/MailboxManage/index' }, + // --------------------------------------------------------------------------- + + + // ------------------------------SB管理---------------------------------- + // 设备管理 + // { path: '/DeviceManage/name', name: '执勤区配置', component: '@/pages/SB/DeviceManage/name' }, + // { path: '/DeviceManage/name', name: '数据同步', component: '@/pages/SB/DeviceManage/name' }, + // { path: '/DeviceManage/name', name: '远程维护', component: '@/pages/SB/DeviceManage/name' }, + // { path: '/DeviceManage/name', name: '报号维护', component: '@/pages/SB/DeviceManage/name' }, + // 日志管理 + { path: '/logManage/index', name: '日志管理', component: '@/pages/SB/LogManage/index' }, + // 审计管理 + { path: '/auditManage/index', name: '审计管理', component: '@/pages/SB/AuditManage/index' }, + // 境外任务管理 + { path: '/overseasTaskManage/index', name: '境外任务管理', component: '@/pages/SB/OverseasTaskManage/index' }, + // --------------------------------------------------------------------------- + + // 建设中页面 + { + path: '/construction', + component: '@/pages/construction' + }, + { path: '*', component: '@/pages/404', diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx index 83d2b43..a778a88 100644 --- a/src/layouts/index.tsx +++ b/src/layouts/index.tsx @@ -26,10 +26,10 @@ const leftMenuType: any = { '密钥管理': , '邮箱管理': , // SB管理 - '设备管理':
, - '日志管理':
, - '审计管理':
, - '境外任务管理':
, + '设备管理': , + '日志管理': , + '审计管理': , + '境外任务管理': , // SF管理 '算法资源管理':
, '算法配置管理':
, @@ -55,6 +55,13 @@ export default function Layout() { useEffect(() => { if (tabList.length > 0) { setActiveName(tabList[0].name) + + let info = MenuType[tabList[0].name]; + if (info[0].data) { + history.push(`${info[0].data[0].url}`) + }else { + history.push(`${info[0].url}`) + } } }, [selectVal]) @@ -104,16 +111,18 @@ export default function Layout() { onClick={() => { let info = MenuType[item.name]; - if (info[0].data && info[0].data.length == 0) { - setActive(tabList[0].id) - setActiveName(tabList[0].name) - message.info(item.name + '模块正在建设中!') - return - } - setActive(item.id) setActiveName(item.name) + if (info.length == 0 || info[0].data && info[0].data.length == 0) { + history.push('/construction'); + // 暂时屏蔽 + // setActive(tabList[0].id) + // setActiveName(tabList[0].name) + // message.info(item.name + '模块正在建设中!') + return + } + // 改变activeName时跳转菜单栏的第一个路由 if (info[0].data) { history.push(`${info[0].data[0].url}`) diff --git a/src/pages/MY/index.less b/src/pages/MY/KeyBodyManage/index.less similarity index 100% rename from src/pages/MY/index.less rename to src/pages/MY/KeyBodyManage/index.less diff --git a/src/pages/MY/index.tsx b/src/pages/MY/KeyBodyManage/index.tsx similarity index 100% rename from src/pages/MY/index.tsx rename to src/pages/MY/KeyBodyManage/index.tsx diff --git a/src/pages/SB/index.less b/src/pages/MY/KeyManage/index.less similarity index 100% rename from src/pages/SB/index.less rename to src/pages/MY/KeyManage/index.less diff --git a/src/pages/SB/index.tsx b/src/pages/MY/KeyManage/index.tsx similarity index 100% rename from src/pages/SB/index.tsx rename to src/pages/MY/KeyManage/index.tsx diff --git a/src/pages/MY/MailboxManage/index.less b/src/pages/MY/MailboxManage/index.less new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/MY/MailboxManage/index.tsx b/src/pages/MY/MailboxManage/index.tsx new file mode 100644 index 0000000..e2bb92e --- /dev/null +++ b/src/pages/MY/MailboxManage/index.tsx @@ -0,0 +1,9 @@ +import styles from './index.less'; + +export default function Page() { + return ( +
+ 正在建设中 +
+ ); +} diff --git a/src/pages/SB/AuditManage/index.less b/src/pages/SB/AuditManage/index.less new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/SB/AuditManage/index.tsx b/src/pages/SB/AuditManage/index.tsx new file mode 100644 index 0000000..1f24c5c --- /dev/null +++ b/src/pages/SB/AuditManage/index.tsx @@ -0,0 +1,9 @@ +import styles from './index.less'; + +export default function Page() { + return ( +
+ +
+ ); +} diff --git a/src/pages/SB/DeviceManage/index.less b/src/pages/SB/DeviceManage/index.less new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/SB/DeviceManage/index.tsx b/src/pages/SB/DeviceManage/index.tsx new file mode 100644 index 0000000..1f24c5c --- /dev/null +++ b/src/pages/SB/DeviceManage/index.tsx @@ -0,0 +1,9 @@ +import styles from './index.less'; + +export default function Page() { + return ( +
+ +
+ ); +} diff --git a/src/pages/SB/LogManage/index.less b/src/pages/SB/LogManage/index.less new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/SB/LogManage/index.tsx b/src/pages/SB/LogManage/index.tsx new file mode 100644 index 0000000..1f24c5c --- /dev/null +++ b/src/pages/SB/LogManage/index.tsx @@ -0,0 +1,9 @@ +import styles from './index.less'; + +export default function Page() { + return ( +
+ +
+ ); +} diff --git a/src/pages/SB/OverseasTaskManage/index.less b/src/pages/SB/OverseasTaskManage/index.less new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/SB/OverseasTaskManage/index.tsx b/src/pages/SB/OverseasTaskManage/index.tsx new file mode 100644 index 0000000..1f24c5c --- /dev/null +++ b/src/pages/SB/OverseasTaskManage/index.tsx @@ -0,0 +1,9 @@ +import styles from './index.less'; + +export default function Page() { + return ( +
+ +
+ ); +} diff --git a/src/pages/construction.tsx b/src/pages/construction.tsx new file mode 100644 index 0000000..2dcc6b5 --- /dev/null +++ b/src/pages/construction.tsx @@ -0,0 +1,18 @@ +import { history } from 'umi'; +import { Button, Result } from 'antd'; +import React from 'react'; + +const NoFoundPage: React.FC = () => ( + history.push('/')}> + 回到主页 + + } + /> +); + +export default NoFoundPage; diff --git a/src/utils/menu.ts b/src/utils/menu.ts index c3ccf7a..82a20eb 100644 --- a/src/utils/menu.ts +++ b/src/utils/menu.ts @@ -1,37 +1,37 @@ export const tabsType: any = { 1: [ - {id: 1, name: 'GLQ远程维护',}, - {id: 2, name: '网络MMJ管理'}, - {id: 3, name: '网络GLQ配置'} + { id: 1, name: 'GLQ远程维护', }, + { id: 2, name: '网络MMJ管理' }, + { id: 3, name: '网络GLQ配置' } ], 2: [ - {id: 1, name: '密钥体管理'}, - {id: 2, name: '密钥管理'}, - {id: 3, name: '邮箱管理'} + { id: 1, name: '密钥体管理' }, + { id: 2, name: '密钥管理' }, + { id: 3, name: '邮箱管理' } ], 3: [ - {id: 1, name: '设备管理'}, - {id: 2, name: '日志管理'}, - {id: 3, name: '审计管理'}, - {id: 4, name: '境外任务管理'} + { id: 1, name: '设备管理' }, + { id: 2, name: '日志管理' }, + { id: 3, name: '审计管理' }, + { id: 4, name: '境外任务管理' } ], 4: [ - {id: 1, name: '算法资源管理'}, - {id: 2, name: '算法配置管理'}, - {id: 3, name: '算法托收管理'}, - {id: 4, name: '算法邮箱管理'} + { id: 1, name: '算法资源管理' }, + { id: 2, name: '算法配置管理' }, + { id: 3, name: '算法托收管理' }, + { id: 4, name: '算法邮箱管理' } ], 5: [ - {id: 1, name: '设备监控二维版'} + { id: 1, name: '设备监控二维版' } ], 6: [ - {id: 1, name: '注册管理'}, - {id: 2, name: '位置管理'} + { id: 1, name: '注册管理' }, + { id: 2, name: '位置管理' } ], } export const MenuType: any = { - 'GLQ远程维护' : [ + 'GLQ远程维护': [ { name: '建立远程连接', check: true, @@ -48,14 +48,14 @@ export const MenuType: any = { ] }, ], - '网络MMJ管理' : [ + '网络MMJ管理': [ { name: 'MMJ初装', url: '/webMMJ/mmjInitInstall', img: '' }, { name: '状态查询', url: '/webMMJ/statusQuery', img: '' }, { name: '密钥销毁', url: '/webMMJ/keyDestruction', img: '' }, { name: '密钥遥毙', url: '/webMMJ/keyRemoteKill', img: '' }, { name: 'MMJ遥毙', url: '/webMMJ/mmjRemoteKill', img: '' }, ], - '网络GLQ配置' : [ + '网络GLQ配置': [ { name: '获取配置信息', check: true, @@ -80,7 +80,7 @@ export const MenuType: any = { ] }, ], - '密钥体管理' : [ + '密钥体管理': [ { name: '密钥体格式管理', check: true, @@ -88,7 +88,7 @@ export const MenuType: any = { { name: '密钥体格式导入', url: '', img: '' }, { name: '密钥体格式发布', url: '', img: '' }, ] - },{ + }, { name: '密钥体申请', check: true, data: [ @@ -121,7 +121,7 @@ export const MenuType: any = { ] }, ], - '密钥管理' : [ + '密钥管理': [ { name: '密钥装配', check: true, @@ -141,8 +141,23 @@ export const MenuType: any = { { name: '密钥载体包封', check: true, data: [] }, { name: '数据同步', check: true, data: [] } ], - '邮箱管理' : [ + '邮箱管理': [ { name: '设置通知方式', check: true, data: [] }, { name: '下载控制', check: true, data: [] }, ], + '设备管理': [ + { + name: '系统配置', + check: true, + data: [ + { name: '执勤区配置', url: '', img: '' }, + { name: '数据同步', url: '', img: '' }, + { name: '远程维护', url: '', img: '' }, + { name: '报号维护', url: '', img: '' }, + ] + }, + ], + '日志管理': [], + '审计管理': [], + '境外任务管理': [], } \ No newline at end of file