screenFront/src/views/Exhibition/Germany/components/BottomLBox.vue

75 lines
1.6 KiB
Vue
Raw Normal View History

2024-04-17 09:17:09 +00:00
<template>
<div class="bl-box-container">
2024-04-18 06:46:40 +00:00
<div class="box-item pos">{{ tLang('messages', 'RackNum') }}:
2024-04-18 05:38:58 +00:00
<div>{{ props.data?.label }}</div>
2024-04-17 09:17:09 +00:00
</div>
2024-04-18 06:46:40 +00:00
<div class="box-item">{{ tLang('messages', 'DevStatus') }}:
2024-04-18 05:38:58 +00:00
<div class="status" :class="[statusObj[props.data?.workingState]]"></div>
2024-04-17 09:17:09 +00:00
</div>
<div class="box-item">
<div style="text-wrap: nowrap;">{{ tLang('messages', '型号') }}:</div>
<div> RPSP-NM-I+K-1-1800--WC2+K-RF-1P220</div>
</div>
<div class="box-img">
<el-image :src="lqImg" fit="contain"></el-image>
</div>
</div>
</template>
<script setup lang='ts'>
import { ref, getCurrentInstance } from 'vue'
const { proxy } = getCurrentInstance()
2024-04-18 05:38:58 +00:00
const props = defineProps<{
data: any,
}>()
let statusObj = {
2024-04-18 06:46:40 +00:00
0: 'red',
1: 'yello',
2: 'green',
3: 'yello'
2024-04-18 05:38:58 +00:00
}
2024-04-17 09:17:09 +00:00
let lqImg = require('./../images/lq.png');
</script>
<style lang="scss" scoped>
.bl-box-container {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
.box-item {
width: 100%;
height: 80px;
display: flex;
justify-content: flex-start;
align-items: flex-start;
padding-left: 10px;
box-sizing: border-box;
div {
margin-left: 20px;
}
}
2024-04-18 06:46:40 +00:00
2024-04-17 09:17:09 +00:00
.pos {
position: absolute;
2024-04-18 06:46:40 +00:00
top: 108px;
left: 11px;
2024-04-17 09:17:09 +00:00
}
.box-img {
width: 100%;
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
}
</style>