1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
import React from 'react';
import {
DatabaseOutlined,
UsergroupAddOutlined,
SettingOutlined,
HomeOutlined,
SolutionOutlined,
// AndroidOutlined,
// CommentOutlined,
TableOutlined,
CopyOutlined,
} from '@ant-design/icons';
import UserLayout from '../layouts/UserLayout';
import Login from '../pages/user/login';
import BasicLayout from '../layouts/BasicLayout';
import BlankLayout from '../layouts/BlankLayout';
import RequestTest from '../pages/testPages/request';
import InitDataBase from '../pages/database/InitDataBase';
import ManagementDataBase from '../pages/database/ManagementDataBase';
import DatabaseConnectConfig from '@/pages/database/databaseConfig/DatabaseConfig';
import CurrentSolution from '@/pages/database/CurrentSolution';
import UserManage from '../pages/userCenter/userManage/UserManage';
import RoleManage from '@/pages/userCenter/roleManage/RoleManage';
import SiteManage from '../pages/userCenter/siteManage/SiteManage';
import SiteManageV2 from '../pages/userCenter/siteManageV2/SiteManage';
import Dictionary from '../pages/dataCenter/dictionary';
import Dictionary1 from '../pages/dataCenter/dictionary1';
import ServiceLog from '../pages/log/serviceLog';
import LoginLog from '../pages/log/loginLog';
import OmsLog from '../pages/log/omsLog';
// import DefaultComponent from '../pages/orgnazation/DefaultComponent';
import TestTable from '../pages/orgnazation/TestTable';
import WebConfigPage from '@/pages/webConfig';
// import AppConfigPage from '@/pages/appConfig';
import MobileConfigPage from '@/pages/mobileConfig';
import ProductConfig from '@/pages/webConfig/productConfig';
import { USER_MODE } from '@/utils/constants';
import BaseFrameContainer from '@/components/BaseFrameContainer';
import JumpContainer from '@/components/JumpContainer';
import HostManager from '@/pages/platformCenter/hostmanager';
import MessageManager from '@/pages/platformCenter/messageManage';
import VideoManager from '@/pages/platformCenter/videoManager';
import SchemeDetail from '@/pages/platformCenter/schemeDetail/schemeDetail';
import SchemeConfig from '@/pages/platformCenter/schemeConfig/schemeConfig';
import DimensionsConfig from '@/pages/platformCenter/dimensionsConfig/dimensionsConfig';
import TaskScheduling from '@/pages/artificial/taskScheduling/taskScheduling';
import PoliciesIssued from '@/pages/artificial/policiesIssued/policiesIssued';
import AuthControl from '@/pages/authcontrol';
import TableManager from '@/pages/platformCenter/bsmanager/tablemanager'
import StandingBook from '@/pages/platformCenter/standingBook/standingBook'
import FiledConfig from '@/pages/platformCenter/filedConfig/filedConfig'
import Incident from '@/pages/platformCenter/bsmanager/workOrder/incident';
import Flow from '@/pages/platformCenter/bsmanager/workOrder/flow';
// import ColConen from '@/components/Colophon/colContent';
const iconStyle = { verticalAlign: '0.125em' };
const superAuthority = [USER_MODE.SUPER];
const adminAuthority = [...superAuthority, USER_MODE.ADMIN];
// const commonAuthority = [...adminAuthority, USER_MODE.COMMON];
export default {
routes: [
{
path: '/user',
component: UserLayout,
hideMenu: true,
routes: [
{
name: 'login',
path: '/user/login',
component: Login,
},
],
},
{
path: '/test/request',
hideMenu: true,
component: RequestTest,
},
{
path: '/',
component: BasicLayout,
routes: [
{
path: '/solution',
name: '解决方案管理',
icon: <SolutionOutlined style={iconStyle} />,
authority: superAuthority,
component: CurrentSolution,
},
{
path: '/dbm',
name: '数据库管理',
icon: <DatabaseOutlined style={iconStyle} />,
component: BlankLayout,
authority: adminAuthority,
routes: [
{
path: '/dbm/dbInit',
name: '数据库连接',
authority: adminAuthority,
component: InitDataBase,
},
{
path: '/dbm/dbsm',
name: '数据库标准化管理',
authority: adminAuthority,
component: ManagementDataBase,
},
{
path: '/dbm/connectConfig',
name: '数据库连接配置',
authority: adminAuthority,
component: DatabaseConnectConfig,
},
{
path: '/dbm/authcontrol',
name: '数据鉴权',
authority: superAuthority,
component: AuthControl,
},
],
},
{
path: '/userCenter',
name: '用户中心',
component: BlankLayout,
icon: <UsergroupAddOutlined style={iconStyle} />,
routes: [
{
path: '/userCenter/UserManage',
name: '用户管理',
component: UserManage,
},
{
path: '/userCenter/RoleManage',
name: '角色管理',
component: RoleManage,
},
{
path: '/userCenter/SiteManage',
name: '站点管理',
component: SiteManageV2,
},
],
},
{
path: '/userCenter/testTable',
name: '测试表格',
hideMenu: true,
component: TestTable,
},
{
path: '/platformCenter',
component: BlankLayout,
name: '平台中心',
icon: <SettingOutlined style={iconStyle} />,
routes: [
{
path: '/platformCenter/gis',
name: 'GIS平台',
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: '/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/order',
// name: '业务平台',
// component: JumpContainer,
// },
{
path: '/platformCenter/artificial',
component: BlankLayout,
name: '智能平台',
icon: <CopyOutlined style={iconStyle} />,
routes: [
{
path: '/platformCenter/artificial/policiesIssued',
name: '方案管理',
component: PoliciesIssued,
},
{
path: '/platformCenter/artificial/taskScheduling',
name: '任务调度',
component: TaskScheduling,
},
],
},
{
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/bsmanger',
component: BlankLayout,
name: '业务平台',
icon: <CopyOutlined style={iconStyle} />,
routes: [
{
path: '/platformCenter/bsmanger/tablemanger',
name: '表/字段',
component: TableManager,
},
{
path: '/platformCenter/bsmanger/filedConfig/:id',
name: '字段配置',
component: FiledConfig,
hideMenu: true,
},
{
path: '/platformCenter/bsmanger/standingBook',
name: '台账管理',
component: StandingBook,
},
{
path: '/platformCenter/bsmanger/incident',
name: '事件',
component: Incident,
},
{
path: '/platformCenter/bsmanger/flow',
name: '流程',
component: Flow,
},
// {
// path: '/platformCenter/bsmanger/standbookmanager',
// name: '台账配置',
// component: TableManager,
// }
],
},
{
path: '/platformCenter/video',
name: '视频平台',
component: VideoManager,
}
],
},
{
path: '/productCenter',
component: BlankLayout,
name: '应用中心',
icon: <HomeOutlined style={iconStyle} />,
routes: [
{
path: '/productCenter/product',
name: '产品配置',
component: ProductConfig,
},
{
path: '/productCenter/web',
name: 'Web配置',
component: WebConfigPage,
},
{
path: '/productCenter/app',
name: '移动应用配置',
component: MobileConfigPage,
},
],
},
{
path: '/dataCenter',
name: '数据中心',
icon: <TableOutlined style={iconStyle} />,
component: BlankLayout,
routes: [
// {
// path: '/dataCenter/dictionary',
// name: '数据字典',
// component: Dictionary,
// },
{
path: '/dataCenter/dictionary1',
name: '数据字典',
component: Dictionary1,
}
// {
// path: '/dataCenter/video',
// name: '视频管理',
// url:
// '/web4/?widget=product/oms/VideoConfig/VideoConfig|hideMap=true&videoType=萤石云',
// component: BaseFrameContainer,
// },
],
},
{
path: '/log',
component: BlankLayout,
name: '系统日志',
icon: <CopyOutlined style={iconStyle} />,
routes: [
{
path: '/log/service',
name: '服务监控',
component: ServiceLog,
},
{
path: '/log/login',
name: '登录日志',
component: LoginLog,
},
{
path: '/log/omsLog',
name: '运维痕迹',
component: OmsLog,
},
],
},
],
},
],
};