vben
authored
|
1
|
<template>
|
Vben
authored
|
2
|
<div class="p-4">
|
|
3
|
<GrowCard :loading="loading" class="enter-y" :exchangeTab="exchangeTab" />
|
Vben
authored
|
4
|
<SiteAnalysis class="!my-4 enter-y" :loading="loading" />
|
sanmu
authored
|
5
|
<!-- <div class="md:flex enter-y">
|
Vben
authored
|
6
|
<VisitRadar class="md:w-1/3 w-full" :loading="loading" />
|
Vben
authored
|
7
|
<VisitSource class="md:w-1/3 !md:mx-4 !md:my-0 !my-4 w-full" :loading="loading" />
|
Vben
authored
|
8
|
<SalesProductPie class="md:w-1/3 w-full" :loading="loading" />
|
sanmu
authored
|
9
|
</div> -->
|
vben
authored
|
10
11
|
</div>
</template>
|
vben
authored
|
12
|
<script lang="ts" setup>
|
|
13
|
import { onMounted, ref, watch } from 'vue';
|
vben
authored
|
14
|
import GrowCard from './components/GrowCard.vue';
|
Vben
authored
|
15
|
import SiteAnalysis from './components/SiteAnalysis.vue';
|
sanmu
authored
|
16
|
import { useDataStoreWithOut } from '/@/store/modules/data';
|
|
17
|
import { exchangeTab } from '@/store/modules/user';
|
Vben
authored
|
18
|
|
vben
authored
|
19
|
const loading = ref(true);
|
sanmu
authored
|
20
|
const dataStore = useDataStoreWithOut();
|
|
21
22
23
24
|
watch(
() => exchangeTab.value,
() => {},
);
|
sanmu
authored
|
25
26
|
onMounted(() => {
dataStore.getFetchData();
|
|
27
|
dataStore.getFetchData2();
|
sanmu
authored
|
28
|
dataStore.getFetchChartData();
|
|
29
30
|
dataStore.getCustomerSalesData1();
exchangeTab.value;
|
sanmu
authored
|
31
|
});
|
Vben
authored
|
32
|
|
vben
authored
|
33
34
35
|
setTimeout(() => {
loading.value = false;
}, 1500);
|
vben
authored
|
36
|
</script>
|