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

68 lines
1.6 KiB
Vue
Raw Normal View History

2024-04-17 09:17:09 +00:00
<template>
<div class="br-container">
2024-04-18 05:38:58 +00:00
<div class="card" v-for="item in props.data">
<v-chart class="chart-class" :option="item.option"></v-chart>
2024-04-17 09:17:09 +00:00
<div class="box-list">
2024-04-18 05:38:58 +00:00
<div class="box-item">{{ tLang('messages', '实际产量') }}<div>{{ item.production }}</div>
2024-04-17 09:17:09 +00:00
</div>
2024-04-18 05:38:58 +00:00
<div class="box-item">{{ tLang('messages', '计划产量') }}<div>{{ item.planProduction }}</div>
2024-04-17 09:17:09 +00:00
</div>
2024-04-18 05:38:58 +00:00
<div class="box-item">{{ tLang('messages', '设备名称') }}<div>{{ item.name }}</div>
2024-04-17 09:17:09 +00:00
</div>
</div>
</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
}>()
2024-04-17 09:17:09 +00:00
</script>
<style lang="scss" scoped>
.br-container {
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
.card {
width: 50%;
height: 100%;
.chart-class {
width: 100%;
height: 50%;
}
.box-list {
width: 100%;
height: 50%;
display: flex;
flex-direction: column;
justify-content: space-around;
.box-item {
width: 100%;
height: 100%;
display: flex;
justify-content: flex-start;
align-items: center;
padding-left: 10px;
box-sizing: border-box;
div {
margin-left: 20px;
}
}
}
}
}
</style>