dezhou-screen/src/components/boxes/BottomTemp.vue
2023-06-08 14:00:32 +08:00

69 lines
1.3 KiB
Vue

<template>
<!-- 窑底温度 -->
<Container usage="Charts">
<SubContainer title="窑底温度" icon="kbtm" padding="24px 32px">
<div class="tables flex" style="height: 100%">
<LineChart
key="1"
id="line-chart-7"
class="flex-1"
unit="单位/℃"
:legend="Object.keys(kilnBtm1)"
:series="kilnBtm1"
/>
<div class="vertical-line"></div>
<LineChart
key="2"
id="line-chart-8"
class="flex-1"
unit="单位/℃"
:legend="Object.keys(kilnBtm2)"
:series="kilnBtm2"
/>
</div>
</SubContainer>
</Container>
</template>
<script>
import LineChart from "../charts/LineChart.vue";
import Container from "../layout/Container.vue";
import SubContainer from "../layout/SubContainer.vue";
import { mapState } from "vuex";
export default {
name: "BottomTemp",
props: {},
components: { Container, SubContainer, LineChart },
data() {
return {
chartConfig: {},
};
},
computed: {
...mapState(["kilnBtm1", "kilnBtm2"]),
},
};
</script>
<style scoped lang="scss">
@import "../../assets/styles/functions";
.flex-1 {
flex: 1;
// background: #eee;
}
.vertical-line {
margin: 0 adjust(3px);
width: adjust(3px);
background: radial-gradient(
ellipse at center,
#3565ff,
#3565ff51,
transparent,
transparent
);
}
</style>