Removed TeleportSlot
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
770d699304
commit
06333af38c
|
@ -21,7 +21,14 @@ onMounted(() => stateStore.setMounted());
|
||||||
<template>
|
<template>
|
||||||
<q-header class="bg-dark" color="white" elevated>
|
<q-header class="bg-dark" color="white" elevated>
|
||||||
<q-toolbar class="q-py-sm q-px-md">
|
<q-toolbar class="q-py-sm q-px-md">
|
||||||
<q-btn flat @click="stateStore.toggleLeftDrawer()" round dense icon="menu">
|
<q-btn
|
||||||
|
@click="stateStore.toggleLeftDrawer()"
|
||||||
|
icon="menu"
|
||||||
|
class="q-mr-sm"
|
||||||
|
round
|
||||||
|
dense
|
||||||
|
flat
|
||||||
|
>
|
||||||
<q-tooltip bottom anchor="bottom right">
|
<q-tooltip bottom anchor="bottom right">
|
||||||
{{ t('globals.collapseMenu') }}
|
{{ t('globals.collapseMenu') }}
|
||||||
</q-tooltip>
|
</q-tooltip>
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
<script setup>
|
|
||||||
import { nextTick, ref } from 'vue';
|
|
||||||
|
|
||||||
const $props = defineProps({
|
|
||||||
to: {
|
|
||||||
type: String,
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const isHeaderMounted = ref(false);
|
|
||||||
nextTick(() => {
|
|
||||||
isHeaderMounted.value = document.querySelector($props.to) !== null;
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<template>
|
|
||||||
<teleport v-if="isHeaderMounted" :to="$props.to">
|
|
||||||
<slot />
|
|
||||||
</teleport>
|
|
||||||
</template>
|
|
|
@ -92,10 +92,6 @@ async function search() {
|
||||||
cursor: help;
|
cursor: help;
|
||||||
}
|
}
|
||||||
|
|
||||||
#searchbar .q-field {
|
|
||||||
min-width: 350px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.body--light #searchbar {
|
.body--light #searchbar {
|
||||||
.q-field--standout.q-field--highlighted .q-field__control {
|
.q-field--standout.q-field--highlighted .q-field__control {
|
||||||
background-color: $grey-7;
|
background-color: $grey-7;
|
||||||
|
|
|
@ -238,9 +238,8 @@ function onDrag() {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Teleport
|
<Teleport
|
||||||
|
v-if="stateStore.isHeaderMounted() && !quasar.platform.is.mobile"
|
||||||
to="#actions-prepend"
|
to="#actions-prepend"
|
||||||
v-if="stateStore.isHeaderMounted()"
|
|
||||||
:disabled="quasar.platform.is.mobile"
|
|
||||||
>
|
>
|
||||||
<div class="row q-gutter-x-sm">
|
<div class="row q-gutter-x-sm">
|
||||||
<label for="fileInput">
|
<label for="fileInput">
|
||||||
|
@ -266,49 +265,32 @@ function onDrag() {
|
||||||
</div>
|
</div>
|
||||||
</Teleport>
|
</Teleport>
|
||||||
|
|
||||||
<q-page-sticky expand position="bottom" :offset="[0, 0]">
|
<q-page-sticky
|
||||||
<q-tabs align="justify" inline-label narrow-indicator>
|
v-if="quasar.platform.is.mobile"
|
||||||
<q-tab
|
position="bottom"
|
||||||
@click="inputFile.nativeEl.click()"
|
:offset="[0, 0]"
|
||||||
icon="add_circle"
|
expand
|
||||||
:label="t('globals.add')"
|
|
||||||
>
|
|
||||||
<q-input
|
|
||||||
ref="inputFile"
|
|
||||||
type="file"
|
|
||||||
style="display: none"
|
|
||||||
multiple
|
|
||||||
v-model="files"
|
|
||||||
@update:model-value="create()"
|
|
||||||
/>
|
|
||||||
<q-tooltip bottom> {{ t('globals.add') }} </q-tooltip>
|
|
||||||
</q-tab>
|
|
||||||
</q-tabs>
|
|
||||||
</q-page-sticky>
|
|
||||||
|
|
||||||
<!-- <Teleport
|
|
||||||
v-if="stateStore.isHeaderMounted()"
|
|
||||||
to=".q-footer"
|
|
||||||
:disabled="!quasar.platform.is.mobile"
|
|
||||||
>
|
>
|
||||||
<q-tabs align="justify" inline-label narrow-indicator>
|
<q-toolbar class="bg-primary text-white q-pa-none">
|
||||||
<q-tab
|
<q-tabs class="full-width" align="justify" inline-label narrow-indicator>
|
||||||
@click="inputFile.nativeEl.click()"
|
<q-tab
|
||||||
icon="add_circle"
|
@click="inputFile.nativeEl.click()"
|
||||||
:label="t('globals.add')"
|
icon="add_circle"
|
||||||
>
|
:label="t('globals.add')"
|
||||||
<q-input
|
>
|
||||||
ref="inputFile"
|
<q-input
|
||||||
type="file"
|
ref="inputFile"
|
||||||
style="display: none"
|
type="file"
|
||||||
multiple
|
style="display: none"
|
||||||
v-model="files"
|
multiple
|
||||||
@update:model-value="create()"
|
v-model="files"
|
||||||
/>
|
@update:model-value="create()"
|
||||||
<q-tooltip bottom> {{ t('globals.add') }} </q-tooltip>
|
/>
|
||||||
</q-tab>
|
<q-tooltip bottom> {{ t('globals.add') }} </q-tooltip>
|
||||||
</q-tabs>
|
</q-tab>
|
||||||
</Teleport> -->
|
</q-tabs>
|
||||||
|
</q-toolbar>
|
||||||
|
</q-page-sticky>
|
||||||
|
|
||||||
<!-- MULTIMEDIA DIALOG START-->
|
<!-- MULTIMEDIA DIALOG START-->
|
||||||
<q-dialog
|
<q-dialog
|
||||||
|
|
|
@ -5,9 +5,9 @@ import { useI18n } from 'vue-i18n';
|
||||||
import { useQuasar } from 'quasar';
|
import { useQuasar } from 'quasar';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { useArrayData } from 'src/composables/useArrayData';
|
import { useArrayData } from 'src/composables/useArrayData';
|
||||||
|
import { useStateStore } from 'stores/useStateStore';
|
||||||
import Paginate from 'src/components/PaginateData.vue';
|
import Paginate from 'src/components/PaginateData.vue';
|
||||||
import FetchData from 'components/FetchData.vue';
|
import FetchData from 'components/FetchData.vue';
|
||||||
import TeleportSlot from 'components/ui/TeleportSlot.vue';
|
|
||||||
import VnConfirm from 'src/components/ui/VnConfirm.vue';
|
import VnConfirm from 'src/components/ui/VnConfirm.vue';
|
||||||
|
|
||||||
import { toDate } from 'src/filters';
|
import { toDate } from 'src/filters';
|
||||||
|
@ -15,6 +15,7 @@ import { toDate } from 'src/filters';
|
||||||
const quasar = useQuasar();
|
const quasar = useQuasar();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
const stateStore = useStateStore();
|
||||||
const arrayData = useArrayData('ClaimRma');
|
const arrayData = useArrayData('ClaimRma');
|
||||||
|
|
||||||
const claim = ref();
|
const claim = ref();
|
||||||
|
@ -44,6 +45,12 @@ async function onFetch(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function addRow() {
|
async function addRow() {
|
||||||
|
if (!claim.value.rma) {
|
||||||
|
return quasar.notify({
|
||||||
|
message: `This claim is not associated to any RMA`,
|
||||||
|
type: 'negative',
|
||||||
|
});
|
||||||
|
}
|
||||||
const formData = {
|
const formData = {
|
||||||
code: claim.value.rma,
|
code: claim.value.rma,
|
||||||
};
|
};
|
||||||
|
@ -138,20 +145,31 @@ async function remove(id) {
|
||||||
</paginate>
|
</paginate>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<teleport-slot v-if="!quasar.platform.is.mobile" to="#actions-prepend">
|
|
||||||
|
<Teleport
|
||||||
|
v-if="stateStore.isHeaderMounted() && !quasar.platform.is.mobile"
|
||||||
|
to="#actions-prepend"
|
||||||
|
>
|
||||||
<div class="row q-gutter-x-sm">
|
<div class="row q-gutter-x-sm">
|
||||||
<q-btn @click="addRow()" icon="add" color="primary" dense rounded>
|
<q-btn @click="addRow()" icon="add" color="primary" dense rounded>
|
||||||
<q-tooltip bottom> {{ t('globals.add') }} </q-tooltip>
|
<q-tooltip bottom> {{ t('globals.add') }} </q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<q-separator vertical />
|
<q-separator vertical />
|
||||||
</div>
|
</div>
|
||||||
</teleport-slot>
|
</Teleport>
|
||||||
|
|
||||||
<teleport-slot to=".q-footer">
|
<q-page-sticky
|
||||||
<q-tabs align="justify" inline-label narrow-indicator>
|
v-if="quasar.platform.is.mobile"
|
||||||
<q-tab @click="addRow()" icon="add_circle" :label="t('globals.add')" />
|
position="bottom"
|
||||||
</q-tabs>
|
:offset="[0, 0]"
|
||||||
</teleport-slot>
|
expand
|
||||||
|
>
|
||||||
|
<q-toolbar class="bg-primary text-white q-pa-none">
|
||||||
|
<q-tabs class="full-width" align="justify" inline-label narrow-indicator>
|
||||||
|
<q-tab @click="addRow()" icon="add_circle" :label="t('globals.add')" />
|
||||||
|
</q-tabs>
|
||||||
|
</q-toolbar>
|
||||||
|
</q-page-sticky>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -170,3 +188,8 @@ async function remove(id) {
|
||||||
z-index: 2998;
|
z-index: 2998;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<i18n>
|
||||||
|
es:
|
||||||
|
This claim is not associated to any RMA: Esta reclamación no está asociada a ninguna ARM
|
||||||
|
</i18n>
|
||||||
|
|
Loading…
Reference in New Issue