Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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
耿迪迪
gassafety-progress
Commits
9fd06c36
Commit
9fd06c36
authored
Apr 28, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改统计分析概览echars 弹框 文字展示
parent
ea35f84d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
20 deletions
+47
-20
CharBoxA.vue
...src/views/statistic/overview/conponents/Left/CharBoxA.vue
+5
-4
CharBoxB.vue
...src/views/statistic/overview/conponents/Left/CharBoxB.vue
+3
-1
CharBoxC.vue
...rc/views/statistic/overview/conponents/Right/CharBoxC.vue
+10
-2
CharBoxD.vue
...rc/views/statistic/overview/conponents/Right/CharBoxD.vue
+29
-13
No files found.
gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
View file @
9fd06c36
<!--
* @Author: your name
* @Date: 2022-04-19 14:38:28
* @LastEditTime: 2022-04-2
1 17:25:1
2
* @LastEditTime: 2022-04-2
8 13:34:4
2
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...
...
@@ -79,6 +79,8 @@ export default {
this
.
options
=
{
color
:
colors
,
tooltip
:
{
// show:false,
formatter
:
"{a}: {c}(件)"
,
// trigger: "axis",
// axisPointer: {
// type: "cross",
...
...
@@ -144,7 +146,7 @@ export default {
],
series
:
[
{
name
:
"
Evaporation
"
,
name
:
"
隐患数量
"
,
type
:
"bar"
,
data
:
this
.
charData
[
0
],
yAxisIndex
:
0
,
...
...
@@ -158,7 +160,7 @@ export default {
barGap
:
"0%"
,
},
{
name
:
"
Temperature
"
,
name
:
"
已整改
"
,
type
:
"bar"
,
data
:
this
.
charData
[
1
],
yAxisIndex
:
0
,
...
...
@@ -186,7 +188,6 @@ export default {
font-size
:
16px
;
margin
:
22px
0
11px
19px
;
font-weight
:
600
;
}
.btn-wrapper
{
display
:
flex
;
...
...
gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxB.vue
View file @
9fd06c36
<!--
* @Author: your name
* @Date: 2022-04-19 14:38:28
* @LastEditTime: 2022-04-2
1 17:24:5
6
* @LastEditTime: 2022-04-2
8 13:35:1
6
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...
...
@@ -74,6 +74,8 @@ export default {
// axisPointer: {
// type: "cross",
// },
formatter
:
"{b}: {c}(个)"
,
},
grid
:
{
top
:
"30"
,
...
...
gassafetyprogress-web/src/views/statistic/overview/conponents/Right/CharBoxC.vue
View file @
9fd06c36
<!--
* @Author: your name
* @Date: 2022-04-19 14:38:28
* @LastEditTime: 2022-04-2
1 17:25:10
* @LastEditTime: 2022-04-2
8 13:41:12
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...
...
@@ -102,6 +102,14 @@ export default {
rich
[
`dataIndex
${
index
}
`
]
=
item
;
});
this
.
options
=
{
tooltip
:
{
// show:false,
formatter
:
"{b}: {c}(件)"
,
// trigger: "axis",
// axisPointer: {
// type: "cross",
// },
},
series
:
{
type
:
"pie"
,
radius
:
[
"68%"
,
"80%"
],
...
...
@@ -113,6 +121,7 @@ export default {
borderRadius
:
10
,
borderColor
:
"#fff"
,
},
label
:
{
alignTo
:
"edge"
,
// formatter: "{name|{b}}\n{num|{c} 个}",
...
...
@@ -145,7 +154,6 @@ export default {
font-size
:
16px
;
margin
:
22px
0
11px
19px
;
font-weight
:
600
;
}
.btn-wrapper
{
display
:
flex
;
...
...
gassafetyprogress-web/src/views/statistic/overview/conponents/Right/CharBoxD.vue
View file @
9fd06c36
<!--
* @Author: your name
* @Date: 2022-04-19 14:38:28
* @LastEditTime: 2022-04-2
1 17:25:21
* @LastEditTime: 2022-04-2
8 13:40:47
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...
...
@@ -57,8 +57,8 @@ export default {
this
.
bottomOptions
();
},
methods
:
{
active
(
index
){
return
"active"
+
index
active
(
index
)
{
return
"active"
+
index
;
},
btnClick
(
index
)
{
const
ind
=
this
.
activeArr
.
indexOf
(
index
);
...
...
@@ -80,7 +80,7 @@ export default {
this
.
options
=
{
color
:
colors
,
tooltip
:
{
show
:
false
,
show
:
false
,
// trigger: "axis",
// axisPointer: {
// type: "cross",
...
...
@@ -94,6 +94,14 @@ export default {
containLabel
:
true
,
},
toolbox
:
{},
tooltip
:
{
// show:false,
formatter
:
"{a}: {c}(起)"
,
// trigger: "axis",
// axisPointer: {
// type: "cross",
// },
},
legend
:
{
// data: ['Evaporation', 'Temperature'],
// left: 'right'
...
...
@@ -242,6 +250,14 @@ export default {
},
barWidth
:
6
,
barGap
:
"0%"
,
tooltip
:
{
// show:false,
formatter
:
"{a}: {c}(个)"
,
// trigger: "axis",
// axisPointer: {
// type: "cross",
// },
},
},
],
};
...
...
@@ -275,15 +291,15 @@ export default {
// background-color: red;
// }
cursor
:
pointer
;
&
.active0
:hover
{
background
:
#4e9de7
!
important
;
border-color
:
#4e9de7
;
color
:
#fff
&
.active0
:hover
{
background
:
#4e9de7
!
important
;
border-color
:
#4e9de7
;
color
:
#fff
;
}
&
.active1
:hover
{
background
:
#f0cb6d
!
important
;
border-color
:
#f0cb6d
;
color
:
#fff
&
.active1
:hover
{
background
:
#f0cb6d
!
important
;
border-color
:
#f0cb6d
;
color
:
#fff
;
}
}
}
...
...
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