2024-05-19 13:08:10 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="data-box">
|
|
|
|
|
|
<div class="sell-histogram">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<span class="data-title">销售额趋势</span>
|
|
|
|
|
|
<span class="data-subtext">单位:元</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<SellHistogram />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="monthly-analysis">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<span class="data-title">现金分析</span>
|
|
|
|
|
|
<span class="data-subtext">单位:元</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<MonthlyAnalysis />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
import SellHistogram from "@/views/home/components/sell-histogram.vue";
|
|
|
|
|
|
import MonthlyAnalysis from "@/views/home/components/monthly-analysis.vue";
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.data-box {
|
|
|
|
|
|
margin-top: calc($padding * 2);
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
2024-05-26 16:13:45 +08:00
|
|
|
|
flex-wrap: wrap;
|
2024-05-19 13:08:10 +08:00
|
|
|
|
.data-title {
|
|
|
|
|
|
font-size: $font-size-body-3;
|
|
|
|
|
|
color: $color-text-1;
|
|
|
|
|
|
}
|
|
|
|
|
|
.data-subtext {
|
|
|
|
|
|
font-size: $font-size-body-2;
|
|
|
|
|
|
color: $color-text-2;
|
|
|
|
|
|
margin-left: $margin-text;
|
|
|
|
|
|
}
|
2024-05-26 16:13:45 +08:00
|
|
|
|
// .sell-histogram {
|
|
|
|
|
|
// // width: calc(100% - 600px - $padding);
|
|
|
|
|
|
// width: 100%;
|
|
|
|
|
|
// height: 400px;
|
|
|
|
|
|
// padding-bottom: $padding;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// .monthly-analysis {
|
|
|
|
|
|
// margin-left: $padding;
|
|
|
|
|
|
// width: 100%;
|
|
|
|
|
|
// height: 400px;
|
|
|
|
|
|
// padding-bottom: $padding;
|
|
|
|
|
|
// }
|
2024-05-19 13:08:10 +08:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|