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
Hide 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
* @Author: your name
* @Date: 2022-04-19 14:38:28
* @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
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @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
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...
@@ -79,6 +79,8 @@ export default {
...
@@ -79,6 +79,8 @@ export default {
this
.
options
=
{
this
.
options
=
{
color
:
colors
,
color
:
colors
,
tooltip
:
{
tooltip
:
{
// show:false,
formatter
:
"{a}: {c}(件)"
,
// trigger: "axis",
// trigger: "axis",
// axisPointer: {
// axisPointer: {
// type: "cross",
// type: "cross",
...
@@ -144,7 +146,7 @@ export default {
...
@@ -144,7 +146,7 @@ export default {
],
],
series
:
[
series
:
[
{
{
name
:
"
Evaporation
"
,
name
:
"
隐患数量
"
,
type
:
"bar"
,
type
:
"bar"
,
data
:
this
.
charData
[
0
],
data
:
this
.
charData
[
0
],
yAxisIndex
:
0
,
yAxisIndex
:
0
,
...
@@ -158,7 +160,7 @@ export default {
...
@@ -158,7 +160,7 @@ export default {
barGap
:
"0%"
,
barGap
:
"0%"
,
},
},
{
{
name
:
"
Temperature
"
,
name
:
"
已整改
"
,
type
:
"bar"
,
type
:
"bar"
,
data
:
this
.
charData
[
1
],
data
:
this
.
charData
[
1
],
yAxisIndex
:
0
,
yAxisIndex
:
0
,
...
@@ -186,7 +188,6 @@ export default {
...
@@ -186,7 +188,6 @@ export default {
font-size
:
16px
;
font-size
:
16px
;
margin
:
22px
0
11px
19px
;
margin
:
22px
0
11px
19px
;
font-weight
:
600
;
font-weight
:
600
;
}
}
.btn-wrapper
{
.btn-wrapper
{
display
:
flex
;
display
:
flex
;
...
...
gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxB.vue
View file @
9fd06c36
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2022-04-19 14:38:28
* @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
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @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
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...
@@ -74,6 +74,8 @@ export default {
...
@@ -74,6 +74,8 @@ export default {
// axisPointer: {
// axisPointer: {
// type: "cross",
// type: "cross",
// },
// },
formatter
:
"{b}: {c}(个)"
,
},
},
grid
:
{
grid
:
{
top
:
"30"
,
top
:
"30"
,
...
...
gassafetyprogress-web/src/views/statistic/overview/conponents/Right/CharBoxC.vue
View file @
9fd06c36
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2022-04-19 14:38:28
* @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
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @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
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...
@@ -102,6 +102,14 @@ export default {
...
@@ -102,6 +102,14 @@ export default {
rich
[
`dataIndex
${
index
}
`
]
=
item
;
rich
[
`dataIndex
${
index
}
`
]
=
item
;
});
});
this
.
options
=
{
this
.
options
=
{
tooltip
:
{
// show:false,
formatter
:
"{b}: {c}(件)"
,
// trigger: "axis",
// axisPointer: {
// type: "cross",
// },
},
series
:
{
series
:
{
type
:
"pie"
,
type
:
"pie"
,
radius
:
[
"68%"
,
"80%"
],
radius
:
[
"68%"
,
"80%"
],
...
@@ -113,6 +121,7 @@ export default {
...
@@ -113,6 +121,7 @@ export default {
borderRadius
:
10
,
borderRadius
:
10
,
borderColor
:
"#fff"
,
borderColor
:
"#fff"
,
},
},
label
:
{
label
:
{
alignTo
:
"edge"
,
alignTo
:
"edge"
,
// formatter: "{name|{b}}\n{num|{c} 个}",
// formatter: "{name|{b}}\n{num|{c} 个}",
...
@@ -145,7 +154,6 @@ export default {
...
@@ -145,7 +154,6 @@ export default {
font-size
:
16px
;
font-size
:
16px
;
margin
:
22px
0
11px
19px
;
margin
:
22px
0
11px
19px
;
font-weight
:
600
;
font-weight
:
600
;
}
}
.btn-wrapper
{
.btn-wrapper
{
display
:
flex
;
display
:
flex
;
...
...
gassafetyprogress-web/src/views/statistic/overview/conponents/Right/CharBoxD.vue
View file @
9fd06c36
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2022-04-19 14:38:28
* @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
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @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
* @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left/CharBoxA.vue
...
@@ -52,13 +52,13 @@ export default {
...
@@ -52,13 +52,13 @@ export default {
],
],
};
};
},
},
mounted
()
{
mounted
()
{
this
.
bottomOptions
();
this
.
bottomOptions
();
},
},
methods
:
{
methods
:
{
active
(
index
){
active
(
index
)
{
return
"active"
+
index
return
"active"
+
index
;
},
},
btnClick
(
index
)
{
btnClick
(
index
)
{
const
ind
=
this
.
activeArr
.
indexOf
(
index
);
const
ind
=
this
.
activeArr
.
indexOf
(
index
);
...
@@ -80,7 +80,7 @@ export default {
...
@@ -80,7 +80,7 @@ export default {
this
.
options
=
{
this
.
options
=
{
color
:
colors
,
color
:
colors
,
tooltip
:
{
tooltip
:
{
show
:
false
,
show
:
false
,
// trigger: "axis",
// trigger: "axis",
// axisPointer: {
// axisPointer: {
// type: "cross",
// type: "cross",
...
@@ -94,6 +94,14 @@ export default {
...
@@ -94,6 +94,14 @@ export default {
containLabel
:
true
,
containLabel
:
true
,
},
},
toolbox
:
{},
toolbox
:
{},
tooltip
:
{
// show:false,
formatter
:
"{a}: {c}(起)"
,
// trigger: "axis",
// axisPointer: {
// type: "cross",
// },
},
legend
:
{
legend
:
{
// data: ['Evaporation', 'Temperature'],
// data: ['Evaporation', 'Temperature'],
// left: 'right'
// left: 'right'
...
@@ -242,6 +250,14 @@ export default {
...
@@ -242,6 +250,14 @@ export default {
},
},
barWidth
:
6
,
barWidth
:
6
,
barGap
:
"0%"
,
barGap
:
"0%"
,
tooltip
:
{
// show:false,
formatter
:
"{a}: {c}(个)"
,
// trigger: "axis",
// axisPointer: {
// type: "cross",
// },
},
},
},
],
],
};
};
...
@@ -275,15 +291,15 @@ export default {
...
@@ -275,15 +291,15 @@ export default {
// background-color: red;
// background-color: red;
// }
// }
cursor
:
pointer
;
cursor
:
pointer
;
&
.active0
:hover
{
&
.active0
:hover
{
background
:
#4e9de7
!
important
;
background
:
#4e9de7
!
important
;
border-color
:
#4e9de7
;
border-color
:
#4e9de7
;
color
:
#fff
color
:
#fff
;
}
}
&
.active1
:hover
{
&
.active1
:hover
{
background
:
#f0cb6d
!
important
;
background
:
#f0cb6d
!
important
;
border-color
:
#f0cb6d
;
border-color
:
#f0cb6d
;
color
:
#fff
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