forked from verdnatura/salix-front
Update Wagon list
This commit is contained in:
parent
cd30d6184a
commit
78477ef362
|
@ -5,7 +5,8 @@ import VnPaginate from 'src/components/ui/VnPaginate.vue';
|
||||||
import { useArrayData } from 'src/composables/useArrayData';
|
import { useArrayData } from 'src/composables/useArrayData';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import CardList2 from "components/ui/CardList2.vue";
|
import CardList2 from 'components/ui/CardList2.vue';
|
||||||
|
import VnLv from 'components/ui/VnLv.vue';
|
||||||
|
|
||||||
const quasar = useQuasar();
|
const quasar = useQuasar();
|
||||||
const arrayData = useArrayData('WagonTypeList');
|
const arrayData = useArrayData('WagonTypeList');
|
||||||
|
@ -54,19 +55,23 @@ async function remove(row) {
|
||||||
:key="row.id"
|
:key="row.id"
|
||||||
:title="(row.name || '').toString()"
|
:title="(row.name || '').toString()"
|
||||||
:id="row.id"
|
:id="row.id"
|
||||||
@click="navigate(row.id)">
|
@click="navigate(row.id)"
|
||||||
|
>
|
||||||
|
<template #list-items>
|
||||||
|
<VnLv label="ID" :value="row.id" />
|
||||||
|
</template>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<QBtn
|
<QBtn
|
||||||
:label="t('components.smartCard.openCard')"
|
:label="t('components.smartCard.openCard')"
|
||||||
@click.stop="navigate(row.id)"
|
@click.stop="navigate(row.id)"
|
||||||
color="primary"
|
color="white"
|
||||||
|
outline
|
||||||
type="submit"
|
type="submit"
|
||||||
/>
|
/>
|
||||||
<QBtn
|
<QBtn
|
||||||
:label="t('wagon.list.remove')"
|
:label="t('wagon.list.remove')"
|
||||||
@click.stop="remove(row)"
|
@click.stop="remove(row)"
|
||||||
color="primary"
|
color="primary"
|
||||||
flat
|
|
||||||
style="margin-top: 15px"
|
style="margin-top: 15px"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -62,17 +62,16 @@ async function remove(row) {
|
||||||
:key="row.id"
|
:key="row.id"
|
||||||
:title="(row.label || '').toString()"
|
:title="(row.label || '').toString()"
|
||||||
:id="row.id"
|
:id="row.id"
|
||||||
@click="navigate(row.id)">
|
@click="navigate(row.id)"
|
||||||
|
>
|
||||||
<template #list-items>
|
<template #list-items>
|
||||||
|
<VnLv label="ID" :value="row.id" />
|
||||||
<VnLv
|
<VnLv
|
||||||
:label="t('wagon.list.plate')"
|
:label="t('wagon.list.plate')"
|
||||||
:title-label="t('wagon.list.plate')"
|
:title-label="t('wagon.list.plate')"
|
||||||
:value="row.plate"
|
:value="row.plate"
|
||||||
/>
|
/>
|
||||||
<VnLv
|
<VnLv :label="t('wagon.list.volume')" :value="row?.volume" />
|
||||||
:label="t('wagon.list.volume')"
|
|
||||||
:value="row?.volume"
|
|
||||||
/>
|
|
||||||
<VnLv
|
<VnLv
|
||||||
:label="t('wagon.list.type')"
|
:label="t('wagon.list.type')"
|
||||||
:value="row?.type?.name"
|
:value="row?.type?.name"
|
||||||
|
@ -82,14 +81,14 @@ async function remove(row) {
|
||||||
<QBtn
|
<QBtn
|
||||||
:label="t('components.smartCard.openCard')"
|
:label="t('components.smartCard.openCard')"
|
||||||
@click.stop="navigate(row.id)"
|
@click.stop="navigate(row.id)"
|
||||||
color="primary"
|
color="white"
|
||||||
|
outline
|
||||||
type="submit"
|
type="submit"
|
||||||
/>
|
/>
|
||||||
<QBtn
|
<QBtn
|
||||||
:label="t('wagon.list.remove')"
|
:label="t('wagon.list.remove')"
|
||||||
@click.stop="remove(row)"
|
@click.stop="remove(row)"
|
||||||
color="primary"
|
color="primary"
|
||||||
flat
|
|
||||||
style="margin-top: 15px"
|
style="margin-top: 15px"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue