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

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

parent fef51370
Pipeline #50223 passed with stages
in 10 minutes 19 seconds
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"analyze": "node ./internals/scripts/analyze.js", "analyze": "node ./internals/scripts/analyze.js",
"npmcheckversion": "node ./internals/scripts/npmcheckversion.js", "npmcheckversion": "node ./internals/scripts/npmcheckversion.js",
"preinstall": "npm run npmcheckversion", "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: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", "build:clean": "node ./internals/webpack/clean.js",
"push": "sh push.sh", "push": "sh push.sh",
......
...@@ -9,6 +9,7 @@ import { ...@@ -9,6 +9,7 @@ import {
FileTextOutlined, FileTextOutlined,
AppstoreOutlined, AppstoreOutlined,
FundProjectionScreenOutlined, FundProjectionScreenOutlined,
ReadOutlined,
} from '@ant-design/icons'; } from '@ant-design/icons';
// 菜单 // 菜单
import UserLayout from '@/layouts/UserLayout'; import UserLayout from '@/layouts/UserLayout';
...@@ -86,14 +87,14 @@ export default { ...@@ -86,14 +87,14 @@ export default {
routes: [ routes: [
{ {
path: '/solution', path: '/solution',
name: '解决方案管理', name: '解决方案',
icon: <SolutionOutlined style={iconStyle} />, icon: <SolutionOutlined style={iconStyle} />,
authority: superAuthority, authority: superAuthority,
component: CurrentSolution, component: CurrentSolution,
}, },
{ {
path: '/dbm', path: '/dbm',
name: '数据库管理', name: '数据库',
icon: <DatabaseOutlined style={iconStyle} />, icon: <DatabaseOutlined style={iconStyle} />,
component: BlankLayout, component: BlankLayout,
authority: adminAuthority, authority: adminAuthority,
...@@ -106,13 +107,13 @@ export default { ...@@ -106,13 +107,13 @@ export default {
}, },
{ {
path: '/dbm/dbsm', path: '/dbm/dbsm',
name: '数据库标准化管理', name: '数据库升级',
authority: adminAuthority, authority: adminAuthority,
component: ManagementDataBase, component: ManagementDataBase,
}, },
{ {
path: '/dbm/connectConfig', path: '/dbm/connectConfig',
name: '数据库连接配置', name: '多数据源',
authority: adminAuthority, authority: adminAuthority,
component: DatabaseConnectConfig, component: DatabaseConnectConfig,
}, },
...@@ -120,13 +121,13 @@ export default { ...@@ -120,13 +121,13 @@ export default {
}, },
{ {
path: '/userCenter', path: '/userCenter',
name: '用户中心', name: '组织架构',
component: BlankLayout, component: BlankLayout,
icon: <UsergroupAddOutlined style={iconStyle} />, icon: <UsergroupAddOutlined style={iconStyle} />,
routes: [ routes: [
{ {
path: '/userCenter/UserManage', path: '/userCenter/UserManage',
name: '用户管理', name: '机构管理',
component: UserManage, component: UserManage,
}, },
{ {
...@@ -142,105 +143,37 @@ export default { ...@@ -142,105 +143,37 @@ export default {
], ],
}, },
{ {
path: '/platformCenter', path: '/productCenter',
component: BlankLayout, component: BlankLayout,
name: '平台中心', name: '应用搭建',
icon: <FundProjectionScreenOutlined style={iconStyle} />, icon: <AppstoreOutlined style={iconStyle} />,
routes: [ routes: [
{ {
path: '/platformCenter/gis', path: '/productCenter/product',
name: 'GIS平台', name: '产品配置',
component: BlankLayout, component: ProductConfig,
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: '/platformCenter/video', path: '/productCenter/web',
name: '视频平台', name: 'Web搭建',
component: VideoManager, component: WebConfigPage,
}, },
{ {
path: '/platformCenter/iot', path: '/productCenter/app',
name: '组态平台', name: 'Mobile搭建',
component: BaseFrameContainer, component: MobileConfigPage,
// 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: '/bsmanger', path: '/bsmanger',
component: BlankLayout, component: BlankLayout,
name: '业务中心', name: '台账/工作流',
icon: <CreditCardOutlined style={iconStyle} />, icon: <CreditCardOutlined style={iconStyle} />,
routes: [ routes: [
{ {
path: '/bsmanger/base', path: '/bsmanger/base',
name: '基础配置', name: '台账',
component: BlankLayout, component: BlankLayout,
routes: [ routes: [
{ {
...@@ -256,14 +189,14 @@ export default { ...@@ -256,14 +189,14 @@ export default {
}, },
{ {
path: '/bsmanger/base/standingBook', path: '/bsmanger/base/standingBook',
name: '台账管理', name: '台账列表',
component: StandingBook, component: StandingBook,
}, },
], ],
}, },
{ {
path: '/bsmanger/workOrder', path: '/bsmanger/workOrder',
name: '工单管理', name: '工作流',
component: BlankLayout, component: BlankLayout,
routes: [ routes: [
{ {
...@@ -309,41 +242,115 @@ export default { ...@@ -309,41 +242,115 @@ export default {
], ],
}, },
{ {
path: '/productCenter', path: '/platformCenter',
component: BlankLayout, component: BlankLayout,
name: '应用中心', name: '平台管理',
icon: <AppstoreOutlined style={iconStyle} />, icon: <FundProjectionScreenOutlined style={iconStyle} />,
routes: [ routes: [
{ {
path: '/productCenter/product', path: '/platformCenter/gis',
name: '产品配置', name: 'GIS平台',
component: ProductConfig, component: BlankLayout,
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: '/productCenter/web', path: '/platformCenter/notify',
name: 'Web配置', name: '消息中心',
component: WebConfigPage, component: MessageManager,
}, },
{ {
path: '/productCenter/app', path: '/platformCenter/SchemeDetail',
name: '移动应用配置', name: '模板编辑',
component: MobileConfigPage, component: SchemeDetail,
hideMenu: true,
}, },
],
},
{
path: '/dataCenter',
name: '数据中心',
icon: <TableOutlined style={iconStyle} />,
component: BlankLayout,
routes: [
{ {
path: '/dataCenter/dictionary', path: '/platformCenter/video',
name: '数据字典', name: '视频',
component: Dictionary, 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', path: '/log',
component: BlankLayout, 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