Files
emsfront/src/views/ems/dzjk/sbjk/bmszl/index.vue

175 lines
4.7 KiB
Vue
Raw Normal View History

<template>
<div>
<el-card shadow="always" class="common-card-container common-card-container-body-no-padding common-card-container-no-title-bg">
<div slot="header">
<span class="large-title">电池堆一</span>
</div>
<div class="info-main">
<el-descriptions direction="vertical" :column="3" :colon="false" border>
<el-descriptions-item v-for="(item,index) in statusData" :key="index+'pcsStatusData'" :span="1" :label="item.label">{{item.value}}</el-descriptions-item>
</el-descriptions>
<el-descriptions direction="vertical" :column="3" :colon="false" border>
<el-descriptions-item v-for="(item,index) in infoData" :key="index+'pcsInfoData'" :span="1" :label="item.label">{{item.value}} <span v-if="item.unit" v-html="item.unit"></span></el-descriptions-item>
</el-descriptions>
<!-- 进度-->
<div class="process-container">
<div class="process-line-bg">
<div class="process-line"></div>
</div>
<div class="process">当前SOC : 25%</div>
</div>
</div>
</el-card>
<div class="table-container">
<el-table
:data="tableData"
stripe
style="width: 100%;">
<el-table-column
prop=""
label="名称">
<template slot-scope="scope">
<span v-html="scope.row.name"></span>
</template>
</el-table-column>
<el-table-column
prop="average"
label="单体平均值"
>
</el-table-column>
<el-table-column
prop="min"
label="单体最小值">
</el-table-column>
<el-table-column
prop="minID"
label="单体最小值ID">
</el-table-column>
<el-table-column
prop="max"
label="单体最大值">
</el-table-column>
<el-table-column
prop="maxID"
label="单体最大值ID">
</el-table-column>
</el-table>
</div>
</div>
</template>
<script>
export default {
components:{},
data() {
return {
statusData:[
{label:'工作状态',value:'',attr:''},
{label:'与PCS通信',value:'',attr:''},
{label:'与EMS通信',value:'',attr:''},
],
infoData:[
{label:'电池堆总电压',value:'',attr:'',unit:'V'},
{label:'可充电量',value:'',attr:'',unit:'kWh'},
{label:'累计充电量',value:'',attr:'',unit:'kWh'},
{label:'电池堆总电流',value:'',attr:'',unit:'A'},
{label:'可放电量',value:'',attr:'',unit:'kWh'},
{label:'累计放电量',value:'',attr:'',unit:'kWh'},
{label:'SOH',value:'',attr:'',unit:'%'},
{label:'平均温度',value:'',attr:'',unit:'&#8451;'},
{label:'绝缘电阻',value:'',attr:'',unit:'&Omega;'},
],
tableData:[
{name:'电压V',average:'20',min:10,minID:'1',max:'30',maxID:'2'},
{name:'温度(&#8451;',average:'20',min:10,minID:'1',max:'30',maxID:'2'},
{name:'SOC%',average:'20',min:10,minID:'1',max:'30',maxID:'2'},
]
}
},
}
</script>
<style scoped lang="scss">
//描述列表样式
.info-main{
padding:14px;
padding-right:300px;
position:relative;
::v-deep {
.el-descriptions{
margin-bottom: 25px;
}
.el-descriptions-item__cell[colspan='1']{
width:25%
}
.el-descriptions-item__label{
line-height: 14px;
color: #666666;
font-size: 12px;
}
.el-descriptions-item__content{
line-height: 19px;
color: #666666;
font-size: 16px;
font-weight: 500;
}
.danger{
color:#FC6B69;
}
.save{
color:#09ADA3;
}
.keep{
color:#3C81FF;
}
}
// 进度条样式
.process-container{
width:100px;
position: absolute;
right:70px;
top:50%;
transform: translateY(-50%);
.process-line-bg{
position: relative;
width:100%;
height: 110px;
background-color:#fff2cb ;
border-radius: 6px;
box-shadow: 0 0 10px #fff2cb, 0 0 0 rgba(255, 242, 203, 0.5);
.process-line{
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 25%;
background-color: #fc6c6c;
border-radius: 0 0 6px 6px;
box-shadow: 0 0 10px rgb(252 108 108), 0 0 0 rgba(252, 108, 108, 0.5);
}
}
.process{
margin-top:15px;
color:#666666;
}
}
}
//表格样式
.table-container{
margin-top:25px;
::v-deep{
.el-table .el-table__header-wrapper th, .el-table .el-table__fixed-header-wrapper th{
border-bottom: none;
}
.table-head{
color:#515a6e;
}
}
}
</style>