feat: show user stats
This commit is contained in:
parent
944bf014d1
commit
eb56b59f95
1 changed files with 7 additions and 6 deletions
|
|
@ -20,6 +20,7 @@ import FormDialog from 'src/components/FormDialog.vue';
|
|||
import FormInformation from 'src/components/02_personnel-management/FormInformation.vue';
|
||||
import FormPerson from 'src/components/02_personnel-management/FormPerson.vue';
|
||||
import FormByType from 'src/components/02_personnel-management/FormByType.vue';
|
||||
import { computed } from 'vue';
|
||||
|
||||
const router = useRouter();
|
||||
const userStore = useUserStore();
|
||||
|
|
@ -122,12 +123,12 @@ inputFile.addEventListener('change', (e) => {
|
|||
profileFile.value = (e.currentTarget as HTMLInputElement).files?.[0];
|
||||
});
|
||||
|
||||
const selectorList = [
|
||||
{ label: 'USER', count: 0 },
|
||||
{ label: 'MESSENGER', count: 0 },
|
||||
{ label: 'DELEGATE', count: 0 },
|
||||
{ label: 'AGENCY', count: 0 },
|
||||
];
|
||||
const selectorList = computed(() => [
|
||||
{ label: 'USER', count: typeStats.value?.USER || 0 },
|
||||
{ label: 'MESSENGER', count: typeStats.value?.MESSENGER || 0 },
|
||||
{ label: 'DELEGATE', count: typeStats.value?.DELEGATE || 0 },
|
||||
{ label: 'AGENCY', count: typeStats.value?.AGENCY || 0 },
|
||||
]);
|
||||
|
||||
async function openDialog(idEdit?: string) {
|
||||
modal.value = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue