master_basic
鲁誉程 1 year ago
parent b3bc2c1573
commit c0808b902d

@ -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',

@ -26,10 +26,10 @@ const leftMenuType: any = {
'密钥管理': <LeftMenuOne key={5} data={MenuType['密钥管理']} />,
'邮箱管理': <LeftMenuOne key={6} data={MenuType['邮箱管理']} />,
// SB管理
'设备管理': <div />,
'日志管理': <div />,
'审计管理': <div />,
'境外任务管理': <div />,
'设备管理': <LeftMenuOne key={7} data={MenuType['设备管理']}/>,
'日志管理': <LeftMenuTwo key={8} data={MenuType['日志管理']}/>,
'审计管理': <LeftMenuTwo key={9} data={MenuType['审计管理']}/>,
'境外任务管理': <LeftMenuTwo key={10} data={MenuType['境外任务管理']}/>,
// SF管理
'算法资源管理': <div />,
'算法配置管理': <div />,
@ -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}`)

@ -0,0 +1,9 @@
import styles from './index.less';
export default function Page() {
return (
<div>
</div>
);
}

@ -0,0 +1,9 @@
import styles from './index.less';
export default function Page() {
return (
<div>
</div>
);
}

@ -0,0 +1,9 @@
import styles from './index.less';
export default function Page() {
return (
<div>
</div>
);
}

@ -0,0 +1,9 @@
import styles from './index.less';
export default function Page() {
return (
<div>
</div>
);
}

@ -0,0 +1,9 @@
import styles from './index.less';
export default function Page() {
return (
<div>
</div>
);
}

@ -0,0 +1,18 @@
import { history } from 'umi';
import { Button, Result } from 'antd';
import React from 'react';
const NoFoundPage: React.FC = () => (
<Result
status="404"
title="建设中"
subTitle="建设中"
extra={
<Button type="primary" onClick={() => history.push('/')}>
</Button>
}
/>
);
export default NoFoundPage;

@ -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: '' },
]
},
],
'日志管理': [],
'审计管理': [],
'境外任务管理': [],
}
Loading…
Cancel
Save