<!--
|
* @Date: 2024-01-13 19:43:55
|
* @LastEditors: Sneed
|
* @LastEditTime: 2024-01-14 19:04:03
|
* @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/Map/LeftStatus.vue
|
-->
|
<template>
|
<div class="left">
|
<slot></slot>
|
<div class="left-item left-1">
|
<div>{{ runRate }}</div>
|
<div>开机率</div>
|
</div>
|
<div class="left-item left-2">
|
<div>{{ alarmRate }}</div>
|
<div>故障率</div>
|
</div>
|
<div class="left-item left-3">
|
<div>{{cutRate}}</div>
|
<div>切削率</div>
|
</div>
|
<div class="left-item left-4">
|
<div>{{twoShiftRate}}</div>
|
<div>二班开工率</div>
|
</div>
|
<div class="left-item left-5">
|
<div>{{threeShiftRate}}</div>
|
<div>三班开工率</div>
|
</div>
|
</div>
|
</template>
|
<script>
|
export default {
|
props: {
|
info: {
|
type: Object
|
}
|
},
|
computed: {
|
cutRate () {
|
if (this.info.cutRate) return this.info.cutRate + '%'
|
return 0
|
},
|
twoShiftRate () {
|
if (this.info.twoShiftRate) return this.info.twoShiftRate + '%'
|
return 0
|
},
|
threeShiftRate () {
|
if (this.info.threeShiftRate) return this.info.threeShiftRate + '%'
|
return 0
|
},
|
runRate () {
|
if (this.info.runRate) return this.info.runRate + '%'
|
return 0
|
},
|
alarmRate () {
|
if (this.info.alarmRate) return this.info.alarmRate + '%'
|
return 0
|
},
|
}
|
}
|
</script>
|
<style lang="scss" scoped>
|
.left {
|
flex: 0 0 auto;
|
width: 194px;
|
height: 100%;
|
padding: 0 10px;
|
background: url('./img/left_icon.png') 100% center no-repeat;
|
.edit-btn {
|
margin-top: 20px;
|
color: #C6DCE0;
|
text-align: center;
|
line-height: 38px;
|
width: 150px;
|
height: 38px;
|
background: url('./img/btn.png') 100% center no-repeat;
|
background-size: contain;
|
font-size: 16px;
|
cursor: pointer;
|
}
|
.left-select {
|
margin-top: 20px;
|
width: 150px;
|
}
|
.left-item:first-child {
|
}
|
.left-item {
|
margin-top: 20px;
|
width: 138px;
|
height: 138px;
|
background: url('./img/left_1.png') 0 0 no-repeat;
|
background-size: contain;
|
color: #D6EEEF;
|
position: relative;
|
& > div:first-child {
|
font-size: 16px;
|
position: absolute;
|
left: 50%;
|
top: 50%;
|
transform: translate(-50%,-50%);
|
}
|
& > div:last-child {
|
font-size: 12px;
|
position: absolute;
|
left: 50%;
|
bottom: 25px;
|
transform: translate(-50%,-50%);
|
}
|
}
|
.left-2 {
|
background-image: url('./img/left_2.png');
|
}
|
.left-3 {
|
background-image: url('./img/left_3.png');
|
}
|
.left-4 {
|
background-image: url('./img/left_4.png');
|
}
|
.left-5 {
|
background-image: url('./img/left_5.png');
|
}
|
}
|
</style>
|