Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
H
hnsd
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
liubinyu
hnsd
Commits
59be599b
Commit
59be599b
authored
Dec 08, 2020
by
liubinyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关闭socket输入,防止内存持续占用
parent
22619aa8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
CrewMonitoring.vue
src/views/CrewMonitoring.vue
+2
-2
Factory.vue
src/views/Factory.vue
+1
-1
FactoryMonitoring.vue
src/views/FactoryMonitoring.vue
+1
-1
Index.vue
src/views/Index.vue
+1
-1
No files found.
src/views/CrewMonitoring.vue
View file @
59be599b
...
@@ -212,7 +212,7 @@
...
@@ -212,7 +212,7 @@
this
.
socket
.
onmessage
=
msg
=>
{
this
.
socket
.
onmessage
=
msg
=>
{
try
{
try
{
const
data
=
JSON
.
parse
(
msg
.
data
);
const
data
=
JSON
.
parse
(
msg
.
data
);
console
.
log
(
'socket_crew data'
,
msg
);
//
console.log('socket_crew data', msg);
// console.log('socket_crew data', data);
// console.log('socket_crew data', data);
if
(
!
data
)
return
;
if
(
!
data
)
return
;
data
.
xAxis
=
data
.
xaxis
.
map
(
i
=>
dateFormat
(
new
Date
(
i
*
1000
),
'YY/MM/DD
\
nHH:mm:ss'
));
data
.
xAxis
=
data
.
xaxis
.
map
(
i
=>
dateFormat
(
new
Date
(
i
*
1000
),
'YY/MM/DD
\
nHH:mm:ss'
));
...
@@ -524,7 +524,7 @@
...
@@ -524,7 +524,7 @@
.win-item-left
{
.win-item-left
{
text-align
:
right
;
text-align
:
right
;
margin-right
:
1rem
;
margin-right
:
1rem
;
width
:
60
%
;
width
:
55
%
;
}
}
.win-item-right
{
.win-item-right
{
text-align
:
left
;
text-align
:
left
;
...
...
src/views/Factory.vue
View file @
59be599b
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
this
.
socket
.
onmessage
=
msg
=>
{
this
.
socket
.
onmessage
=
msg
=>
{
try
{
try
{
const
data
=
JSON
.
parse
(
msg
.
data
);
const
data
=
JSON
.
parse
(
msg
.
data
);
console
.
log
(
'socket_factory data'
,
msg
);
//
console.log('socket_factory data', msg);
// console.log('socket_factory data', data);
// console.log('socket_factory data', data);
if
(
!
data
)
return
;
if
(
!
data
)
return
;
this
.
socketData
=
data
;
this
.
socketData
=
data
;
...
...
src/views/FactoryMonitoring.vue
View file @
59be599b
...
@@ -232,7 +232,7 @@
...
@@ -232,7 +232,7 @@
.left
{
.left
{
text-align
:
right
;
text-align
:
right
;
margin-right
:
1rem
;
margin-right
:
1rem
;
width
:
5
5
%
;
width
:
5
0
%
;
}
}
.right
{
.right
{
text-align
:
left
;
text-align
:
left
;
...
...
src/views/Index.vue
View file @
59be599b
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
this
.
socket
.
onmessage
=
msg
=>
{
this
.
socket
.
onmessage
=
msg
=>
{
try
{
try
{
const
data
=
JSON
.
parse
(
msg
.
data
);
const
data
=
JSON
.
parse
(
msg
.
data
);
console
.
log
(
'socket_all data'
,
msg
);
//
console.log('socket_all data', msg);
// console.log('socket_all data', data);
// console.log('socket_all data', data);
if
(
!
data
)
return
;
if
(
!
data
)
return
;
this
.
$store
.
commit
(
'allData'
,
data
);
this
.
$store
.
commit
(
'allData'
,
data
);
...
...
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