vehicle-monitor/src/views/data-analyse/components/data-analyse-content.vue

85 lines
1.6 KiB
Vue
Raw Normal View History

<script lang="ts" setup>
2025-05-11 22:17:16 +08:00
import { onMounted, ref } from 'vue';
import { renderFooterChart } from '@/views/data-analyse/charts/content-footer';
2025-05-12 17:12:01 +08:00
import PanelTitle from '@/views/data-analyse/components/PanelTitle.vue';
2025-05-11 22:17:16 +08:00
const titleList = [170582, 586220, 168902];
2025-05-11 22:17:16 +08:00
const footerChartRef = ref();
const footerChart = () => {
renderFooterChart(footerChartRef);
};
onMounted(() => {
footerChart();
});
</script>
2025-04-16 23:11:49 +08:00
<template>
<div class="data-analyse-content">
<ul class="data-analyse-content__header">
<li v-for="(item, index) in titleList" :key="index">
<h3>数据展示</h3>
<strong>{{ item }}</strong>
<span></span>
</li>
</ul>
<main class="data-analyse-content__body">body</main>
2025-05-11 22:17:16 +08:00
<footer class="data-analyse-content__footer">
2025-05-12 17:12:01 +08:00
<PanelTitle title="销售设备数量区域占比" />
2025-05-11 22:17:16 +08:00
<div ref="footerChartRef" class="data-analyse-content__footer-chart" />
</footer>
</div>
2025-04-16 23:11:49 +08:00
</template>
<style lang="scss" scoped>
.data-analyse-content {
margin: 0 35px;
width: 803px;
height: 970px;
&__header {
display: flex;
justify-content: space-between;
margin: 15px 0 0 0;
h3 {
color: #94ddff;
font-size: 18px;
}
strong {
color: #fff;
font-size: 36px;
}
span {
margin: 0 0 0 8px;
color: #fff;
font-size: 16px;
}
}
&__body {
margin: 14px 0 0 0;
2025-05-11 22:17:16 +08:00
width: 100%;
height: 567px;
}
&__footer {
margin: 6px 0 0 0;
2025-05-11 22:17:16 +08:00
width: 100%;
height: 284px;
2025-05-11 22:17:16 +08:00
&-chart {
width: 100%;
height: 275px;
}
}
2025-04-16 23:11:49 +08:00
}
</style>