Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
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
李苏
sgaqgl-vue
Commits
adc38f01
Commit
adc38f01
authored
Oct 19, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
echart
parent
20d50b07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
36 deletions
+59
-36
index.vue
src/views/threeViolations/homePage/index.vue
+59
-36
No files found.
src/views/threeViolations/homePage/index.vue
View file @
adc38f01
<
template
>
<
template
>
<!-- 外层排版-->
<!-- 外层排版-->
<div
class=
"home-page"
id=
"homePageBody"
:style=
"
{ height: height + 'px' }">
<!--
<div
class=
"home-page"
id=
"homePageBody"
:style=
"
{ height: height + 'px' }"> -->
<div
class=
"min_full"
>
<div
class=
"home-page full"
ref=
'homePageBody'
id=
"homePageBody"
style=
"overflow: hidden;"
>
<div
class=
"page-homepage"
id=
"homePage"
@
dblclick=
"handleDoubleClick"
style=
""
>
<div
class=
"page-homepage"
id=
"homePage"
@
dblclick=
"handleDoubleClick"
style=
""
>
<div
class=
"echarts_nav"
id=
"echarts_nav"
>
<div
class=
"echarts_nav"
id=
"echarts_nav"
>
<div
class=
"iconTable"
v-for=
"item in gsList"
:key=
"item.id"
@
click=
"bindGsid(item)"
>
<div
class=
"iconTable"
v-for=
"item in gsList"
:key=
"item.id"
@
click=
"bindGsid(item)"
>
<div
class=
"dv-border-box-10 nav_border"
<div
class=
"dv-border-box-10 nav_border"
:style=
"
{color:queryParams1.gsid==item.id?activeStyle.color:'', boxShadow:queryParams1.gsid==item.id?'#00bfff 0px 0px 25px 3px inset':'#204b85 0px 0px 25px 3px inset'}">
:style=
"
{color:queryParams1.gsid==item.id?activeStyle.color:'', boxShadow:queryParams1.gsid==item.id?'#00bfff 0px 0px 25px 3px inset':'#204b85 0px 0px 25px 3px inset'}">
<svg
width=
"131"
height=
"37"
class=
"dv-border-svg-container"
>
<svg
width=
"131"
height=
"37"
class=
"dv-border-svg-container"
>
<polygon
fill=
"transparent"
points=
"
<polygon
fill=
"transparent"
points=
"
...
@@ -67,18 +69,29 @@
...
@@ -67,18 +69,29 @@
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"page-left-b page-left-3"
>
<
div
class
=
"page-left-b page-left-3"
>
<
div
class
=
"yhzl-big-box"
>
<
div
class
=
"yhzl-big-box"
>
<
div
id
=
"yjylChart"
class
=
"chart-auto"
><
/div
>
<
div
v
-
echartResize
=
"()=>{
fxpcChart.resize();
yhclChart.resize();
yjylChart.resize();
yhzlChart.resize();
rfxpcChart.resize();
lzglChart.resize();
ygzcChart.resize();
height=refs('homePageBody').parentNode.clientHeight;
}
"
id
=
"yjylChart"
class
=
"chart-auto"
><
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"page-center"
>
<
div
class
=
"page-center"
>
<
div
class
=
"page-center-t"
>
<
div
class
=
"page-center-t"
>
<
div
class
=
"gs-picture"
style
=
"width: 100%;height: 100%;"
>
<
div
class
=
"gs-picture"
style
=
"width: 100%;height: 100%;"
>
<
div
class
=
"dv-border-box-1"
>
<
div
class
=
"dv-border-box-1"
>
<
svg
width
=
"682"
height
=
"379"
class
=
"border"
>
<
svg
width
=
"682"
height
=
"379"
class
=
"border"
>
<
polygon
fill
=
"transparent"
points
=
"10, 27 10, 352 13, 355 13, 358 24, 368
<
polygon
fill
=
"transparent"
points
=
"10, 27 10, 352 13, 355 13, 358 24, 368
...
@@ -130,7 +143,7 @@
...
@@ -130,7 +143,7 @@
<
div
id
=
"yhzlChart"
class
=
"chart-auto"
><
/div
>
<
div
id
=
"yhzlChart"
class
=
"chart-auto"
><
/div
>
<!--
<
/div> --
>
<!--
<
/div> --
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"page-right"
>
<
div
class
=
"page-right"
>
...
@@ -140,7 +153,7 @@
...
@@ -140,7 +153,7 @@
<
div
class
=
"echarts"
>
<
div
class
=
"echarts"
>
<
div
id
=
"rfxpcChart"
class
=
"chart-auto"
><
/div
>
<
div
id
=
"rfxpcChart"
class
=
"chart-auto"
><
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"page-right-c"
>
<
div
class
=
"page-right-c"
>
...
@@ -158,9 +171,11 @@
...
@@ -158,9 +171,11 @@
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
...
@@ -219,8 +234,14 @@ export default {
...
@@ -219,8 +234,14 @@ export default {
}
}
}
,
}
,
height
(
value
){
height
(
value
){
document
.
addEventListener
(
'fullscreenchange'
,
(
event
)
=>
{
if
(
!
document
.
fullscreenElement
)
{
// 全屏已退出
console
.
log
(
'Exited full screen'
);
}
}
);
// setTimeout(() =>
{
// setTimeout(() =>
{
// this.fxpcChart.resize();
// this.fxpcChart.resize();
// this.yhclChart.resize();
// this.yhclChart.resize();
// this.yjylChart.resize();
// this.yjylChart.resize();
...
@@ -238,14 +259,16 @@ export default {
...
@@ -238,14 +259,16 @@ export default {
activated
()
{
activated
()
{
console
.
log
(
'activated'
)
console
.
log
(
'activated'
)
}
,
}
,
mounted
()
{
mounted
()
{
this
.
postGs
();
this
.
postGs
();
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
height
=
document
.
getElementById
(
'homePageBody'
).
parentNode
.
clientHeight
;
this
.
height
=
document
.
getElementById
(
'homePageBody'
).
parentNode
.
clientHeight
;
this
.
carHeight
=
this
.
height
*
0.4
-
60
+
'px'
;
this
.
carHeight
=
this
.
height
*
0.4
-
60
+
'px'
;
}
)
}
)
window
.
addEventListener
(
'resize'
,
function
(
params
)
{
window
.
addEventListener
(
'resize'
,
function
(
params
)
{
}
)
}
)
this
.
fxpcChart
=
echarts
.
init
(
document
.
getElementById
(
'fxpcChart'
))
this
.
fxpcChart
=
echarts
.
init
(
document
.
getElementById
(
'fxpcChart'
))
this
.
yhclChart
=
echarts
.
init
(
document
.
getElementById
(
'yhclChart'
))
this
.
yhclChart
=
echarts
.
init
(
document
.
getElementById
(
'yhclChart'
))
...
@@ -263,7 +286,7 @@ doQueryWithFile({}).then(res => {
...
@@ -263,7 +286,7 @@ doQueryWithFile({}).then(res => {
// this.showList=[]
// this.showList=[]
}
)
}
)
this
.
postYjyl
();
//应急演练
this
.
postYjyl
();
//应急演练
}
,
}
,
data
()
{
data
()
{
return
{
return
{
...
@@ -326,7 +349,7 @@ doQueryWithFile({}).then(res => {
...
@@ -326,7 +349,7 @@ doQueryWithFile({}).then(res => {
this
.
carHeight
=
this
.
height
*
0.4
-
60
+
'px'
;
this
.
carHeight
=
this
.
height
*
0.4
-
60
+
'px'
;
}
)
}
)
}
,
50
);
}
,
50
);
}
,
}
,
fullScreen
(
element
)
{
fullScreen
(
element
)
{
const
elem
=
element
||
document
.
documentElement
;
const
elem
=
element
||
document
.
documentElement
;
...
@@ -434,7 +457,7 @@ doQueryWithFile({}).then(res => {
...
@@ -434,7 +457,7 @@ doQueryWithFile({}).then(res => {
xAxis
.
push
(
element
.
bmName
||
""
);
xAxis
.
push
(
element
.
bmName
||
""
);
seriesData
.
push
(
Number
(
parseFloat
((
element
.
wcl
||
0
)
*
100
).
toFixed
(
2
)));
seriesData
.
push
(
Number
(
parseFloat
((
element
.
wcl
||
0
)
*
100
).
toFixed
(
2
)));
}
);
}
);
this
.
setBarhart
(
this
.
yjylChart
,
{
this
.
setBarhart
(
this
.
yjylChart
,
{
title
:
"应急演练"
,
title
:
"应急演练"
,
xAxis
:
xAxis
,
xAxis
:
xAxis
,
...
@@ -442,7 +465,7 @@ doQueryWithFile({}).then(res => {
...
@@ -442,7 +465,7 @@ doQueryWithFile({}).then(res => {
yAxis
:[
yAxis
:[
{
{
type
:
'value'
,
type
:
'value'
,
axisTick
:
{
axisTick
:
{
color
:
"white"
color
:
"white"
}
,
}
,
...
@@ -499,8 +522,8 @@ doQueryWithFile({}).then(res => {
...
@@ -499,8 +522,8 @@ doQueryWithFile({}).then(res => {
label
:
{
label
:
{
normal
:
{
normal
:
{
show
:
true
,
show
:
true
,
position
:
'top'
,
position
:
'top'
,
color
:
"white"
color
:
"white"
}
}
}
}
}
}
...
@@ -595,7 +618,7 @@ doQueryWithFile({}).then(res => {
...
@@ -595,7 +618,7 @@ doQueryWithFile({}).then(res => {
normal
:
{
normal
:
{
show
:
true
,
show
:
true
,
position
:
'top'
,
position
:
'top'
,
color
:
'white'
color
:
'white'
}
}
}
}
}
}
...
@@ -637,7 +660,7 @@ doQueryWithFile({}).then(res => {
...
@@ -637,7 +660,7 @@ doQueryWithFile({}).then(res => {
value
.
forEach
(
element
=>
{
value
.
forEach
(
element
=>
{
xAxis
.
push
(
lx
[
element
.
lx
]);
xAxis
.
push
(
lx
[
element
.
lx
]);
seriesData
[
0
][
"data"
].
push
(
element
.
allCount
||
0
);
seriesData
[
0
][
"data"
].
push
(
element
.
allCount
||
0
);
seriesData
[
1
][
"data"
].
push
(
element
.
wcCount
||
0
);
seriesData
[
1
][
"data"
].
push
(
element
.
wcCount
||
0
);
}
);
}
);
this
.
setBarhart
(
this
.
rfxpcChart
,
{
this
.
setBarhart
(
this
.
rfxpcChart
,
{
title
:
"风险排查"
,
title
:
"风险排查"
,
...
@@ -658,7 +681,7 @@ doQueryWithFile({}).then(res => {
...
@@ -658,7 +681,7 @@ doQueryWithFile({}).then(res => {
label
:
{
label
:
{
normal
:
{
normal
:
{
show
:
true
,
show
:
true
,
position
:
'top'
,
position
:
'top'
,
}
}
}
}
}
}
...
@@ -667,10 +690,10 @@ doQueryWithFile({}).then(res => {
...
@@ -667,10 +690,10 @@ doQueryWithFile({}).then(res => {
label
:
{
label
:
{
normal
:
{
normal
:
{
show
:
true
,
show
:
true
,
position
:
'top'
,
position
:
'top'
,
formatter
:
"{c
}
%"
formatter
:
"{c
}
%"
}
,
}
,
}
}
}
}
let
seriesData
=
[
let
seriesData
=
[
...
@@ -736,7 +759,7 @@ doQueryWithFile({}).then(res => {
...
@@ -736,7 +759,7 @@ doQueryWithFile({}).then(res => {
seriesData
[
1
][
"data"
].
push
(
element
.
wcCount
||
0
);
seriesData
[
1
][
"data"
].
push
(
element
.
wcCount
||
0
);
let
percent
=
element
.
allCount
?(
element
.
wcCount
/
element
.
allCount
):
0
;
let
percent
=
element
.
allCount
?(
element
.
wcCount
/
element
.
allCount
):
0
;
seriesData
[
2
][
"data"
].
push
(
Number
(
parseFloat
(
percent
*
100
).
toFixed
(
2
)));
seriesData
[
2
][
"data"
].
push
(
Number
(
parseFloat
(
percent
*
100
).
toFixed
(
2
)));
}
);
}
);
this
.
setBarhart
(
this
.
lzglChart
,
{
this
.
setBarhart
(
this
.
lzglChart
,
{
title
:
"履职管理"
,
title
:
"履职管理"
,
...
@@ -758,8 +781,8 @@ doQueryWithFile({}).then(res => {
...
@@ -758,8 +781,8 @@ doQueryWithFile({}).then(res => {
label
:
{
label
:
{
normal
:
{
normal
:
{
show
:
true
,
show
:
true
,
position
:
'top'
,
position
:
'top'
,
color
:
'white'
color
:
'white'
}
}
}
}
}
;
}
;
...
@@ -788,7 +811,7 @@ doQueryWithFile({}).then(res => {
...
@@ -788,7 +811,7 @@ doQueryWithFile({}).then(res => {
value
.
forEach
(
element
=>
{
value
.
forEach
(
element
=>
{
xAxis
.
push
(
element
.
flName
);
xAxis
.
push
(
element
.
flName
);
seriesData
[
0
][
"data"
].
push
(
element
.
allCount
-
element
.
dqCount
||
0
);
seriesData
[
0
][
"data"
].
push
(
element
.
allCount
-
element
.
dqCount
||
0
);
seriesData
[
1
][
"data"
].
push
(
element
.
dqCount
||
0
);
seriesData
[
1
][
"data"
].
push
(
element
.
dqCount
||
0
);
}
);
}
);
this
.
setBarhart
(
this
.
ygzcChart
,
{
this
.
setBarhart
(
this
.
ygzcChart
,
{
title
:
"员工持证"
,
title
:
"员工持证"
,
...
@@ -820,9 +843,9 @@ doQueryWithFile({}).then(res => {
...
@@ -820,9 +843,9 @@ doQueryWithFile({}).then(res => {
text
:
setting
.
title
||
""
,
text
:
setting
.
title
||
""
,
bottom
:
0
,
bottom
:
0
,
left
:
"center"
,
left
:
"center"
,
textStyle
:
{
textStyle
:
{
fontSize
:
14
,
fontSize
:
14
,
fontWeight
:
400
,
fontWeight
:
400
,
align
:
'center'
,
align
:
'center'
,
verticalAlign
:
'middle'
,
verticalAlign
:
'middle'
,
color
:
'white'
color
:
'white'
...
@@ -881,9 +904,9 @@ doQueryWithFile({}).then(res => {
...
@@ -881,9 +904,9 @@ doQueryWithFile({}).then(res => {
text
:
setting
.
title
||
""
,
text
:
setting
.
title
||
""
,
top
:
20
,
top
:
20
,
left
:
"center"
,
left
:
"center"
,
textStyle
:
{
textStyle
:
{
fontSize
:
18
,
fontSize
:
18
,
fontWeight
:
600
,
fontWeight
:
600
,
align
:
'center'
,
align
:
'center'
,
verticalAlign
:
'middle'
,
verticalAlign
:
'middle'
,
color
:
'white'
color
:
'white'
...
@@ -906,7 +929,7 @@ doQueryWithFile({}).then(res => {
...
@@ -906,7 +929,7 @@ doQueryWithFile({}).then(res => {
{
{
type
:
'category'
,
type
:
'category'
,
data
:
setting
.
xAxis
,
data
:
setting
.
xAxis
,
axisTick
:
{
axisTick
:
{
alignWithLabel
:
true
,
alignWithLabel
:
true
,
color
:
"white"
color
:
"white"
...
@@ -952,7 +975,7 @@ doQueryWithFile({}).then(res => {
...
@@ -952,7 +975,7 @@ doQueryWithFile({}).then(res => {
chartDom
.
setOption
(
option
);
chartDom
.
setOption
(
option
);
chartDom
.
resize
();
chartDom
.
resize
();
}
,
}
,
}
}
}
}
...
@@ -1140,7 +1163,7 @@ doQueryWithFile({}).then(res => {
...
@@ -1140,7 +1163,7 @@ doQueryWithFile({}).then(res => {
.
border
{
.
border
{
position
:
absolute
;
position
:
absolute
;
display
:
block
;
display
:
block
;
}
}
.
right
-
top
{
.
right
-
top
{
right
:
0
;
right
:
0
;
transform
:
rotateY
(
180
deg
);
transform
:
rotateY
(
180
deg
);
...
@@ -1171,7 +1194,7 @@ doQueryWithFile({}).then(res => {
...
@@ -1171,7 +1194,7 @@ doQueryWithFile({}).then(res => {
.
realImg
{
.
realImg
{
width
:
100
%
;
width
:
100
%
;
height
:
100
%
;
height
:
100
%
;
background
-
repeat
:
no
-
repeat
;
background
-
repeat
:
no
-
repeat
;
display
:
block
;
display
:
block
;
background
:
url
(
'~@/assets/images/gs.jpg'
);
background
:
url
(
'~@/assets/images/gs.jpg'
);
...
...
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