jws-frontend/src/pages/MainPage.vue

119 lines
2.4 KiB
Vue
Raw Normal View History

2024-04-02 11:02:16 +07:00
<script setup lang="ts">
import MenuItem from 'components/home/MenuItem.vue';
2024-07-02 09:11:39 +00:00
import useUtilsStore from 'src/stores/utils';
import { onMounted } from 'vue';
2024-04-04 11:28:52 +07:00
2024-07-02 09:11:39 +00:00
const utilsStore = useUtilsStore();
2024-04-02 11:02:16 +07:00
const menu = [
{
2024-04-02 13:44:45 +07:00
value: 'branch-management',
icon: 'mdi-chart-donut',
2024-04-02 11:02:16 +07:00
color: 'green',
2024-04-04 11:28:52 +07:00
title: 'mainBranchTitle',
caption: 'mainBranchCaption',
2024-04-02 11:02:16 +07:00
},
{
2024-04-02 13:44:45 +07:00
value: 'personnel-management',
2024-04-03 13:11:31 +07:00
icon: 'isax-frame5',
2024-04-02 13:44:45 +07:00
color: 'cyan',
2024-04-04 11:28:52 +07:00
title: 'mainPersonnelTitle',
caption: 'mainPersonnelCaption',
2024-04-03 13:11:31 +07:00
isax: true,
2024-04-02 11:02:16 +07:00
},
{
value: 'customer-management',
2024-04-03 13:11:31 +07:00
icon: 'isax-frame5',
2024-04-02 13:44:45 +07:00
color: 'cyan',
2024-04-04 11:28:52 +07:00
title: 'mainCustomerTitle',
caption: 'mainCustomerCaption',
2024-04-03 13:11:31 +07:00
isax: true,
2024-04-02 11:02:16 +07:00
},
{
2024-06-11 13:03:24 +07:00
value: 'product-service',
2024-04-03 13:11:31 +07:00
icon: 'heroicons-truck-solid',
2024-04-02 13:44:45 +07:00
color: 'orange',
2024-04-04 11:28:52 +07:00
title: 'mainProductTitle',
caption: 'mainProductCaption',
2024-04-02 11:02:16 +07:00
},
{
2024-04-02 13:44:45 +07:00
value: '',
icon: 'mdi-file-document',
color: 'violet',
2024-04-04 11:28:52 +07:00
title: 'mainQuotationTitle',
caption: 'mainQuotationCaption',
2024-07-01 11:14:01 +07:00
disabled: true,
2024-04-02 11:02:16 +07:00
},
{
2024-04-02 13:44:45 +07:00
value: '',
2024-04-03 13:11:31 +07:00
icon: 'isax-device-message5',
2024-04-02 11:02:16 +07:00
color: 'purple',
2024-04-04 11:28:52 +07:00
title: 'mainRequestTitle',
caption: 'mainRequestCaption',
2024-04-03 13:11:31 +07:00
isax: true,
2024-07-01 11:14:01 +07:00
disabled: true,
2024-04-02 11:02:16 +07:00
},
{
2024-04-02 13:44:45 +07:00
value: '',
2024-04-03 13:11:31 +07:00
icon: 'isax-receipt-2-15',
2024-04-02 13:44:45 +07:00
color: 'red',
2024-04-04 11:28:52 +07:00
title: 'mainOrderTitle',
caption: 'mainOrderCaption',
2024-04-03 13:11:31 +07:00
isax: true,
2024-07-01 11:14:01 +07:00
disabled: true,
2024-04-02 11:02:16 +07:00
},
{
2024-04-02 13:44:45 +07:00
value: '',
2024-04-03 13:11:31 +07:00
icon: 'material-symbols:box',
2024-04-02 13:44:45 +07:00
color: 'camo',
2024-04-04 11:28:52 +07:00
title: 'mainReceiptTitle',
caption: 'mainReceiptCaption',
2024-07-01 11:14:01 +07:00
disabled: true,
2024-04-02 11:02:16 +07:00
},
{
2024-04-02 13:44:45 +07:00
value: '',
2024-04-03 13:11:31 +07:00
icon: 'isax-dollar-circle4',
2024-04-02 11:02:16 +07:00
color: 'lime',
2024-04-04 11:28:52 +07:00
title: 'mainFinanceTitle',
caption: 'mainFinanceCaption',
2024-04-03 13:11:31 +07:00
isax: true,
2024-07-01 11:14:01 +07:00
disabled: true,
2024-04-02 11:02:16 +07:00
},
{
2024-04-02 13:44:45 +07:00
value: '',
2024-04-03 13:11:31 +07:00
icon: 'isax-element-35',
2024-04-02 13:44:45 +07:00
color: 'cyan',
2024-04-04 11:28:52 +07:00
title: 'mainDashboardTitle',
caption: 'mainDashboardCaption',
2024-04-03 13:11:31 +07:00
isax: true,
2024-07-01 11:14:01 +07:00
disabled: true,
2024-04-02 11:02:16 +07:00
},
{
2024-04-02 13:44:45 +07:00
value: '',
icon: 'mdi-file-document',
color: 'indigo',
2024-04-04 11:28:52 +07:00
title: 'mainReportTitle',
caption: 'mainReportCaption',
2024-07-01 11:14:01 +07:00
disabled: true,
2024-04-02 11:02:16 +07:00
},
2024-04-02 13:44:45 +07:00
] satisfies InstanceType<typeof MenuItem>['$props']['list'];
2024-07-02 09:11:39 +00:00
onMounted(() => {
utilsStore.currentTitle.title = '';
utilsStore.currentTitle.caption = '';
});
2024-04-02 11:02:16 +07:00
</script>
<template>
2024-07-02 10:52:28 +00:00
<div class="q-pb-lg">
2024-07-02 09:11:39 +00:00
<MenuItem :list="menu" />
</div>
2024-04-02 11:02:16 +07:00
</template>
<style scoped>
.person {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--size-6);
}
</style>