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
02941768
Commit
02941768
authored
Apr 13, 2021
by
xiexingan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
室外气象站
parent
cee6fdcb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
index.vue
src/pages/kb/outdoor/index.vue
+26
-6
No files found.
src/pages/kb/outdoor/index.vue
View file @
02941768
...
@@ -109,8 +109,13 @@ card-warp(title="室外气象数据", height="45px", showBackground)
...
@@ -109,8 +109,13 @@ card-warp(title="室外气象数据", height="45px", showBackground)
@parentMethod="getDataList"
@parentMethod="getDataList"
)
)
.echartsWarp(v-else, width="100%", flex)
.echartsWarp(v-else, width="100%", flex)
div(v-for='item in chartList' :key='item.id')
div(v-for="item in chartList", :key="item.id")
chart(:id="item.id", :data="data", :title="item.title", :color="item.color")
chart(
:id="item.id",
:data="data",
:title="item.title",
:color="item.color"
)
div
div
pie
pie
history(
history(
...
@@ -177,18 +182,33 @@ export default {
...
@@ -177,18 +182,33 @@ export default {
]
]
}
}
},
},
mounted
()
{
this
.
getDataList
()
},
methods
:
{
methods
:
{
toggle
()
{
// 获取数据
this
.
showList
=
!
this
.
showList
getDataList
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/kanban/getSwqxzInfoTj'
),
method
:
'get'
,
params
:
{
type
:
'9a570e608d0840499551eca89d76449d'
//室外气象站
}
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
console
.
log
(
'数据'
,
data
)
}
})
},
},
getDataList
()
{},
showParams
(
data
,
type
)
{
showParams
(
data
,
type
)
{
console
.
log
(
111
)
console
.
log
(
111
)
this
.
historyVisible
=
true
this
.
historyVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
history
.
init
(
data
,
type
)
this
.
$refs
.
history
.
init
(
data
,
type
)
})
})
},
toggle
()
{
this
.
showList
=
!
this
.
showList
}
}
}
}
}
}
...
...
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