refs #6898 fix colmns subtoolbar
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Carlos Satorres 2024-07-01 13:16:25 +02:00
parent ff9e78cd47
commit 95a3043359
1 changed files with 20 additions and 0 deletions

View File

@ -2,6 +2,7 @@
import { computed, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import VnTable from 'components/VnTable/VnTable.vue';
import VnSubToolbar from 'components/ui/VnSubToolbar.vue';
const { t } = useI18n();
const tableRef = ref();
@ -19,24 +20,36 @@ const columns = computed(() => [
name: 'name',
create: true,
component: 'input',
columnField: {
component: null,
},
},
{
align: 'left',
label: t('supplier.list.tableVisibleColumns.nif'),
name: 'nif',
component: 'input',
columnField: {
component: null,
},
},
{
align: 'left',
label: t('supplier.list.tableVisibleColumns.nickname'),
name: 'nickname',
component: 'input',
columnField: {
component: null,
},
},
{
align: 'left',
label: t('supplier.list.tableVisibleColumns.account'),
name: 'account',
component: 'input',
columnField: {
component: null,
},
},
{
align: 'left',
@ -47,17 +60,24 @@ const columns = computed(() => [
url: 'payMethods',
fields: ['id', 'name'],
},
columnField: {
component: null,
},
},
{
align: 'left',
label: t('supplier.list.tableVisibleColumns.payDay'),
name: 'payDat',
component: 'input',
columnField: {
component: null,
},
},
]);
</script>
<template>
<VnSubToolbar />
<VnTable
ref="tableRef"
data-key="SuppliersList"