7837-testToMaster_2432 #592

Merged
alexm merged 165 commits from 7837-testToMaster_2432 into master 2024-08-06 05:54:11 +00:00
1 changed files with 22 additions and 19 deletions
Showing only changes of commit 108375bb69 - Show all commits

View File

@ -20,6 +20,19 @@ const agenciesOptions = ref([]);
const selectedClient = ref();
const columns = computed(() => [
{
align: 'left',
name: 'stateFk',
label: t('ticketList.state'),
columnFilter: {
name: 'stateFk',
component: 'select',
attrs: {
url: 'States',
fields: ['id', 'name'],
},
},
},
{
align: 'left',
name: 'id',
@ -35,25 +48,7 @@ const columns = computed(() => [
label: t('ticketList.nickname'),
isTitle: true,
},
{
align: 'left',
name: 'state',
label: t('ticketList.state'),
chip: {
condition: () => true,
color: (row) => {
return row?.classColor ? `bg-${row.classColor}` : 'bg-orange';
},
},
columnFilter: {
name: 'stateFk',
component: 'select',
attrs: {
url: 'States',
fields: ['id', 'name'],
},
},
},
{
align: 'left',
name: 'shipped',
@ -189,6 +184,9 @@ const fetchAddresses = async (formData) => {
return err.response;
}
};
const getColor = (row) => {
return row?.classColor ? `bg-${row.classColor}` : 'bg-orange';
};
</script>
<template>
@ -302,6 +300,11 @@ const fetchAddresses = async (formData) => {
</div>
</VnRow>
</template>
<template #column-stateFk="{ row }">
<QChip :class="getColor(row)" dense square>
{{ row.state }}
</QChip>
</template>
</VnTable>
</template>