40 lines
967 B
Vue
40 lines
967 B
Vue
<template>
|
|
<div class="ele-body ele-body-card">
|
|
<statistics-card :data="statistics" />
|
|
<sale-card />
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue';
|
|
import { storeToRefs } from 'pinia';
|
|
import { useThemeStore } from '@/store/modules/theme';
|
|
import * as ShopCountApi from '@/api/shop/count';
|
|
import StatisticsCard from './components/statistics-card.vue';
|
|
import SaleCard from './components/sale-card.vue';
|
|
import VisitHour from './components/visit-hour.vue';
|
|
import HotSearch from './components/hot-search.vue';
|
|
|
|
// 是否开启响应式布局
|
|
const themeStore = useThemeStore();
|
|
const { styleResponsive } = storeToRefs(themeStore);
|
|
|
|
const statistics = ref();
|
|
|
|
const reload = () => {
|
|
ShopCountApi.data({}).then((list) => {
|
|
if (list) {
|
|
statistics.value = list;
|
|
}
|
|
});
|
|
};
|
|
|
|
reload();
|
|
</script>
|
|
|
|
<script lang="ts">
|
|
export default {
|
|
name: 'DashboardAnalysis'
|
|
};
|
|
</script>
|