Blame view

src/views/dashboard/analysis/index.vue 918 Bytes
1
<template>
Vben authored
2
3
4
  <div class="p-4">
    <GrowCard :loading="loading" class="enter-y" />
    <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" />
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> -->
10
11
  </div>
</template>
12
<script lang="ts" setup>
sanmu authored
13
  import { onMounted, ref } from 'vue';
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';
Vben authored
17
18
  const loading = ref(true);
sanmu authored
19
20
21
22
23
24
  const dataStore = useDataStoreWithOut();

  onMounted(() => {
    dataStore.getFetchData();
    dataStore.getFetchChartData();
  });
Vben authored
25
26
27
28
  setTimeout(() => {
    loading.value = false;
  }, 1500);
29
</script>