2024-02-18 13:06:37 +00:00
|
|
|
<template>
|
|
|
|
|
<div class="peak-coal-content" :style="autoStyle">
|
|
|
|
|
<div class="header-content">
|
|
|
|
|
|
|
|
|
|
</div>
|
2024-02-19 10:42:20 +00:00
|
|
|
|
|
|
|
|
<div class="body-content">
|
2024-02-19 11:25:45 +00:00
|
|
|
<!-- 左侧内容-->
|
|
|
|
|
<div class="left-content">
|
|
|
|
|
<div class="left-data-panel">
|
2024-02-19 14:00:33 +00:00
|
|
|
<a-row :gutter="24">
|
2024-02-19 13:16:43 +00:00
|
|
|
<a-col :span="12">
|
|
|
|
|
<air-quality/>
|
|
|
|
|
</a-col>
|
2024-02-19 14:00:33 +00:00
|
|
|
<a-col :span="12">
|
|
|
|
|
<pollutant-trends/>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="24">
|
|
|
|
|
<overview-pollutants/>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="24">
|
|
|
|
|
<check-data/>
|
|
|
|
|
</a-col>
|
2024-02-19 13:16:43 +00:00
|
|
|
</a-row>
|
2024-02-19 11:25:45 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-02-19 10:42:20 +00:00
|
|
|
|
2024-02-19 11:25:45 +00:00
|
|
|
<!-- 中间内容-->
|
|
|
|
|
<div class="center-content">
|
2024-02-19 10:42:20 +00:00
|
|
|
|
2024-02-19 11:25:45 +00:00
|
|
|
</div>
|
|
|
|
|
<!-- 右侧内容-->
|
|
|
|
|
<div class="right-content">
|
|
|
|
|
<div class="right-data-panel">
|
2024-02-19 14:00:33 +00:00
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<energy-use/>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<enterprise-operations/>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="24">
|
|
|
|
|
<device-run/>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<warning-statistics/>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<latest-warning/>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
2024-02-19 11:25:45 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-02-19 10:42:20 +00:00
|
|
|
</div>
|
|
|
|
|
|
2024-02-19 11:25:45 +00:00
|
|
|
<div class="footer-content">
|
2024-02-19 10:42:20 +00:00
|
|
|
|
|
|
|
|
</div>
|
2024-02-19 13:16:43 +00:00
|
|
|
|
|
|
|
|
<div class="left-icon"></div>
|
|
|
|
|
|
|
|
|
|
<div class="right-icon"></div>
|
|
|
|
|
|
2024-02-18 13:06:37 +00:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
name: "PeakCoalView",
|
2024-02-19 10:42:20 +00:00
|
|
|
data() {
|
|
|
|
|
return {
|
2024-02-18 13:06:37 +00:00
|
|
|
autoStyle: {}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getAutoStyle()
|
|
|
|
|
window.addEventListener('resize', (e) => {
|
|
|
|
|
e.stopPropagation()
|
|
|
|
|
this.getAutoStyle()
|
|
|
|
|
}, false)
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2024-02-19 10:42:20 +00:00
|
|
|
getAutoStyle() {
|
|
|
|
|
const {scale, origin} = this.getScale()
|
|
|
|
|
this.autoStyle = {
|
2024-02-18 13:06:37 +00:00
|
|
|
transform: `scale(${scale})`,
|
|
|
|
|
transformOrigin: origin
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-02-19 10:42:20 +00:00
|
|
|
getScale() {
|
2024-02-18 13:06:37 +00:00
|
|
|
let scale = 1
|
|
|
|
|
let origin = 'top center'
|
|
|
|
|
const baseWidth = 9450
|
|
|
|
|
const baseHeight = 3000
|
|
|
|
|
const innerWidth = window.innerWidth
|
|
|
|
|
const innerHeight = window.innerHeight
|
|
|
|
|
const widthScale = innerWidth / baseWidth
|
|
|
|
|
const scaleHeight = baseHeight * widthScale
|
2024-02-19 10:42:20 +00:00
|
|
|
console.log('scaleHeight:', scaleHeight)
|
2024-02-18 13:06:37 +00:00
|
|
|
if (scaleHeight <= innerHeight) {
|
|
|
|
|
origin = 'left top'
|
|
|
|
|
scale = widthScale
|
|
|
|
|
if (scale > 1) {
|
|
|
|
|
origin = 'left top'
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
scale = innerHeight / baseHeight
|
|
|
|
|
}
|
2024-02-19 10:42:20 +00:00
|
|
|
return {scale, origin}
|
2024-02-18 13:06:37 +00:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style>
|
|
|
|
|
body, html, #__nuxt, #__layout {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
background-color: #000;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
2024-02-19 10:42:20 +00:00
|
|
|
|
2024-02-18 13:06:37 +00:00
|
|
|
.list-enter-active, .list-leave-active {
|
|
|
|
|
transition: all 0.5s;
|
|
|
|
|
}
|
2024-02-19 10:42:20 +00:00
|
|
|
|
2024-02-18 13:06:37 +00:00
|
|
|
.list-enter, .list-leave-to
|
2024-02-19 10:42:20 +00:00
|
|
|
/* .list-leave-active for below version 2.1.8 */
|
|
|
|
|
{
|
2024-02-18 13:06:37 +00:00
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateY(30px);
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<style scoped lang="less">
|
2024-02-19 11:25:45 +00:00
|
|
|
@import "assets/styles/mixin";
|
|
|
|
|
|
2024-02-19 10:42:20 +00:00
|
|
|
.peak-coal-content {
|
2024-02-18 13:06:37 +00:00
|
|
|
height: 3000px;
|
|
|
|
|
width: 9450px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
position: relative;
|
|
|
|
|
user-select: none;
|
2024-02-19 10:42:20 +00:00
|
|
|
|
|
|
|
|
.header-content {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0px;
|
2024-02-18 13:06:37 +00:00
|
|
|
height: 507px;
|
2024-02-19 10:42:20 +00:00
|
|
|
width: 100%;
|
|
|
|
|
background: url("assets/peakCoalImages/header/first-title-bg.png") no-repeat center center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.body-content {
|
|
|
|
|
position: absolute;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
2024-02-19 11:25:45 +00:00
|
|
|
|
|
|
|
|
.left-content {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0px;
|
2024-02-19 13:16:43 +00:00
|
|
|
top: 136px;
|
|
|
|
|
width: 2935px;
|
|
|
|
|
height: 2721px;
|
|
|
|
|
background: url("assets/peakCoalImages/left/left-content-bg.png") no-repeat center 60px;
|
2024-02-19 14:00:33 +00:00
|
|
|
padding: 300px 476px 100px 412px;
|
2024-02-19 11:25:45 +00:00
|
|
|
|
2024-02-19 13:16:43 +00:00
|
|
|
.left-data-panel {
|
2024-02-19 11:25:45 +00:00
|
|
|
height: 100%;
|
2024-02-19 13:16:43 +00:00
|
|
|
width: 100%;
|
2024-02-19 14:00:33 +00:00
|
|
|
transform: rotate(2deg);
|
2024-02-19 11:25:45 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right-content {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0px;
|
2024-02-19 13:16:43 +00:00
|
|
|
top: 136px;
|
|
|
|
|
width: 2935px;
|
|
|
|
|
height: 2721px;
|
|
|
|
|
background: url("assets/peakCoalImages/right/right-content-bg.png") no-repeat center 60px;
|
2024-02-19 14:00:33 +00:00
|
|
|
padding: 300px 476px 100px 480px;
|
2024-02-19 11:25:45 +00:00
|
|
|
|
|
|
|
|
.right-data-panel {
|
2024-02-19 14:00:33 +00:00
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
transform: rotate(-2deg);
|
2024-02-19 11:25:45 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.center-content {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 50%;
|
|
|
|
|
top: 411px;
|
|
|
|
|
transform: translateX(-50%);
|
2024-02-19 13:16:43 +00:00
|
|
|
width: 4383px;
|
2024-02-19 11:25:45 +00:00
|
|
|
height: 2628px;
|
|
|
|
|
background: url("assets/peakCoalImages/center/center-content-bg.png") no-repeat center center;
|
|
|
|
|
}
|
2024-02-19 10:42:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.footer-content {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 220px;
|
|
|
|
|
background: url("assets/peakCoalImages/footer/footer-bg.png") no-repeat center center;
|
|
|
|
|
}
|
2024-02-19 13:16:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
.left-icon {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0px;
|
|
|
|
|
width: 531px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
background: url("assets/peakCoalImages/left/left-icon.png") no-repeat center center;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right-icon {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0px;
|
|
|
|
|
width: 531px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
background: url("assets/peakCoalImages/right/right-icon.png") no-repeat center center;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
}
|
2024-02-18 13:06:37 +00:00
|
|
|
}
|
|
|
|
|
</style>
|