0
0
Fork 0

fix: CustomerSamples

This commit is contained in:
Javier Segarra 2024-09-12 20:43:50 +02:00
parent a29ee42b9e
commit 8fc7e3cfb4
1 changed files with 13 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
import { ref, computed } from 'vue'; import { ref, computed } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useRoute, useRouter } from 'vue-router'; import { useRoute } from 'vue-router';
import { QBtn, useQuasar } from 'quasar'; import { QBtn, useQuasar } from 'quasar';
@ -13,7 +13,6 @@ import CustomerSamplesCreate from '../components/CustomerSamplesCreate.vue';
const { t } = useI18n(); const { t } = useI18n();
const route = useRoute(); const route = useRoute();
const router = useRouter();
const filter = { const filter = {
include: [ include: [
@ -42,7 +41,16 @@ const columns = computed(() => [
{ {
align: 'left', align: 'left',
label: t('Worker'), label: t('Worker'),
name: 'worker', columnField: {
component: 'userLink',
attrs: ({ row }) => {
return {
defaultName: true,
workerId: row?.user?.id,
name: row?.user?.name,
};
},
},
}, },
{ {
align: 'left', align: 'left',
@ -73,7 +81,9 @@ const tableRef = ref();
:columns="columns" :columns="columns"
:pagination="{ rowsPerPage: 12 }" :pagination="{ rowsPerPage: 12 }"
:disable-option="{ card: true }" :disable-option="{ card: true }"
:right-search="false"
:rows="rows" :rows="rows"
:order="['created DESC']"
class="full-width q-mt-md" class="full-width q-mt-md"
row-key="id" row-key="id"
:create="false" :create="false"