Commit 2e517fb3 authored by 邓超's avatar 邓超

fix: 修改路由配置,打包配置

parent fef51370
Pipeline #50223 passed with stages
in 10 minutes 19 seconds
......@@ -19,7 +19,7 @@
"analyze": "node ./internals/scripts/analyze.js",
"npmcheckversion": "node ./internals/scripts/npmcheckversion.js",
"preinstall": "npm run npmcheckversion",
"build": "cross-env NODE_ENV=production node internals/webpack/clean.js",
"build": "cross-env NODE_ENV=production node --max_old_space_size=8192 internals/webpack/clean.js",
"build:inspect": "cross-env NODE_ENV=production node --inspect-brk ./node_modules/webpack/bin/webpack.js --config internals/webpack/webpack.prod.babel.js --color -p --progress --hide-modules --display-optimization-bailout",
"build:clean": "node ./internals/webpack/clean.js",
"push": "sh push.sh",
......
......@@ -9,6 +9,7 @@ import {
FileTextOutlined,
AppstoreOutlined,
FundProjectionScreenOutlined,
ReadOutlined,
} from '@ant-design/icons';
// 菜单
import UserLayout from '@/layouts/UserLayout';
......@@ -86,14 +87,14 @@ export default {
routes: [
{
path: '/solution',
name: '解决方案管理',
name: '解决方案',
icon: <SolutionOutlined style={iconStyle} />,
authority: superAuthority,
component: CurrentSolution,
},
{
path: '/dbm',
name: '数据库管理',
name: '数据库',
icon: <DatabaseOutlined style={iconStyle} />,
component: BlankLayout,
authority: adminAuthority,
......@@ -106,13 +107,13 @@ export default {
},
{
path: '/dbm/dbsm',
name: '数据库标准化管理',
name: '数据库升级',
authority: adminAuthority,
component: ManagementDataBase,
},
{
path: '/dbm/connectConfig',
name: '数据库连接配置',
name: '多数据源',
authority: adminAuthority,
component: DatabaseConnectConfig,
},
......@@ -120,13 +121,13 @@ export default {
},
{
path: '/userCenter',
name: '用户中心',
name: '组织架构',
component: BlankLayout,
icon: <UsergroupAddOutlined style={iconStyle} />,
routes: [
{
path: '/userCenter/UserManage',
name: '用户管理',
name: '机构管理',
component: UserManage,
},
{
......@@ -142,105 +143,37 @@ export default {
],
},
{
path: '/platformCenter',
component: BlankLayout,
name: '平台中心',
icon: <FundProjectionScreenOutlined style={iconStyle} />,
routes: [
{
path: '/platformCenter/gis',
name: 'GIS平台',
path: '/productCenter',
component: BlankLayout,
name: '应用搭建',
icon: <AppstoreOutlined style={iconStyle} />,
routes: [
{
path: '/platformCenter/gis/twoDimensionConfig',
name: '地图配置',
component: SchemeConfig,
},
{
path: '/platformCenter/gis/threeDimensionConfig',
name: '三维配置',
component: DimensionsConfig,
},
],
// routes: [{
// path: '/platformCenter/schemeConfig',
// name: '方案配置',
// component: SchemeConfig,
// }]
// tabs: [
// {
// tabName: '范围配置',
// url:
// '/web4/?widget=product/Tool/EditBoundary/EditBoundary&serverCollextion=JiangNing_JNGW&solution=熊猫智慧水务平台',
// },
// {
// tabName: '方案配置',
// url:
// '/web4/?widget=product/Tool/MapSettings/MapSettings|hideMap=true',
// },
// {
// tabName: '七参数配置',
// type: 'sevenParams',
// },
// ],
},
{
path: '/platformCenter/notify',
name: '消息平台',
component: MessageManager,
},
{
path: '/platformCenter/SchemeDetail',
name: '模板编辑',
component: SchemeDetail,
hideMenu: true,
},
{
path: '/platformCenter/emq',
name: '宿主管理',
url: '/web4/?widget=product/oms/MqttConfig/MqttConfig.js|hideMap=true',
component: HostManager,
path: '/productCenter/product',
name: '产品配置',
component: ProductConfig,
},
{
path: '/platformCenter/video',
name: '视频平台',
component: VideoManager,
path: '/productCenter/web',
name: 'Web搭建',
component: WebConfigPage,
},
{
path: '/platformCenter/iot',
name: '组态平台',
component: BaseFrameContainer,
// tabs: [
// {
// tabName: '模型类型',
// url:
// '/web4/?widget=configuration/ConfigurationsOperationV1/ModelTypeManage/ModelTypeManage|hideMap=true',
// },
// {
// tabName: '模型文件',
// url:
// '/web4/?widget=configuration/ConfigurationsOperationV1/ModelFileManage/ModelFileManage|hideMap=true',
// },
// {
// tabName: '画板管理',
// url:
// '/web4/?widget=configuration/ConfigurationsOperationV1/DrawBoardManage/DrawBoardManage|hideMap=true',
// },
// ],
path: '/productCenter/app',
name: 'Mobile搭建',
component: MobileConfigPage,
},
],
},
{
path: '/bsmanger',
component: BlankLayout,
name: '业务中心',
name: '台账/工作流',
icon: <CreditCardOutlined style={iconStyle} />,
routes: [
{
path: '/bsmanger/base',
name: '基础配置',
name: '台账',
component: BlankLayout,
routes: [
{
......@@ -256,14 +189,14 @@ export default {
},
{
path: '/bsmanger/base/standingBook',
name: '台账管理',
name: '台账列表',
component: StandingBook,
},
],
},
{
path: '/bsmanger/workOrder',
name: '工单管理',
name: '工作流',
component: BlankLayout,
routes: [
{
......@@ -309,41 +242,115 @@ export default {
],
},
{
path: '/productCenter',
path: '/platformCenter',
component: BlankLayout,
name: '应用中心',
icon: <AppstoreOutlined style={iconStyle} />,
name: '平台管理',
icon: <FundProjectionScreenOutlined style={iconStyle} />,
routes: [
{
path: '/productCenter/product',
name: '产品配置',
component: ProductConfig,
},
path: '/platformCenter/gis',
name: 'GIS平台',
component: BlankLayout,
routes: [
{
path: '/productCenter/web',
name: 'Web配置',
component: WebConfigPage,
path: '/platformCenter/gis/twoDimensionConfig',
name: '地图配置',
component: SchemeConfig,
},
{
path: '/productCenter/app',
name: '移动应用配置',
component: MobileConfigPage,
path: '/platformCenter/gis/threeDimensionConfig',
name: '三维配置',
component: DimensionsConfig,
},
],
// routes: [{
// path: '/platformCenter/schemeConfig',
// name: '方案配置',
// component: SchemeConfig,
// }]
// tabs: [
// {
// tabName: '范围配置',
// url:
// '/web4/?widget=product/Tool/EditBoundary/EditBoundary&serverCollextion=JiangNing_JNGW&solution=熊猫智慧水务平台',
// },
// {
// tabName: '方案配置',
// url:
// '/web4/?widget=product/Tool/MapSettings/MapSettings|hideMap=true',
// },
// {
// tabName: '七参数配置',
// type: 'sevenParams',
// },
// ],
},
{
path: '/dataCenter',
name: '数据中心',
icon: <TableOutlined style={iconStyle} />,
component: BlankLayout,
routes: [
path: '/platformCenter/notify',
name: '消息中心',
component: MessageManager,
},
{
path: '/platformCenter/SchemeDetail',
name: '模板编辑',
component: SchemeDetail,
hideMenu: true,
},
{
path: '/platformCenter/video',
name: '视频',
component: VideoManager,
},
{
path: '/platformCenter/iot',
name: '组态',
component: BaseFrameContainer,
// tabs: [
// {
// tabName: '模型类型',
// url:
// '/web4/?widget=configuration/ConfigurationsOperationV1/ModelTypeManage/ModelTypeManage|hideMap=true',
// },
// {
// tabName: '模型文件',
// url:
// '/web4/?widget=configuration/ConfigurationsOperationV1/ModelFileManage/ModelFileManage|hideMap=true',
// },
// {
// tabName: '画板管理',
// url:
// '/web4/?widget=configuration/ConfigurationsOperationV1/DrawBoardManage/DrawBoardManage|hideMap=true',
// },
// ],
},
{
path: '/platformCenter/emq',
name: '宿主管理',
url: '/web4/?widget=product/oms/MqttConfig/MqttConfig.js|hideMap=true',
component: HostManager,
},
],
},
{
path: '/dataCenter/dictionary',
name: '数据字典',
icon: <ReadOutlined style={iconStyle} />,
component: Dictionary,
},
],
},
// {
// path: '/dataCenter',
// name: '数据中心',
// icon: <TableOutlined style={iconStyle} />,
// component: BlankLayout,
// routes: [
// {
// path: '/dataCenter/dictionary',
// name: '数据字典',
// component: Dictionary,
// },
// ],
// },
{
path: '/log',
component: BlankLayout,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment