Blame view

src/views/dashboard/analysis/index.vue 1.13 KB
1
<template>
Vben authored
2
  <div class="p-4">
柏杨 authored
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" />
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>
柏杨 authored
13
  import { onMounted, ref, watch } 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';
柏杨 authored
17
  import { exchangeTab } from '@/store/modules/user';
Vben authored
18
19
  const loading = ref(true);
sanmu authored
20
  const dataStore = useDataStoreWithOut();
柏杨 authored
21
22
23
24
  watch(
    () => exchangeTab.value,
    () => {},
  );
sanmu authored
25
26
  onMounted(() => {
    dataStore.getFetchData();
柏杨 authored
27
    dataStore.getFetchData2();
sanmu authored
28
    dataStore.getFetchChartData();
柏杨 authored
29
30
    dataStore.getCustomerSalesData1();
    exchangeTab.value;
sanmu authored
31
  });
Vben authored
32
33
34
35
  setTimeout(() => {
    loading.value = false;
  }, 1500);
36
</script>