feat: เพิ่ม รูป
This commit is contained in:
parent
6041ffd159
commit
12c17dfd06
3 changed files with 29 additions and 11 deletions
|
|
@ -99,8 +99,18 @@ async function calculateStats() {
|
|||
|
||||
if (_stats) {
|
||||
stats.value = [
|
||||
{ count: _stats.hq, label: 'branchHQLabel', color: 'pink' },
|
||||
{ count: _stats.br, label: 'branchLabel', color: 'purple' },
|
||||
{
|
||||
icon: 'mdi-home',
|
||||
count: _stats.hq,
|
||||
label: 'branchHQLabel',
|
||||
color: 'pink',
|
||||
},
|
||||
{
|
||||
icon: 'mdi-office-building',
|
||||
count: _stats.br,
|
||||
label: 'branchLabel',
|
||||
color: 'purple',
|
||||
},
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -140,9 +150,9 @@ const fieldSelectedBranch = ref<{
|
|||
value: 'branchHQLabel',
|
||||
});
|
||||
|
||||
const stats = ref<{ count: number; label: string; color: 'pink' | 'purple' }[]>(
|
||||
[],
|
||||
);
|
||||
const stats = ref<
|
||||
{ icon: string; count: number; label: string; color: 'pink' | 'purple' }[]
|
||||
>([]);
|
||||
|
||||
const defaultFormData = {
|
||||
headOfficeId: null,
|
||||
|
|
@ -379,11 +389,13 @@ async function onSubmit() {
|
|||
if (_stats) {
|
||||
stats.value = [
|
||||
{
|
||||
icon: 'mdi-home',
|
||||
count: _stats.hq,
|
||||
label: 'branchHQLabel',
|
||||
color: 'pink',
|
||||
},
|
||||
{
|
||||
icon: 'mdi-domain',
|
||||
count: _stats.br,
|
||||
label: 'branchLabel',
|
||||
color: 'purple',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue