Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
energyai_vue
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
葛齐林
energyai_vue
Commits
160de698
Commit
160de698
authored
Jul 05, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
d07633a8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
App.vue
src/App.vue
+4
-2
index.vue
src/pages/kb/outdoor/index.vue
+6
-1
No files found.
src/App.vue
View file @
160de698
...
@@ -199,7 +199,8 @@ export default {
...
@@ -199,7 +199,8 @@ export default {
//wsuri.substring(0, wsuri.indexOf(':'))
//wsuri.substring(0, wsuri.indexOf(':'))
if
(
wsuri
!=
null
&&
wsuri
.
indexOf
(
':'
)
<=
-
1
)
{
if
(
wsuri
!=
null
&&
wsuri
.
indexOf
(
':'
)
<=
-
1
)
{
// webpath = 'ws://59.110.43.122:8091/websocket/1001'
// webpath = 'ws://59.110.43.122:8091/websocket/1001'
webpath
=
'ws://10.20.2.33:8091/websocket/1001'
// webpath = 'ws://10.20.2.33:8091/websocket/1001'
webpath
=
'ws://192.168.0.222:8091/websocket/1001'
}
else
{
}
else
{
webpath
=
webpath
=
'ws:'
+
'ws:'
+
...
@@ -257,7 +258,8 @@ export default {
...
@@ -257,7 +258,8 @@ export default {
//wsuri.substring(0, wsuri.indexOf(':'))
//wsuri.substring(0, wsuri.indexOf(':'))
if
(
wsuri
!=
null
&&
wsuri
.
indexOf
(
':'
)
<=
-
1
)
{
if
(
wsuri
!=
null
&&
wsuri
.
indexOf
(
':'
)
<=
-
1
)
{
// webpath = 'ws://59.110.43.122:8091/websocket/1002'
// webpath = 'ws://59.110.43.122:8091/websocket/1002'
webpath
=
'ws://10.20.2.33:8091/websocket/1002'
// webpath = 'ws://10.20.2.33:8091/websocket/1002'
webpath
=
'ws://192.168.0.222:8091/websocket/1002'
}
else
{
}
else
{
webpath
=
webpath
=
'ws:'
+
'ws:'
+
...
...
src/pages/kb/outdoor/index.vue
View file @
160de698
...
@@ -229,7 +229,12 @@ export default {
...
@@ -229,7 +229,12 @@ export default {
this
.
typeList
[
5
].
num
=
this
.
socketData
.
carbon_dioxide
this
.
typeList
[
5
].
num
=
this
.
socketData
.
carbon_dioxide
this
.
typeList
[
6
].
num
=
this
.
socketData
.
fine_particles
this
.
typeList
[
6
].
num
=
this
.
socketData
.
fine_particles
this
.
typeList
[
7
].
num
=
this
.
socketData
.
radiation
this
.
typeList
[
7
].
num
=
this
.
socketData
.
radiation
this
.
typeList
[
8
].
num
=
this
.
socketData
.
region
if
(
this
.
socketData
.
status
==
4
)
{
this
.
typeList
[
8
].
num
=
1
}
else
{
this
.
typeList
[
8
].
num
=
0
}
//列表
//列表
for
(
var
i
=
0
;
i
<
this
.
dataList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
dataList
.
length
;
i
++
)
{
this
.
$set
(
this
.
dataList
[
i
],
'temperature'
,
this
.
socketData
.
temperature
)
this
.
$set
(
this
.
dataList
[
i
],
'temperature'
,
this
.
socketData
.
temperature
)
...
...
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