forked from verdnatura/salix-front
fix: refs #7911 fixed shortcut and related files
This commit is contained in:
parent
70806769ce
commit
b6e14c4e6a
|
@ -9,7 +9,9 @@ export default {
|
||||||
ctrl: true,
|
ctrl: true,
|
||||||
alt: true,
|
alt: true,
|
||||||
callback: () =>
|
callback: () =>
|
||||||
document.querySelector('button[shortcut="+"]')?.click(),
|
document
|
||||||
|
.querySelector(`button[shortcut="${shortcut}"]`)
|
||||||
|
?.click(),
|
||||||
}
|
}
|
||||||
: binding.value;
|
: binding.value;
|
||||||
|
|
||||||
|
|
|
@ -291,7 +291,6 @@ defineExpose({
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<QDrawer
|
<QDrawer
|
||||||
v-shortcut
|
|
||||||
v-if="$props.rightSearch"
|
v-if="$props.rightSearch"
|
||||||
v-model="stateStore.rightDrawer"
|
v-model="stateStore.rightDrawer"
|
||||||
side="right"
|
side="right"
|
||||||
|
|
|
@ -14,7 +14,7 @@ onMounted(() => (stateStore.leftDrawer = $props.leftDrawer));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QDrawer v-model="stateStore.leftDrawer" show-if-above :width="256" v-shortcut>
|
<QDrawer v-model="stateStore.leftDrawer" show-if-above :width="256">
|
||||||
<QScrollArea class="fit text-grey-8">
|
<QScrollArea class="fit text-grey-8">
|
||||||
<LeftMenu />
|
<LeftMenu />
|
||||||
</QScrollArea>
|
</QScrollArea>
|
||||||
|
|
|
@ -5,7 +5,7 @@ const quasar = useQuasar();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QLayout view="hHh LpR fFf">
|
<QLayout view="hHh LpR fFf" v-shortcut>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<RouterView></RouterView>
|
<RouterView></RouterView>
|
||||||
<QFooter v-if="quasar.platform.is.mobile"></QFooter>
|
<QFooter v-if="quasar.platform.is.mobile"></QFooter>
|
||||||
|
|
|
@ -110,7 +110,7 @@ onMounted(async () => await getAccountData(false));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QPage class="column items-center q-pa-md" v-shortcut>
|
<QPage class="column items-center q-pa-md">
|
||||||
<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
|
||||||
|
|
|
@ -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" v-shortcut>
|
<QCard class="card-width q-pa-lg" v-if="addresses.length">
|
||||||
<QCardSection>
|
<QCardSection>
|
||||||
<div
|
<div
|
||||||
v-for="(item, index) in addresses"
|
v-for="(item, index) in addresses"
|
||||||
|
|
|
@ -292,7 +292,13 @@ const showBalancePdf = ({ id }) => {
|
||||||
</template>
|
</template>
|
||||||
</VnTable>
|
</VnTable>
|
||||||
<QPageSticky :offset="[18, 18]" style="z-index: 2">
|
<QPageSticky :offset="[18, 18]" style="z-index: 2">
|
||||||
<QBtn @click.stop="showNewPaymentDialog()" color="primary" fab icon="add" />
|
<QBtn
|
||||||
|
@click.stop="showNewPaymentDialog()"
|
||||||
|
color="primary"
|
||||||
|
fab
|
||||||
|
icon="add"
|
||||||
|
shortcut="+"
|
||||||
|
/>
|
||||||
<QTooltip>
|
<QTooltip>
|
||||||
{{ t('New payment') }}
|
{{ t('New payment') }}
|
||||||
</QTooltip>
|
</QTooltip>
|
||||||
|
|
|
@ -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" v-shortcut>
|
<QCard class="card-width q-pa-lg">
|
||||||
<VnPaginate
|
<VnPaginate
|
||||||
:filter="filter"
|
:filter="filter"
|
||||||
@on-fetch="fetch"
|
@on-fetch="fetch"
|
||||||
|
|
|
@ -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" v-shortcut>
|
<QPage class="column items-center q-pa-md">
|
||||||
<VnPaginate
|
<VnPaginate
|
||||||
ref="paginateRef"
|
ref="paginateRef"
|
||||||
data-key="ItemList"
|
data-key="ItemList"
|
||||||
|
|
|
@ -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" v-shortcut>
|
<QPage class="column items-center q-pa-md">
|
||||||
<div class="vn-card-list">
|
<div class="vn-card-list">
|
||||||
<VnPaginate
|
<VnPaginate
|
||||||
data-key="ItemTypeList"
|
data-key="ItemTypeList"
|
||||||
|
|
|
@ -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" v-shortcut>
|
<QPage class="column items-center q-pa-md">
|
||||||
<div class="vn-card-list">
|
<div class="vn-card-list">
|
||||||
<VnPaginate
|
<VnPaginate
|
||||||
data-key="ShelvingList"
|
data-key="ShelvingList"
|
||||||
|
|
|
@ -46,7 +46,7 @@ const redirectToUpdateView = (addressData) => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QPage class="column items-center q-pa-md" v-shortcut>
|
<QPage class="column items-center q-pa-md">
|
||||||
<div class="vn-card-list">
|
<div class="vn-card-list">
|
||||||
<VnPaginate
|
<VnPaginate
|
||||||
data-key="SupplierAddress"
|
data-key="SupplierAddress"
|
||||||
|
|
|
@ -48,7 +48,7 @@ const redirectToCreateView = () => {
|
||||||
auto-load
|
auto-load
|
||||||
>
|
>
|
||||||
<template #body="{ rows }">
|
<template #body="{ rows }">
|
||||||
<QCard class="q-pa-md" v-shortcut>
|
<QCard class="q-pa-md">
|
||||||
<VnRow
|
<VnRow
|
||||||
v-for="(row, index) in rows"
|
v-for="(row, index) in rows"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
|
|
@ -174,7 +174,6 @@ 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>
|
||||||
|
|
|
@ -94,7 +94,6 @@ 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>
|
||||||
|
|
|
@ -147,7 +147,6 @@ 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>
|
||||||
|
|
|
@ -40,7 +40,7 @@ async function remove(row) {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QPage class="column items-center q-pa-md" v-shortcut>
|
<QPage class="column items-center q-pa-md">
|
||||||
<div class="vn-card-list">
|
<div class="vn-card-list">
|
||||||
<VnPaginate
|
<VnPaginate
|
||||||
data-key="WagonTypeList"
|
data-key="WagonTypeList"
|
||||||
|
|
|
@ -47,7 +47,7 @@ async function remove(row) {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QPage class="column items-center q-pa-md" v-shortcut>
|
<QPage class="column items-center q-pa-md">
|
||||||
<div class="vn-card-list">
|
<div class="vn-card-list">
|
||||||
<VnPaginate
|
<VnPaginate
|
||||||
data-key="WagonList"
|
data-key="WagonList"
|
||||||
|
|
|
@ -51,7 +51,7 @@ function reloadData() {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QPage class="column items-center q-pa-md centerCard" v-shortcut>
|
<QPage class="column items-center q-pa-md centerCard">
|
||||||
<FetchData
|
<FetchData
|
||||||
url="workers/getAvailablePda"
|
url="workers/getAvailablePda"
|
||||||
@on-fetch="(data) => (deviceProductions = data)"
|
@on-fetch="(data) => (deviceProductions = data)"
|
||||||
|
|
|
@ -72,7 +72,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
/>
|
/>
|
||||||
</QScrollArea>
|
</QScrollArea>
|
||||||
</QDrawer>
|
</QDrawer>
|
||||||
<QPage class="q-pa-md flex justify-center" v-shortcut>
|
<QPage class="q-pa-md flex justify-center">
|
||||||
<ZoneCalendarGrid
|
<ZoneCalendarGrid
|
||||||
v-model:events="events"
|
v-model:events="events"
|
||||||
v-model:firstDay="firstDay"
|
v-model:firstDay="firstDay"
|
||||||
|
|
|
@ -66,7 +66,7 @@ const openCreateWarehouseForm = () => createWarehouseDialogRef.value.show();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QPage class="column items-center q-pa-md" v-shortcut>
|
<QPage class="column items-center q-pa-md">
|
||||||
<div class="full-width" style="max-width: 400px">
|
<div class="full-width" style="max-width: 400px">
|
||||||
<VnPaginate
|
<VnPaginate
|
||||||
ref="paginateRef"
|
ref="paginateRef"
|
||||||
|
|
Loading…
Reference in New Issue