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
53b6354a
Commit
53b6354a
authored
Dec 03, 2020
by
陈前坚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 菜单
parent
7e5d151d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
28 deletions
+59
-28
index.js
src/pages/log/omsLog/index.js
+6
-1
index.js
src/pages/log/serviceLog/index.js
+27
-17
index.js
src/pages/platformCenter/dictionary/index.js
+1
-1
config.js
src/routes/config.js
+25
-9
No files found.
src/pages/log/omsLog/index.js
View file @
53b6354a
...
...
@@ -117,6 +117,11 @@ const ServiceLog = () => {
},
];
// 在起止时间任意一个变化后获取数据
useEffect
(()
=>
{
if
(
startTime
&&
endTime
)
{
countInterval
();
}
},
[
startTime
,
endTime
]);
useEffect
(()
=>
{
// countInterval();
if
(
startTime
&&
endTime
)
{
...
...
@@ -246,7 +251,7 @@ const ServiceLog = () => {
<
Option
value
=
"-1"
>
错误
<
/Option
>
<
/Select
>
<
Search
//
allowClear
allowClear
style
=
{{
width
:
200
,
marginLeft
:
'20px'
}}
placeholder
=
"请输入接口名称"
onSearch
=
{()
=>
{
...
...
src/pages/log/serviceLog/index.js
View file @
53b6354a
...
...
@@ -69,21 +69,6 @@ const ServiceLog = () => {
dataIndex
:
'IP'
,
key
:
'IP'
,
},
{
title
:
'请求方法'
,
dataIndex
:
'Method'
,
key
:
'Method'
,
},
{
title
:
'查询参数'
,
dataIndex
:
'QueryString'
,
key
:
'QueryString'
,
},
{
title
:
'请求体'
,
dataIndex
:
'Body'
,
key
:
'Body'
,
},
{
title
:
'返回状态'
,
dataIndex
:
'Result'
,
...
...
@@ -99,6 +84,27 @@ const ServiceLog = () => {
title
:
'错误信息'
,
dataIndex
:
'ErrorMsg'
,
key
:
'ErrorMsg'
,
render
:
record
=>
{
if
(
!
record
)
{
return
'-'
;
}
return
record
;
},
},
{
title
:
'请求方法'
,
dataIndex
:
'Method'
,
key
:
'Method'
,
},
{
title
:
'查询参数'
,
dataIndex
:
'QueryString'
,
key
:
'QueryString'
,
},
{
title
:
'请求体'
,
dataIndex
:
'Body'
,
key
:
'Body'
,
},
{
title
:
'耗时/ms'
,
...
...
@@ -118,7 +124,11 @@ const ServiceLog = () => {
];
// 在起止时间任意一个变化后获取数据
useEffect
(()
=>
{
// countInterval();
if
(
startTime
&&
endTime
)
{
countInterval
();
// 根据起止时间计算时间间隔
}
},
[
startTime
,
endTime
]);
useEffect
(()
=>
{
if
(
startTime
&&
endTime
)
{
setLoading
(
true
);
getData
(
'/TrafficStatistics'
,
setVisitedCount
);
// 访问量统计
...
...
@@ -246,7 +256,7 @@ const ServiceLog = () => {
<
Option
value
=
"-1"
>
错误
<
/Option
>
<
/Select
>
<
Search
//
allowClear
allowClear
style
=
{{
width
:
200
,
marginLeft
:
'20px'
}}
placeholder
=
"请输入接口名称"
onSearch
=
{()
=>
{
...
...
src/pages/platformCenter/dictionary/index.js
View file @
53b6354a
...
...
@@ -14,7 +14,7 @@ const dictionary = () => {
<
TabPane
tab
=
"通用数据字典"
key
=
"1"
>
<
WebDic
/>
<
/TabPane
>
<
TabPane
tab
=
"
a
pp数据字典"
key
=
"2"
type
=
"card"
>
<
TabPane
tab
=
"
A
pp数据字典"
key
=
"2"
type
=
"card"
>
<
AppDic
/>
<
/TabPane
>
<
/Tabs
>
...
...
src/routes/config.js
View file @
53b6354a
...
...
@@ -76,12 +76,6 @@ export default {
component
:
BlankLayout
,
authority
:
adminAuthority
,
routes
:
[
// {
// path: '/dbm/solution',
// name: '数据库解决方案',
// authority: superAuthority,
// component: CurrentSolution,
// },
{
path
:
'/dbm/dbInit'
,
name
:
'数据库连接'
,
...
...
@@ -156,6 +150,28 @@ export default {
},
],
},
{
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: '工单平台',
...
...
@@ -194,7 +210,7 @@ export default {
},
{
path
:
'/platformCenter/dictionary'
,
name
:
'数据
字典
'
,
name
:
'数据
中心
'
,
component
:
Dictionary
,
},
],
...
...
@@ -208,12 +224,12 @@ export default {
routes
:
[
{
path
:
'/productCenter/web'
,
name
:
'
w
eb配置'
,
name
:
'
W
eb配置'
,
component
:
WebConfigPage
,
},
{
path
:
'/productCenter/app'
,
name
:
'
a
pp配置'
,
name
:
'
A
pp配置'
,
component
:
AppConfigPage
,
},
{
...
...
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