0
0
Fork 0

feat: refs #7911 added shortcut to modules

This commit is contained in:
Jon Elias 2024-09-05 08:25:28 +02:00
parent 96cdb85258
commit 70806769ce
16 changed files with 81 additions and 26 deletions

View File

@ -110,7 +110,7 @@ onMounted(async () => await getAccountData(false));
</script> </script>
<template> <template>
<QPage class="column items-center q-pa-md"> <QPage class="column items-center q-pa-md" v-shortcut>
<div class="full-width" style="max-width: 400px"> <div class="full-width" style="max-width: 400px">
<QSpinner v-if="loading" color="primary" size="md" /> <QSpinner v-if="loading" color="primary" size="md" />
<VnPaginate <VnPaginate

View File

@ -135,7 +135,7 @@ const toCustomerAddressEdit = (addressId) => {
/> />
<div class="full-width flex justify-center"> <div class="full-width flex justify-center">
<QCard class="card-width q-pa-lg" v-if="addresses.length"> <QCard class="card-width q-pa-lg" v-if="addresses.length" v-shortcut>
<QCardSection> <QCardSection>
<div <div
v-for="(item, index) in addresses" v-for="(item, index) in addresses"
@ -218,7 +218,13 @@ const toCustomerAddressEdit = (addressId) => {
</div> </div>
<QPageSticky :offset="[18, 18]"> <QPageSticky :offset="[18, 18]">
<QBtn @click.stop="toCustomerAddressCreate()" color="primary" fab icon="add" /> <QBtn
@click.stop="toCustomerAddressCreate()"
color="primary"
fab
icon="add"
shortcut="+"
/>
<QTooltip> <QTooltip>
{{ t('New consignee') }} {{ t('New consignee') }}
</QTooltip> </QTooltip>

View File

@ -71,7 +71,7 @@ const updateData = () => {
<template> <template>
<div class="full-width flex justify-center"> <div class="full-width flex justify-center">
<QCard class="card-width q-pa-lg"> <QCard class="card-width q-pa-lg" v-shortcut>
<VnPaginate <VnPaginate
:filter="filter" :filter="filter"
@on-fetch="fetch" @on-fetch="fetch"
@ -193,6 +193,7 @@ const updateData = () => {
color="primary" color="primary"
fab fab
icon="add" icon="add"
shortcut="+"
/> />
<QTooltip> <QTooltip>
{{ t('New contract') }} {{ t('New contract') }}

View File

@ -445,7 +445,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
<ItemListFilter data-key="ItemList" /> <ItemListFilter data-key="ItemList" />
</template> </template>
</RightMenu> </RightMenu>
<QPage class="column items-center q-pa-md"> <QPage class="column items-center q-pa-md" v-shortcut>
<VnPaginate <VnPaginate
ref="paginateRef" ref="paginateRef"
data-key="ItemList" data-key="ItemList"
@ -562,7 +562,13 @@ onUnmounted(() => (stateStore.rightDrawer = false));
</VnPaginate> </VnPaginate>
<QPageSticky :offset="[20, 20]"> <QPageSticky :offset="[20, 20]">
<QBtn @click="redirectToItemCreate()" color="primary" fab icon="add" /> <QBtn
@click="redirectToItemCreate()"
color="primary"
fab
icon="add"
shortcut="+"
/>
<QTooltip class="text-no-wrap"> <QTooltip class="text-no-wrap">
{{ t('New item') }} {{ t('New item') }}
</QTooltip> </QTooltip>

View File

@ -65,7 +65,7 @@ const exprBuilder = (param, value) => {
<ItemTypeFilter data-key="ItemTypeList" /> <ItemTypeFilter data-key="ItemTypeList" />
</template> </template>
</RightMenu> </RightMenu>
<QPage class="column items-center q-pa-md"> <QPage class="column items-center q-pa-md" v-shortcut>
<div class="vn-card-list"> <div class="vn-card-list">
<VnPaginate <VnPaginate
data-key="ItemTypeList" data-key="ItemTypeList"
@ -99,7 +99,13 @@ const exprBuilder = (param, value) => {
</div> </div>
</QPage> </QPage>
<QPageSticky :offset="[20, 20]"> <QPageSticky :offset="[20, 20]">
<QBtn fab icon="add" color="primary" @click="redirectToCreateView()" /> <QBtn
fab
icon="add"
color="primary"
@click="redirectToCreateView()"
shortcut="+"
/>
<QTooltip> <QTooltip>
{{ t('New item type') }} {{ t('New item type') }}
</QTooltip> </QTooltip>

View File

@ -46,7 +46,7 @@ function exprBuilder(param, value) {
<ShelvingFilter data-key="ShelvingList" /> <ShelvingFilter data-key="ShelvingList" />
</template> </template>
</RightMenu> </RightMenu>
<QPage class="column items-center q-pa-md"> <QPage class="column items-center q-pa-md" v-shortcut>
<div class="vn-card-list"> <div class="vn-card-list">
<VnPaginate <VnPaginate
data-key="ShelvingList" data-key="ShelvingList"
@ -87,7 +87,7 @@ function exprBuilder(param, value) {
</div> </div>
<QPageSticky :offset="[20, 20]"> <QPageSticky :offset="[20, 20]">
<RouterLink :to="{ name: 'ShelvingCreate' }"> <RouterLink :to="{ name: 'ShelvingCreate' }">
<QBtn fab icon="add" color="primary" /> <QBtn fab icon="add" color="primary" shortcut="+" />
<QTooltip> <QTooltip>
{{ t('shelving.list.newShelving') }} {{ t('shelving.list.newShelving') }}
</QTooltip> </QTooltip>

View File

@ -46,7 +46,7 @@ const redirectToUpdateView = (addressData) => {
</script> </script>
<template> <template>
<QPage class="column items-center q-pa-md"> <QPage class="column items-center q-pa-md" v-shortcut>
<div class="vn-card-list"> <div class="vn-card-list">
<VnPaginate <VnPaginate
data-key="SupplierAddress" data-key="SupplierAddress"
@ -81,7 +81,13 @@ const redirectToUpdateView = (addressData) => {
</VnPaginate> </VnPaginate>
</div> </div>
<QPageSticky :offset="[20, 20]"> <QPageSticky :offset="[20, 20]">
<QBtn fab icon="add" color="primary" @click="redirectToCreateView()" /> <QBtn
fab
icon="add"
color="primary"
@click="redirectToCreateView()"
shortcut="+"
/>
<QTooltip> <QTooltip>
{{ t('New address') }} {{ t('New address') }}
</QTooltip> </QTooltip>
@ -93,3 +99,4 @@ const redirectToUpdateView = (addressData) => {
es: es:
New address: Nueva dirección New address: Nueva dirección
</i18n> </i18n>
s

View File

@ -48,7 +48,7 @@ const redirectToCreateView = () => {
auto-load auto-load
> >
<template #body="{ rows }"> <template #body="{ rows }">
<QCard class="q-pa-md"> <QCard class="q-pa-md" v-shortcut>
<VnRow <VnRow
v-for="(row, index) in rows" v-for="(row, index) in rows"
:key="index" :key="index"
@ -109,7 +109,13 @@ const redirectToCreateView = () => {
</template> </template>
</CrudModel> </CrudModel>
<QPageSticky :offset="[20, 20]"> <QPageSticky :offset="[20, 20]">
<QBtn fab icon="add" color="primary" @click="redirectToCreateView()" /> <QBtn
fab
icon="add"
color="primary"
@click="redirectToCreateView()"
shortcut="+"
/>
<QTooltip> <QTooltip>
{{ t('supplier.agencyTerms.addRow') }} {{ t('supplier.agencyTerms.addRow') }}
</QTooltip> </QTooltip>

View File

@ -174,6 +174,7 @@ const openCreateModal = () => createTicketRequestDialogRef.value.show();
class="full-width q-mt-md" class="full-width q-mt-md"
:no-data-label="t('globals.noResults')" :no-data-label="t('globals.noResults')"
@row-click="(_, row) => redirectToTicketSummary(row.ticketFk)" @row-click="(_, row) => redirectToTicketSummary(row.ticketFk)"
v-shortcut
> >
<template #body-cell-description="{ row }"> <template #body-cell-description="{ row }">
<QTd @click.stop> <QTd @click.stop>
@ -252,7 +253,13 @@ const openCreateModal = () => createTicketRequestDialogRef.value.show();
<TicketCreateRequest @on-request-created="crudModelRef.reload()" /> <TicketCreateRequest @on-request-created="crudModelRef.reload()" />
</QDialog> </QDialog>
<QPageSticky :offset="[20, 20]"> <QPageSticky :offset="[20, 20]">
<QBtn @click="openCreateModal()" color="primary" fab icon="add" /> <QBtn
@click="openCreateModal()"
color="primary"
fab
icon="add"
shortcut="+"
/>
<QTooltip class="text-no-wrap"> <QTooltip class="text-no-wrap">
{{ t('purchaseRequest.newRequest') }} {{ t('purchaseRequest.newRequest') }}
</QTooltip> </QTooltip>

View File

@ -82,7 +82,7 @@ const openCreateModal = () => createTrackingDialogRef.value.show();
data-key="TicketTracking" data-key="TicketTracking"
:filter="paginateFilter" :filter="paginateFilter"
url="TicketTrackings" url="TicketTrackings"
auto-load auto-load
order="created DESC" order="created DESC"
:limit="0" :limit="0"
> >
@ -94,6 +94,7 @@ const openCreateModal = () => createTrackingDialogRef.value.show();
:pagination="{ rowsPerPage: 0 }" :pagination="{ rowsPerPage: 0 }"
class="full-width q-mt-md" class="full-width q-mt-md"
:no-data-label="t('globals.noResults')" :no-data-label="t('globals.noResults')"
v-shortcut
> >
<template #body-cell-worker="{ row }"> <template #body-cell-worker="{ row }">
<QTd @click.stop> <QTd @click.stop>
@ -114,7 +115,13 @@ const openCreateModal = () => createTrackingDialogRef.value.show();
<TicketCreateTracking @on-request-created="paginateRef.fetch()" /> <TicketCreateTracking @on-request-created="paginateRef.fetch()" />
</QDialog> </QDialog>
<QPageSticky :offset="[20, 20]"> <QPageSticky :offset="[20, 20]">
<QBtn @click="openCreateModal()" color="primary" fab icon="add" /> <QBtn
@click="openCreateModal()"
color="primary"
fab
icon="add"
shortcut="+"
/>
<QTooltip class="text-no-wrap"> <QTooltip class="text-no-wrap">
{{ t('tracking.addState') }} {{ t('tracking.addState') }}
</QTooltip> </QTooltip>

View File

@ -147,6 +147,7 @@ const removeThermograph = async (id) => {
:no-data-label="t('No results')" :no-data-label="t('No results')"
row-key="id" row-key="id"
class="full-width q-mt-md" class="full-width q-mt-md"
v-shortcut
> >
<template #body-cell-downloadFile="{ row }"> <template #body-cell-downloadFile="{ row }">
<QTd auto-width> <QTd auto-width>
@ -196,6 +197,7 @@ const removeThermograph = async (id) => {
icon="add" icon="add"
color="primary" color="primary"
@click="redirectToThermographForm('create')" @click="redirectToThermographForm('create')"
shortcut="+"
/> />
<QTooltip class="text-no-wrap"> <QTooltip class="text-no-wrap">
{{ t('Add thermograph') }} {{ t('Add thermograph') }}

View File

@ -40,7 +40,7 @@ async function remove(row) {
</script> </script>
<template> <template>
<QPage class="column items-center q-pa-md"> <QPage class="column items-center q-pa-md" v-shortcut>
<div class="vn-card-list"> <div class="vn-card-list">
<VnPaginate <VnPaginate
data-key="WagonTypeList" data-key="WagonTypeList"
@ -74,7 +74,7 @@ async function remove(row) {
</VnPaginate> </VnPaginate>
</div> </div>
<QPageSticky position="bottom-right" :offset="[18, 18]"> <QPageSticky position="bottom-right" :offset="[18, 18]">
<QBtn @click="create" fab icon="add" color="primary" /> <QBtn @click="create" fab icon="add" color="primary" shortcut="+" />
</QPageSticky> </QPageSticky>
</QPage> </QPage>
</template> </template>

View File

@ -47,7 +47,7 @@ async function remove(row) {
</script> </script>
<template> <template>
<QPage class="column items-center q-pa-md"> <QPage class="column items-center q-pa-md" v-shortcut>
<div class="vn-card-list"> <div class="vn-card-list">
<VnPaginate <VnPaginate
data-key="WagonList" data-key="WagonList"
@ -94,7 +94,7 @@ async function remove(row) {
</VnPaginate> </VnPaginate>
</div> </div>
<QPageSticky position="bottom-right" :offset="[18, 18]"> <QPageSticky position="bottom-right" :offset="[18, 18]">
<QBtn @click="create" fab icon="add" color="primary" /> <QBtn @click="create" fab icon="add" color="primary" shortcut="+" />
</QPageSticky> </QPageSticky>
</QPage> </QPage>
</template> </template>

View File

@ -51,7 +51,7 @@ function reloadData() {
</script> </script>
<template> <template>
<QPage class="column items-center q-pa-md centerCard"> <QPage class="column items-center q-pa-md centerCard" v-shortcut>
<FetchData <FetchData
url="workers/getAvailablePda" url="workers/getAvailablePda"
@on-fetch="(data) => (deviceProductions = data)" @on-fetch="(data) => (deviceProductions = data)"
@ -116,7 +116,7 @@ function reloadData() {
</template> </template>
</VnPaginate> </VnPaginate>
<QPageSticky :offset="[18, 18]"> <QPageSticky :offset="[18, 18]">
<QBtn @click.stop="dialog.show()" color="primary" fab icon="add"> <QBtn @click.stop="dialog.show()" color="primary" fab icon="add" shortcut="+">
<QDialog ref="dialog"> <QDialog ref="dialog">
<FormModelPopup <FormModelPopup
:title="t('Add new device')" :title="t('Add new device')"

View File

@ -72,7 +72,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
/> />
</QScrollArea> </QScrollArea>
</QDrawer> </QDrawer>
<QPage class="q-pa-md flex justify-center"> <QPage class="q-pa-md flex justify-center" v-shortcut>
<ZoneCalendarGrid <ZoneCalendarGrid
v-model:events="events" v-model:events="events"
v-model:firstDay="firstDay" v-model:firstDay="firstDay"
@ -102,6 +102,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
color="primary" color="primary"
fab fab
icon="add" icon="add"
shortcut="+"
/> />
<QTooltip class="text-no-wrap"> <QTooltip class="text-no-wrap">
{{ t('eventsInclusionForm.addEvent') }} {{ t('eventsInclusionForm.addEvent') }}

View File

@ -66,7 +66,7 @@ const openCreateWarehouseForm = () => createWarehouseDialogRef.value.show();
</script> </script>
<template> <template>
<QPage class="column items-center q-pa-md"> <QPage class="column items-center q-pa-md" v-shortcut>
<div class="full-width" style="max-width: 400px"> <div class="full-width" style="max-width: 400px">
<VnPaginate <VnPaginate
ref="paginateRef" ref="paginateRef"
@ -111,7 +111,13 @@ const openCreateWarehouseForm = () => createWarehouseDialogRef.value.show();
<ZoneCreateWarehouse @on-submit-create-warehouse="createZoneWarehouse" /> <ZoneCreateWarehouse @on-submit-create-warehouse="createZoneWarehouse" />
</QDialog> </QDialog>
<QPageSticky position="bottom-right" :offset="[18, 18]"> <QPageSticky position="bottom-right" :offset="[18, 18]">
<QBtn fab icon="add" color="primary" @click="openCreateWarehouseForm()"> <QBtn
fab
icon="add"
color="primary"
@click="openCreateWarehouseForm()"
shortcut="+"
>
<QTooltip>{{ t('warehouses.add') }}</QTooltip> <QTooltip>{{ t('warehouses.add') }}</QTooltip>
</QBtn> </QBtn>
</QPageSticky> </QPageSticky>