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