feat: เรียนใช้ stat card componet
This commit is contained in:
parent
cc0832c640
commit
5e242730d6
1 changed files with 33 additions and 3 deletions
|
|
@ -1,8 +1,38 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import AppBox from 'components/app/AppBox.vue';
|
import AppBox from 'components/app/AppBox.vue';
|
||||||
import BtnAddComponet from 'components/01_branch-management/BtnAddComponet.vue';
|
import BtnAddComponet from 'components/01_branch-management/BtnAddComponet.vue';
|
||||||
import StatCardComponet from 'components/01_branch-management/StatCardComponet.vue';
|
import StatCardComponet from 'components/StatCardComponet.vue';
|
||||||
import TooltipComponet from 'src/components/TooltipComponet.vue';
|
import TooltipComponet from 'src/components/TooltipComponet.vue';
|
||||||
|
import { ref } from 'vue';
|
||||||
|
|
||||||
|
const branchStat = ref<
|
||||||
|
{
|
||||||
|
amount: string;
|
||||||
|
label: string;
|
||||||
|
}[]
|
||||||
|
>([
|
||||||
|
{
|
||||||
|
amount: '1',
|
||||||
|
label: 'สำนักงานใหญ่ 1',
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
amount: '2',
|
||||||
|
label: 'สำนักงานใหญ่ 2',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
amount: '3',
|
||||||
|
label: 'สำนักงานใหญ่ 3',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
amount: '4',
|
||||||
|
label: 'สำนักงานใหญ่ 4',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
amount: '5',
|
||||||
|
label: 'สำนักงานใหญ่ 5',
|
||||||
|
},
|
||||||
|
]);
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
|
|
@ -10,8 +40,8 @@ import TooltipComponet from 'src/components/TooltipComponet.vue';
|
||||||
{{ $t('branchManagement') }}
|
{{ $t('branchManagement') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<app-box>
|
<app-box bordered class="q-mb-md">
|
||||||
<stat-card-componet amount="10" label="สาขาใหญ่" />
|
<stat-card-componet :branch="branchStat" />
|
||||||
</app-box>
|
</app-box>
|
||||||
|
|
||||||
<app-box bordered style="width: 100%; height: 500px">
|
<app-box bordered style="width: 100%; height: 500px">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue