Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
2e517fb3
Commit
2e517fb3
authored
May 13, 2022
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改路由配置,打包配置
parent
fef51370
Pipeline
#50223
passed with stages
in 10 minutes 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
121 additions
and
114 deletions
+121
-114
package.json
package.json
+1
-1
config.js
src/routes/config.js
+120
-113
No files found.
package.json
View file @
2e517fb3
...
@@ -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"
,
...
...
src/routes/config.js
View file @
2e517fb3
...
@@ -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
:
'/p
latform
Center'
,
path
:
'/p
roduct
Center'
,
component
:
BlankLayout
,
component
:
BlankLayout
,
name
:
'
平台中心
'
,
name
:
'
应用搭建
'
,
icon
:
<
FundProjectionScreen
Outlined
style
=
{
iconStyle
}
/>
,
icon
:
<
Appstore
Outlined
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
:
'/p
latformCenter/video
'
,
path
:
'/p
roductCenter/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
:
'/p
roduct
Center'
,
path
:
'/p
latform
Center'
,
component
:
BlankLayout
,
component
:
BlankLayout
,
name
:
'
应用中心
'
,
name
:
'
平台管理
'
,
icon
:
<
Appstore
Outlined
style
=
{
iconStyle
}
/>
,
icon
:
<
FundProjectionScreen
Outlined
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
:
'/p
roductCenter/web
'
,
path
:
'/p
latformCenter/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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment