219 lines
5.0 KiB
Vue
219 lines
5.0 KiB
Vue
<!--企业运营情况-->
|
|
<template>
|
|
<div class="enterprise-operations">
|
|
<secondary-title :title="title">
|
|
<template>
|
|
<div class="right-tab">
|
|
<div class="tab-type" v-for="item of tabDataList" :class="activeTab === item.value? 'active-tab':''"
|
|
@click="tabChange(item.value)">
|
|
{{ item.name }}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</secondary-title>
|
|
<div class="enterprise-operations-info">
|
|
<div class="operational-value-info">
|
|
<div class="operational-value-item-info">
|
|
<div class="_title">氮气外供[m³]</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">氧气外供[m³]</div>
|
|
<div class="_value"><Number :num="185" /></div>
|
|
<div class="_icon"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<third-level-label :title="thirdLevelLabel"/>
|
|
|
|
<div class="produce-trend-chart">
|
|
<produce-trend-chart :data-source="produceTrendDataSource"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import ProduceTrendChart from "@/components/charts/ProduceTrendChart";
|
|
|
|
export default {
|
|
name: "EnterpriseOperations",
|
|
components: {ProduceTrendChart},
|
|
|
|
data() {
|
|
return {
|
|
title: '企业运营情况',
|
|
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: 877px;
|
|
width: 100%;
|
|
background-image: linear-gradient(62deg, rgba(8, 31, 55, 0.10) 0%, rgba(18, 50, 81, 0.10) 100%);
|
|
/* border: 1px solid transparent; !* 先将边框颜色设置为透明 *!
|
|
border-image: linear-gradient(rgba(79, 182, 238, 0), rgba(39, 127, 216, 1)); !* 使用线性渐变作为边框图片 *!
|
|
border-image-slice: 1; !* 指定切分边框图像的位置 *!*/
|
|
.flex-column;
|
|
|
|
.enterprise-operations-info {
|
|
flex: 1;
|
|
height: 0;
|
|
padding: 0 50px;
|
|
.flex-column;
|
|
|
|
.operational-value-info {
|
|
height: 247px;
|
|
.flex-row;
|
|
justify-content: space-between;
|
|
|
|
.operational-value-item-info {
|
|
position: relative;
|
|
|
|
._title {
|
|
font-family: MicrosoftYaHei;
|
|
font-size: 34.3px;
|
|
color: #6AC4FF;
|
|
letter-spacing: 2.26px;
|
|
font-weight: 400;
|
|
text-align: center;
|
|
}
|
|
|
|
._value {
|
|
font-family: YouSheBiaoTiHei;
|
|
font-size: 85.76px;
|
|
color: #FFFFFF;
|
|
letter-spacing: 5.64px;
|
|
font-weight: 400;
|
|
text-align: center;
|
|
}
|
|
|
|
._icon {
|
|
position: absolute;
|
|
bottom: -20px;
|
|
width: 252px;
|
|
height: 67px;
|
|
.bg("~/assets/peakCoalImages/right/operational-icon.webp");
|
|
}
|
|
}
|
|
}
|
|
|
|
.produce-trend-chart {
|
|
flex: 1;
|
|
height: 0;
|
|
|
|
}
|
|
}
|
|
|
|
.right-tab {
|
|
height: 100%;
|
|
.flex-row;
|
|
justify-content: space-between;
|
|
width: 480px;
|
|
|
|
.tab-type {
|
|
width: 144px;
|
|
height: 59px;
|
|
.bg("~/assets/peakCoalImages/left/pollutant-type-default-bg.png");
|
|
font-family: MicrosoftYaHei;
|
|
font-size: 29.97px;
|
|
color: rgba(216, 240, 255, 0.50);
|
|
letter-spacing: 0;
|
|
text-align: center;
|
|
line-height: 59px;
|
|
text-shadow: 0 0 11px #0091FF;
|
|
font-weight: 400;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.active-tab {
|
|
.bg("~/assets/peakCoalImages/left/pollutant-type-active-bg.png");
|
|
color: #D8F0FF;
|
|
text-shadow: 0 0 33px #0091FF;
|
|
font-weight: 400;
|
|
}
|
|
}
|
|
}
|
|
</style>
|