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
25e9a077
Commit
25e9a077
authored
Apr 16, 2021
by
xiexingan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
8b7a106d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
chart.vue
src/pages/components/chart.vue
+6
-2
page.vue
src/pages/home/page.vue
+4
-2
No files found.
src/pages/components/chart.vue
View file @
25e9a077
...
...
@@ -7,8 +7,12 @@ div(:id="id", :style="{ width: '100%', height: '90%' }")
export
default
{
props
:
[
'id'
,
'data'
,
'title'
,
'color'
,
'yAxisName'
],
watch
:
{
data
()
{
this
.
initChart
()
data
:
{
immediate
:
true
,
deep
:
true
,
handler
(
newValue
,
oldValue
)
{
this
.
initChart
()
}
}
},
mounted
()
{
...
...
src/pages/home/page.vue
View file @
25e9a077
...
...
@@ -166,7 +166,7 @@
<!--
<energy-total-charts></energy-total-charts>
-->
<chart
id=
"home"
:data=
"data
List.energyList
"
:data=
"data"
title=
"能耗统计"
color=
"#21ACFC"
ref=
"chart"
...
...
@@ -209,7 +209,7 @@ export default {
cardListLeftTitle
:
'能耗统计'
,
cardListRightTitle
:
'旅客满意度调查'
,
activeIndex
:
0
,
dataList
:
this
.
$store
.
state
.
d2admin
.
paramsList
.
list
.
syBean
||
[]
,
dataList
:
[]
||
this
.
$store
.
state
.
d2admin
.
paramsList
.
list
.
syBean
,
dateList
:
[
{
value
:
0
,
...
...
@@ -233,6 +233,8 @@ export default {
if
(
data
&&
data
.
code
===
0
)
{
console
.
log
(
'首页:'
,
data
)
this
.
dataList
=
data
.
bean
this
.
data
=
data
.
bean
.
energyList
//默认
}
})
},
...
...
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