Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
country-energy-ecological-construction
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
范加坤
country-energy-ecological-construction
Commits
9702c210
Commit
9702c210
authored
Aug 06, 2021
by
吕超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步表格样式,格式化图例位数
parent
db66523d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
17 deletions
+31
-17
Lengend.vue
src/components/Lengend/Lengend.vue
+22
-12
sortList.vue
src/pages/biomassEnergyWarm/components/sortList.vue
+5
-4
index.vue
src/pages/biomassEnergyWarm/index.vue
+1
-0
index.vue
src/pages/methaneUpgrade/index.vue
+1
-0
sortList.vue
src/pages/renewableEnergyVillage/components/sortList.vue
+2
-1
No files found.
src/components/Lengend/Lengend.vue
View file @
9702c210
...
@@ -23,34 +23,44 @@
...
@@ -23,34 +23,44 @@
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{}
return
{}
;
},
},
props
:
{
props
:
{
title
:
{
title
:
{
type
:
String
type
:
String
,
},
},
colors
:
{
colors
:
{
type
:
Array
type
:
Array
,
},
},
range
:
{
range
:
{
type
:
Array
type
:
Array
,
}
}
,
},
},
computed
:
{
computed
:
{
showLabel
()
{
showLabel
()
{
return
function
(
range
,
index
)
{
return
function
(
range
,
index
)
{
console
.
log
(
range
,
index
)
console
.
log
(
range
,
index
)
;
if
(
index
==
0
)
{
if
(
index
==
0
)
{
return
`<
${
range
[
0
]}
`
return
`<
${
this
.
forMat
(
range
[
0
])}
`
;
}
else
if
(
index
===
range
.
length
)
{
}
else
if
(
index
===
range
.
length
)
{
return
`>
${
range
[
index
-
1
]}
`
return
`>
${
this
.
forMat
(
range
[
index
-
1
])}
`
;
}
else
{
}
else
{
return
`
${
range
[
index
-
1
]}
-
${
range
[
index
]}
`
return
`
${
this
.
forMat
(
range
[
index
-
1
])}
-
${
this
.
forMat
(
range
[
index
]
)}
`
;
}
}
};
},
},
methods
:
{
forMat
(
num
)
{
if
(
!
Number
.
isInteger
(
num
))
{
return
num
.
toFixed
(
4
);
}
}
}
return
num
;
}
},
}
},
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
...
src/pages/biomassEnergyWarm/components/sortList.vue
View file @
9702c210
...
@@ -77,7 +77,7 @@ export default {
...
@@ -77,7 +77,7 @@ export default {
color
:
[
"#d65108"
],
color
:
[
"#d65108"
],
tooltip
:
{
tooltip
:
{
show
:
true
,
show
:
true
,
trigger
:
'axis'
trigger
:
"axis"
,
},
},
grid
:
{
grid
:
{
left
:
"3%"
,
left
:
"3%"
,
...
@@ -127,9 +127,10 @@ export default {
...
@@ -127,9 +127,10 @@ export default {
position
:
"right"
,
position
:
"right"
,
},
},
itemStyle
:
{
itemStyle
:
{
emphasis
:
{
color
:
"#d8ee2c"
,
color
:
"rgba(201,59,60)"
,
// emphasis: {
},
// color: "rgba(201,59,60)",
// },
},
},
},
},
],
],
...
...
src/pages/biomassEnergyWarm/index.vue
View file @
9702c210
...
@@ -170,6 +170,7 @@ export default {
...
@@ -170,6 +170,7 @@ export default {
position
:
'top'
position
:
'top'
},
},
itemStyle
:
{
itemStyle
:
{
color
:
'#d8ee2c'
// emphasis: {
// emphasis: {
// color: "rgba(201,59,60)",
// color: "rgba(201,59,60)",
// },
// },
...
...
src/pages/methaneUpgrade/index.vue
View file @
9702c210
...
@@ -225,6 +225,7 @@ export default {
...
@@ -225,6 +225,7 @@ export default {
{
{
name
:
'2011年'
,
name
:
'2011年'
,
type
:
'bar'
,
type
:
'bar'
,
barWidth
:
`80%`
,
itemStyle
:
{
itemStyle
:
{
color
:
'#d8ee2c'
color
:
'#d8ee2c'
}
}
...
...
src/pages/renewableEnergyVillage/components/sortList.vue
View file @
9702c210
...
@@ -62,7 +62,7 @@ export default {
...
@@ -62,7 +62,7 @@ export default {
},
},
tooltip
:
{
tooltip
:
{
show
:
true
,
show
:
true
,
trigger
:
'axis'
trigger
:
"axis"
,
},
},
xAxis
:
[
xAxis
:
[
{
{
...
@@ -105,6 +105,7 @@ export default {
...
@@ -105,6 +105,7 @@ export default {
position
:
"right"
,
position
:
"right"
,
},
},
itemStyle
:
{
itemStyle
:
{
color
:
"#d8ee2c"
,
emphasis
:
{
emphasis
:
{
color
:
"rgba(201,59,60)"
,
color
:
"rgba(201,59,60)"
,
},
},
...
...
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