Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
digital-construction
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
张牧越
digital-construction
Commits
0fd55f9e
Commit
0fd55f9e
authored
Apr 10, 2023
by
张牧越
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式修正
parent
b924036b
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
74 additions
and
2 deletions
+74
-2
App.vue
src/App.vue
+16
-0
Index.vue
src/components/Index.vue
+0
-1
Index.vue
src/components/construction/Index.vue
+11
-0
Index.vue
src/components/earlywarning/Index.vue
+11
-0
Index.vue
src/components/noise/Index.vue
+12
-0
Index.vue
src/components/realname/Index.vue
+12
-0
Index.vue
src/components/tower/Index.vue
+12
-1
No files found.
src/App.vue
View file @
0fd55f9e
...
@@ -8,6 +8,22 @@
...
@@ -8,6 +8,22 @@
export
default
{
export
default
{
name
:
"App"
,
name
:
"App"
,
components
:
{},
components
:
{},
methods
:
{
bodyScale
()
{
var
devicewidth
=
document
.
documentElement
.
clientWidth
;
//获取当前分辨率下的可是区域宽度
var
scale
=
devicewidth
/
1920
;
// 分母——设计稿的尺寸
document
.
body
.
style
.
zoom
=
scale
;
//放大缩小相应倍数
let
charts
=
document
.
getElementsByClassName
(
"chart-container"
);
for
(
let
i
=
0
;
i
<
charts
.
length
;
i
++
)
{
charts
[
i
].
style
.
zoom
=
1
;
}
},
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
bodyScale
();
});
},
};
};
</
script
>
</
script
>
...
...
src/components/Index.vue
View file @
0fd55f9e
...
@@ -100,7 +100,6 @@ export default {
...
@@ -100,7 +100,6 @@ export default {
line-height: 70px;
line-height: 70px;
padding: 0 18px;
padding: 0 18px;
min-height: 78px;
min-height: 78px;
height: 7.22vh;
margin: 0px;
margin: 0px;
background: url("@/assets/nav.png") no-repeat;
background: url("@/assets/nav.png") no-repeat;
background-size: 100% 100%;
background-size: 100% 100%;
...
...
src/components/construction/Index.vue
View file @
0fd55f9e
...
@@ -427,6 +427,17 @@ export default {
...
@@ -427,6 +427,17 @@ export default {
mounted
()
{
mounted
()
{
this
.
renderSecurityChart
();
this
.
renderSecurityChart
();
this
.
renderQualityChart
();
this
.
renderQualityChart
();
this
.
$nextTick
(()
=>
{
// 解决echarts图表放大溢出父容器
const
resizeOb
=
new
ResizeObserver
((
entries
)
=>
{
for
(
const
entry
of
entries
)
{
this
.
$echarts
.
getInstanceByDom
(
entry
.
target
).
resize
();
}
});
resizeOb
.
observe
(
document
.
getElementById
(
"security-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"quality-chart"
));
});
},
},
};
};
</
script
>
</
script
>
...
...
src/components/earlywarning/Index.vue
View file @
0fd55f9e
...
@@ -433,6 +433,17 @@ export default {
...
@@ -433,6 +433,17 @@ export default {
this
.
renderWarningChart
();
this
.
renderWarningChart
();
this
.
renderTodayChart
();
this
.
renderTodayChart
();
this
.
renderHistoryChart
();
this
.
renderHistoryChart
();
this
.
$nextTick
(()
=>
{
// 解决echarts图表放大溢出父容器
const
resizeOb
=
new
ResizeObserver
((
entries
)
=>
{
for
(
const
entry
of
entries
)
{
this
.
$echarts
.
getInstanceByDom
(
entry
.
target
).
resize
();
}
});
resizeOb
.
observe
(
document
.
getElementById
(
"today-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"history-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"warning-chart"
));
});
},
},
};
};
</
script
>
</
script
>
...
...
src/components/noise/Index.vue
View file @
0fd55f9e
...
@@ -556,6 +556,18 @@ export default {
...
@@ -556,6 +556,18 @@ export default {
this
.
renderNoiseChart
();
this
.
renderNoiseChart
();
this
.
renderAQIChart
();
this
.
renderAQIChart
();
this
.
renderAqiQualityChart
();
this
.
renderAqiQualityChart
();
this
.
$nextTick
(()
=>
{
// 解决echarts图表放大溢出父容器
const
resizeOb
=
new
ResizeObserver
((
entries
)
=>
{
for
(
const
entry
of
entries
)
{
this
.
$echarts
.
getInstanceByDom
(
entry
.
target
).
resize
();
}
});
resizeOb
.
observe
(
document
.
getElementById
(
"device-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"noise-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"aqi-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"aqi-quality-chart"
));
});
},
},
};
};
</
script
>
</
script
>
...
...
src/components/realname/Index.vue
View file @
0fd55f9e
...
@@ -504,6 +504,18 @@ export default {
...
@@ -504,6 +504,18 @@ export default {
this
.
renderWeekCheckChart
();
this
.
renderWeekCheckChart
();
this
.
renderWeekWorkChart
();
this
.
renderWeekWorkChart
();
this
.
renderInOutChart
();
this
.
renderInOutChart
();
this
.
$nextTick
(()
=>
{
// 解决echarts图表放大溢出父容器
const
resizeOb
=
new
ResizeObserver
((
entries
)
=>
{
for
(
const
entry
of
entries
)
{
this
.
$echarts
.
getInstanceByDom
(
entry
.
target
).
resize
();
}
});
resizeOb
.
observe
(
document
.
getElementById
(
"area-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"week-check-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"week-work-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"in-out-chart"
));
});
},
},
};
};
</
script
>
</
script
>
...
...
src/components/tower/Index.vue
View file @
0fd55f9e
...
@@ -404,6 +404,17 @@ export default {
...
@@ -404,6 +404,17 @@ export default {
this
.
renderDeviceChart
();
this
.
renderDeviceChart
();
this
.
renderForceChart
();
this
.
renderForceChart
();
this
.
renderDipChart
();
this
.
renderDipChart
();
this
.
$nextTick
(()
=>
{
// 解决echarts图表放大溢出父容器
const
resizeOb
=
new
ResizeObserver
((
entries
)
=>
{
for
(
const
entry
of
entries
)
{
this
.
$echarts
.
getInstanceByDom
(
entry
.
target
).
resize
();
}
});
resizeOb
.
observe
(
document
.
getElementById
(
"device-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"force-chart"
));
resizeOb
.
observe
(
document
.
getElementById
(
"dip-chart"
));
});
},
},
};
};
</
script
>
</
script
>
...
@@ -527,7 +538,7 @@ export default {
...
@@ -527,7 +538,7 @@ export default {
}
}
.warn-message {
.warn-message {
position: relative;
position: relative;
height:
39vh
;
height:
400px
;
.warn-icon {
.warn-icon {
position: absolute;
position: absolute;
left: 50%;
left: 50%;
...
...
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