11-mes-new/src/views/3DOverview/components/LeftContentPublicConsume.vue

250 lines
5.9 KiB
Vue
Raw Normal View History

2022-11-07 08:45:49 +08:00
<template>
<div class="public-consume__inner">
2022-12-05 11:22:18 +08:00
<div style="min-height: calc(106px * var(--beilv)); flex: 1;">
2022-11-07 17:08:05 +08:00
<TechyBox class="water-consume">
2022-11-11 14:05:56 +08:00
<div class="header-part">
2022-12-05 11:22:18 +08:00
<img src="./assets/consume/s.png" width="32" height="32" alt="water">
2022-11-07 17:08:05 +08:00
<span></span>
</div>
<div class="content-part">
<div class="row">
<span class="name"> &nbsp;&nbsp;&nbsp;</span>
2022-11-17 14:15:22 +08:00
<span class="diy-process-bar bar-width-1 color-1" />
2022-11-07 17:08:05 +08:00
<span class="amount">
39m
<sup>3</sup>
</span>
</div>
<div class="row">
<span class="name">循环水</span>
2022-11-17 14:15:22 +08:00
<span class="diy-process-bar bar-width-2 color-2" />
2022-11-07 17:08:05 +08:00
<span class="amount">
2022-11-17 14:15:22 +08:00
23m
2022-11-07 17:08:05 +08:00
<sup>3</sup>
</span>
</div>
<div class="row">
<span class="name">自来水</span>
2022-11-17 14:15:22 +08:00
<span class="diy-process-bar bar-width-3 color-3" />
2022-11-07 17:08:05 +08:00
<span class="amount">
2022-11-17 14:15:22 +08:00
239m
2022-11-07 17:08:05 +08:00
<sup>3</sup>
</span>
</div>
</div>
</TechyBox>
</div>
2022-12-05 11:22:18 +08:00
<div style="min-height: calc(106px * var(--beilv)); flex: 1;">
2022-11-07 17:08:05 +08:00
<TechyBox class="gas-consume">
2022-11-09 10:14:56 +08:00
<div class="header-part ">
2022-12-05 11:22:18 +08:00
<img src="./assets/consume/gas.png" width="32" height="32" alt="qi">
2022-11-07 17:08:05 +08:00
<span></span>
</div>
<div class="content-part">
<div class="row">
<span class="name">&nbsp;&nbsp;&nbsp;&nbsp;</span>
2022-11-17 14:15:22 +08:00
<span class="diy-process-bar bar-width-4 color-1" />
2022-11-07 17:08:05 +08:00
<span class="amount">
0.42MPa
2022-11-07 17:08:05 +08:00
</span>
</div>
<div class="row">
<span class="name">CDA</span>
2022-11-17 14:15:22 +08:00
<span class="diy-process-bar bar-width-5 color-2" />
2022-11-07 17:08:05 +08:00
<span class="amount">
0.61MPa
2022-11-07 17:08:05 +08:00
</span>
</div>
<div class="row">
<span class="name">天然气</span>
2022-11-17 14:15:22 +08:00
<span class="diy-process-bar bar-width-6 color-3" />
2022-11-07 17:08:05 +08:00
<span class="amount">
0.31MPa
2022-11-07 17:08:05 +08:00
</span>
</div>
</div>
</TechyBox>
</div>
2022-12-05 11:22:18 +08:00
<div style="min-height: calc(168px * var(--beilv)); flex: 1;">
2022-11-07 17:08:05 +08:00
<TechyBox class="dian-consume">
<div class="header-part">
2022-12-05 11:22:18 +08:00
<img src="./assets/consume/d.png" width="32" height="32" alt="dian">
2022-11-07 17:08:05 +08:00
<span></span>
</div>
2022-11-23 14:03:56 +08:00
<div style="height: 100%; flex: 1; overflow: hidden">
<DianChart id="dian" key="dian" />
2022-11-08 13:36:18 +08:00
</div>
2022-11-07 17:08:05 +08:00
</TechyBox>
</div>
<!-- <div style="min-height: calc(144px * var(--beilv)); flex: 1;">
2022-11-07 17:08:05 +08:00
<TechyBox class="elec-consume">
<div class="header-part">
2022-11-09 10:14:56 +08:00
<img src="./assets/consume/fad.png" width="32" height="32" alt="fadian" />
2022-11-07 17:08:05 +08:00
<span>发电</span>
</div>
2022-11-23 14:03:56 +08:00
<div style="height: 100%; flex: 1; overflow: hidden">
<DianChart id="fa-dian" key="fa-dian" />
2022-11-07 17:08:05 +08:00
</div>
</TechyBox>
</div> -->
2022-11-07 08:45:49 +08:00
</div>
</template>
<script>
2022-12-05 11:22:18 +08:00
// import TechyBarChart from './TechyBarChart.vue'
// import TechyLineChart from './TechyLineChart.vue'
2022-11-07 17:08:05 +08:00
import TechyBox from './TechyBox.vue'
2022-12-05 11:22:18 +08:00
// import FadianChart from './FadianChart.vue'
2022-11-08 13:36:18 +08:00
import DianChart from './DianChart.vue'
2022-11-07 08:45:49 +08:00
export default {
name: 'LeftContentPublicConsume',
2022-12-05 11:22:18 +08:00
components: { TechyBox, DianChart },
2022-11-07 08:45:49 +08:00
data() {
return {}
},
created() {},
mounted() {},
methods: {}
}
</script>
<style scoped>
.public-consume__inner {
2022-11-11 16:34:07 +08:00
overflow: hidden;
overflow-y: auto;
2022-11-23 14:03:56 +08:00
height: calc(100% - calc(32px * var(--beilv)));
2022-11-07 08:45:49 +08:00
width: 100%;
2022-11-07 17:08:05 +08:00
display: flex;
flex-direction: column;
2022-11-11 14:05:56 +08:00
gap: calc(8px * var(--beilv));
2022-11-07 08:45:49 +08:00
}
2022-11-07 17:08:05 +08:00
.techy-box {
2022-11-11 14:05:56 +08:00
padding: calc(16px * var(--beilv));
2022-11-07 17:08:05 +08:00
display: flex;
}
.header-part {
height: 100%;
2022-11-11 14:05:56 +08:00
width: calc(56px * var(--beilv));
2022-11-07 17:08:05 +08:00
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
/* overflow: hidden; */
2022-11-11 14:05:56 +08:00
margin-right: calc(16px * var(--beilv));
2022-11-07 17:08:05 +08:00
position: relative;
}
.header-part.has-border::after {
content: '';
position: absolute;
top: 0;
2022-11-11 14:05:56 +08:00
right: calc(-8px * var(--beilv));
width: calc(1px * var(--beilv));
2022-11-07 17:08:05 +08:00
height: 100%;
background: linear-gradient(to bottom, transparent, #fff9, transparent);
}
.header-part > span {
color: #fffc;
2022-11-11 14:05:56 +08:00
font-size: calc(12px * var(--beilv));
2022-12-05 11:22:18 +08:00
line-height: calc(12px * var(--beilv));
2022-11-22 16:29:45 +08:00
white-space: nowrap;
2022-11-07 17:08:05 +08:00
}
.content-part {
display: flex;
flex-direction: column;
2022-12-05 11:22:18 +08:00
justify-content: center;
/* height: calc(48px * var(--beilv)); */
2022-11-07 17:08:05 +08:00
flex: 1 1;
2022-12-05 11:22:18 +08:00
gap: calc(10px * var(--beilv));
color: #fff9;
}
.content-part span.name {
font-size: calc(12px * var(--beilv));
line-height: calc(14px * var(--beilv));
2022-11-07 17:08:05 +08:00
}
.row {
display: flex;
align-items: center;
width: 100%;
2022-11-11 16:34:07 +08:00
height: calc(14px * var(--beilv));
2022-11-07 17:08:05 +08:00
}
.row > .name,
.row > .amount {
white-space: nowrap;
width: 12%;
}
.row > .amount {
text-align: right;
}
.diy-process-bar {
margin: 0 8px;
border-radius: 7px;
2022-11-11 16:34:07 +08:00
height: calc(8px * var(--beilv));
2022-11-07 17:08:05 +08:00
flex: 1 1;
background-color: #fff3;
overflow: hidden;
position: relative;
}
.diy-process-bar::after {
content: '';
position: absolute;
2022-11-11 16:34:07 +08:00
border-radius: calc(6px * var(--beilv));
2022-11-07 17:08:05 +08:00
width: 30%;
height: 100%;
}
2022-11-17 14:15:22 +08:00
.bar-width-1::after {
width: 60%;
}
.bar-width-2::after {
width: 34%;
}
.bar-width-3::after {
width: 99%;
}
.bar-width-4::after {
width: 20%;
}
.bar-width-5::after {
width: 29%;
}
.bar-width-6::after {
width: 79%;
}
2022-11-07 17:08:05 +08:00
.diy-process-bar.color-1::after {
background: linear-gradient(to right, #178be9, #67b3f2);
}
.diy-process-bar.color-2::after {
background: linear-gradient(to right, #2ec6b4, #85f6e9);
}
.diy-process-bar.color-3::after {
background: linear-gradient(to right, #ff8bc3, #eb46a1);
}
2022-11-11 16:34:07 +08:00
.dian-consume,
.elec-consume {
padding: 0;
}
.dian-consume > .header-part,
.elec-consume > .header-part {
padding: calc(16px * var(--beilv));
margin: 0;
margin-left: calc(16px * var(--beilv));
}
2022-11-07 08:45:49 +08:00
</style>