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
4a5d76df
Commit
4a5d76df
authored
Apr 15, 2021
by
xiexingan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
parent
fee0d87e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
index.vue
src/pages/kb/outdoor/index.vue
+12
-11
No files found.
src/pages/kb/outdoor/index.vue
View file @
4a5d76df
...
@@ -207,7 +207,9 @@ export default {
...
@@ -207,7 +207,9 @@ export default {
watch
:
{
watch
:
{
socketData
:
{
socketData
:
{
handler
(
n
,
o
)
{
handler
(
n
,
o
)
{
if
(
n
)
{
this
.
setTypeList
()
this
.
setTypeList
()
}
},
},
deep
:
true
deep
:
true
}
}
...
@@ -229,16 +231,15 @@ export default {
...
@@ -229,16 +231,15 @@ export default {
this
.
typeList
[
7
].
num
=
this
.
socketData
.
radiation
this
.
typeList
[
7
].
num
=
this
.
socketData
.
radiation
this
.
typeList
[
8
].
num
=
this
.
socketData
.
region
this
.
typeList
[
8
].
num
=
this
.
socketData
.
region
//列表
//列表
this
.
dataList
[
0
].
temperature
=
this
.
socketData
.
temperature
for
(
var
i
=
0
;
i
<
this
.
dataList
.
length
;
i
++
)
{
this
.
dataList
[
0
].
humidity
=
this
.
socketData
.
humidity
this
.
$set
(
this
.
dataList
[
i
],
'temperature'
,
this
.
socketData
.
temperature
)
this
.
dataList
[
0
].
wind_speed
=
this
.
socketData
.
wind_speed
this
.
$set
(
this
.
dataList
[
i
],
'humidity'
,
this
.
socketData
.
humidity
)
this
.
dataList
[
0
].
Illuminance
=
this
.
socketData
.
Illuminance
this
.
$set
(
this
.
dataList
[
i
],
'wind_speed'
,
this
.
socketData
.
wind_speed
)
this
.
dataList
[
0
].
carbon_dioxide
=
this
.
socketData
.
carbon_dioxide
this
.
$set
(
this
.
dataList
[
i
],
'Illuminance'
,
this
.
socketData
.
Illuminance
)
this
.
dataList
[
0
].
fine_particles
=
this
.
socketData
.
fine_particles
this
.
$set
(
this
.
dataList
[
i
],
'carbon_dioxide'
,
this
.
socketData
.
carbon_dioxide
)
this
.
dataList
[
0
].
radiation
=
this
.
socketData
.
radiation
this
.
$set
(
this
.
dataList
[
i
],
'fine_particles'
,
this
.
socketData
.
fine_particles
)
// for (var i = 0; i
<
this
.
dataList
.
length
;
i
++
)
{
this
.
$set
(
this
.
dataList
[
i
],
'radiation'
,
this
.
socketData
.
radiation
)
// this.$set(this.dataList[i], 'temperature', this.socketData.temperature)
}
// }
},
},
csHandle
()
{
csHandle
()
{
this
.
$http
({
this
.
$http
({
...
...
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