Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
ocrCloudPlatformAdmin
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ocr-cloud-platform
ocrCloudPlatformAdmin
Commits
d083cfd0
Commit
d083cfd0
authored
May 07, 2024
by
杨琪琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更
parent
8dff59c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/main/resources/static/js/callSupervision/callChartOptions.js
+1
-1
src/main/resources/templates/callSupervision/index.html
+9
-3
No files found.
src/main/resources/static/js/callSupervision/callChartOptions.js
View file @
d083cfd0
...
...
@@ -104,7 +104,7 @@ var defaultXBarOptions = {
}
var
defaultYBarOptions
=
{
title
:
{
text
:
'服务器资源实时监控'
,
text
:
'
OCR
服务器资源实时监控'
,
textStyle
:
{
fontSize
:
'14px'
,
color
:
"#fff"
},
left
:
'center'
},
...
...
src/main/resources/templates/callSupervision/index.html
View file @
d083cfd0
...
...
@@ -199,7 +199,6 @@
initChart
(
'court-bar'
,
'Xbar'
,
'courtBarChart'
);
initChart
(
'ocr-hardware-chart'
,
'Ybar'
,
'hardwareBarChart'
)
callInterval
();
// 表单初始赋值
form
.
val
(
'areaForm'
,
{
isRegion
:
true
,
...
...
@@ -278,11 +277,14 @@
form
.
on
(
'radio(radio-time)'
,
function
(
data
)
{
restartBrokenLineInterval
();
});
callInterval
();
restartBrokenLineInterval
();
getServerMonitoring
(
true
);
monitorInterval
=
setInterval
(
function
()
{
getServerMonitoring
();
},
5000
)
// 表格初始
table
.
render
({
elem
:
'#call-table'
,
...
...
@@ -854,8 +856,7 @@
},
5000
)
}
// 页面即将销毁
$
(
window
).
on
(
'beforeunload'
,
function
()
{
function
stopInterval
()
{
if
(
monitorInterval
)
{
clearInterval
(
monitorInterval
)
}
...
...
@@ -868,6 +869,11 @@
if
(
tableInterval
)
{
clearInterval
(
tableInterval
)
}
}
// 页面即将销毁
$
(
window
).
on
(
'beforeunload'
,
function
()
{
stopInterval
();
window
.
removeEventListener
(
'resize'
,
function
()
{
if
(
timeLineChart
&&
timeLineChart
.
resize
)
{
timeLineChart
.
resize
();
...
...
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