You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<div class="equipment-condition-style">
<div class="data-row-style">
<span class="info-title-style">共计设备</span>
<span class="info-data-style">{{dataInfo.totalNum}}</span>
</div>
<div class="data-row-style">
<span class="info-title-style">正常运行</span>
<span class="info-data-style">{{dataInfo.normalNum}}</span>
</div>
<div class="data-row-style">
<span class="info-title-style">故障</span>
<span class="info-data-style">{{dataInfo.faultNum}}</span>
</div>
<div class="data-row-style">
<span class="info-title-style">告警</span>
<span class="info-data-style">{{dataInfo.warningNum}}</span>
</div>
</div>
</template>
<script>
/*
* 设备情况
* */
export default{
data(){
return {}
},
props: {
dataInfo: {
type: Object,
default: {
totalNum: 0,
normalNum: 0,
faultNum: 0,
warningNum: 0
}
}
}
}
</script>
<style scoped lang="scss">
.equipment-condition-style {
width: 350px;
height: 130px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-left: 10px;
font-size: 16px;
.data-row-style {
width: 100%;
height: 30px;
line-height: 30px;
display: flex;
justify-content: space-between;
.info-data-style {
color: #7ce7fd;
}
}
}
</style>