lg_frontend/components/peak-coal-monitoring/PeakEnterpriseOperations.vue

177 lines
3.7 KiB
Vue
Raw Normal View History

2024-03-05 12:02:32 +00:00
<!--企业运营情况-->
<template>
<div class="enterprise-operations">
<div class="operational-value-info">
<div class="operational-value-item-info">
<div class="_title">氮气外供[]</div>
<div class="_value">
<Number :num="124"/>
</div>
<div class="_icon"></div>
</div>
<div class="operational-value-item-info">
<div class="_title">液化石油气[t]</div>
<div class="_value">
<Number :num="1123"/>
</div>
<div class="_icon"></div>
</div>
<div class="operational-value-item-info">
<div class="_title">氧气外供[]</div>
<div class="_value">
<Number :num="185"/>
</div>
<div class="_icon"></div>
</div>
</div>
<peak-third-level-label :title="thirdLevelLabel"/>
<div class="produce-trend-chart">
<peak-produce-trend-chart :data-source="produceTrendDataSource"/>
</div>
</div>
</template>
<script>
import ProduceTrendChart from "@/components/charts/ProduceTrendChart";
import PeakThirdLevelLabel from "@/components/peak-coal-monitoring/PeakThirdLevelLabel";
import PeakProduceTrendChart from "@/components/charts/PeakProduceTrendChart";
export default {
name: "PeakEnterpriseOperations",
components: {PeakProduceTrendChart, PeakThirdLevelLabel, ProduceTrendChart},
data() {
return {
thirdLevelLabel: '生产趋势',
produceTrendDataSource: [
{
name: '00:00',
value1: '10',
value2: '30',
value3: '20'
},
{
name: '01:00',
value1: '30',
value2: '20',
value3: '10'
},
{
name: '02:00',
value1: '20',
value2: '10',
value3: '20'
},
{
name: '03:00',
value1: '20',
value2: '30',
value3: '60'
},
{
name: '04:00',
value1: '30',
value2: '40',
value3: '50'
},
{
name: '05:00',
value1: '10',
value2: '20',
value3: '30'
},
{
name: '06:00',
value1: '16',
value2: '17',
value3: '18'
},
{
name: '07:00',
value1: '30',
value2: '20',
value3: '10'
}
],
tabDataList: [
{
name: '今日',
value: '0'
},
{
name: '本月',
value: '1'
},
{
name: '上月',
value: '2'
}
],
activeTab: '0'
}
},
methods: {
tabChange(val) {
this.activeTab = val
}
}
}
</script>
<style scoped lang="less">
@import "assets/styles/mixin";
.enterprise-operations {
height: 100%;
width: 100%;
.flex-column;
.operational-value-info {
padding-top: 10px;
height: 100px;
display: flex;
flex-flow: row;
justify-content: space-between;
.operational-value-item-info {
position: relative;
._title {
font-family: MicrosoftYaHei;
font-size: 14px;
color: #6AC4FF;
letter-spacing: 2.26px;
font-weight: 400;
text-align: center;
}
._value {
font-family: YouSheBiaoTiHei;
font-size: 20px;
color: #FFFFFF;
letter-spacing: 5.64px;
font-weight: 400;
text-align: center;
}
._icon {
position: absolute;
bottom: 10px;
width: 80px;
height: 48px;
left: 10px;
.bg("~/assets/peakCoalMonitoring/right/num-bottom-bg.png");
}
}
}
.produce-trend-chart {
flex: 1;
height: 0;
}
}
</style>