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
20d50b07
Commit
20d50b07
authored
Oct 19, 2023
by
王向前
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放大
parent
5176366f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
2 deletions
+56
-2
index.vue
src/views/threeViolations/homePage/index.vue
+56
-2
No files found.
src/views/threeViolations/homePage/index.vue
View file @
20d50b07
<
template
>
<
template
>
<!-- 外层排版-->
<!-- 外层排版-->
<div
class=
"home-page"
id=
"homePageBody"
:style=
"
{ height: height + 'px' }">
<div
class=
"home-page"
id=
"homePageBody"
:style=
"
{ height: height + 'px' }">
<div
class=
"page-homepage"
id=
"homePage"
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"
...
@@ -218,6 +218,22 @@ export default {
...
@@ -218,6 +218,22 @@ export default {
this
.
postYgcz
();
//员工持证
this
.
postYgcz
();
//员工持证
}
}
}
,
}
,
height
(
value
){
// setTimeout(() =>
{
// this.fxpcChart.resize();
// this.yhclChart.resize();
// this.yjylChart.resize();
// this.yhzlChart.resize();
// this.rfxpcChart.resize();
// this.lzglChart.resize();
// this.ygzcChart.resize();
// this.$nextTick(() =>
{
// this.height=document.getElementById('homePageBody').parentNode.clientHeight;
// this.carHeight=this.height*0.4-60+'px';
//
}
)
//
}
,
50
);
}
}
,
}
,
activated
()
{
activated
()
{
console
.
log
(
'activated'
)
console
.
log
(
'activated'
)
...
@@ -228,7 +244,9 @@ export default {
...
@@ -228,7 +244,9 @@ export default {
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
)
{
}
)
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'
))
this
.
yjylChart
=
echarts
.
init
(
document
.
getElementById
(
'yjylChart'
));
this
.
yjylChart
=
echarts
.
init
(
document
.
getElementById
(
'yjylChart'
));
...
@@ -293,6 +311,42 @@ doQueryWithFile({}).then(res => {
...
@@ -293,6 +311,42 @@ doQueryWithFile({}).then(res => {
}
}
}
,
}
,
methods
:
{
methods
:
{
handleDoubleClick
(){
this
.
fullScreen
(
document
.
getElementById
(
'homePage'
));
setTimeout
(()
=>
{
this
.
fxpcChart
.
resize
();
this
.
yhclChart
.
resize
();
this
.
yjylChart
.
resize
();
this
.
yhzlChart
.
resize
();
this
.
rfxpcChart
.
resize
();
this
.
lzglChart
.
resize
();
this
.
ygzcChart
.
resize
();
this
.
$nextTick
(()
=>
{
this
.
height
=
document
.
getElementById
(
'homePageBody'
).
parentNode
.
clientHeight
;
this
.
carHeight
=
this
.
height
*
0.4
-
60
+
'px'
;
}
)
}
,
50
);
}
,
fullScreen
(
element
)
{
const
elem
=
element
||
document
.
documentElement
;
if
(
elem
.
webkitRequestFullScreen
)
{
elem
.
webkitRequestFullScreen
();
}
else
if
(
elem
.
mozRequestFullScreen
)
{
elem
.
mozRequestFullScreen
();
}
else
if
(
elem
.
requestFullScreen
)
{
elem
.
requestFullscreen
();
}
else
if
(
elem
.
msExitFullscreen
)
{
elem
.
msExitFullscreen
();
}
else
if
(
elem
.
msRequestFullscreen
)
{
elem
.
msRequestFullscreen
();
}
else
if
(
typeof
window
.
ActiveXObject
!==
"undefined"
)
{
//for Internet Explorer
var
wscript
=
new
ActiveXObject
(
"WScript.Shell"
);
if
(
wscript
!==
null
)
{
wscript
.
SendKeys
(
"{F11
}
"
);
}
}
}
,
bindGsid
(
item
){
bindGsid
(
item
){
this
.
queryParams1
.
gsid
=
item
.
id
this
.
queryParams1
.
gsid
=
item
.
id
}
,
}
,
...
...
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