0
0
Fork 0

fix: refs #6553 label css

This commit is contained in:
Carlos Satorres 2024-06-05 10:35:14 +02:00
parent 960129f86c
commit f4792d7921
1 changed files with 19 additions and 14 deletions

View File

@ -67,6 +67,7 @@ const businessFilter = {
}, },
], ],
}; };
const columns = computed(() => [ const columns = computed(() => [
{ {
align: 'left', align: 'left',
@ -75,7 +76,7 @@ const columns = computed(() => [
format: ({ started }) => toDate(started), format: ({ started }) => toDate(started),
component: VnInputDate, component: VnInputDate,
cardVisible: true, cardVisible: true,
created: true, create: true,
}, },
{ {
align: 'left', align: 'left',
@ -84,20 +85,22 @@ const columns = computed(() => [
format: ({ ended }) => toDate(ended), format: ({ ended }) => toDate(ended),
component: VnInputDate, component: VnInputDate,
cardVisible: true, cardVisible: true,
created: true, create: true,
}, },
{ {
align: 'left', align: 'left',
label: t('worker.business.tableVisibleColumns.company'),
name: 'companyCodeFk', name: 'companyCodeFk',
component: 'select', component: 'select',
attrs: { attrs: {
url: 'Companies', url: 'Companies',
fields: ['code'], fields: ['code'],
optionLabel: 'code',
label: t('worker.business.tableVisibleColumns.company'),
}, },
event: { 'update:modelValue': (a, b) => console.log(a, b) },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true, create: true,
}, },
{ {
align: 'left', align: 'left',
@ -122,7 +125,7 @@ const columns = computed(() => [
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true, create: true,
}, },
{ {
align: 'left', align: 'left',
@ -135,7 +138,7 @@ const columns = computed(() => [
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true, create: true,
}, },
{ {
align: 'left', align: 'left',
@ -148,7 +151,7 @@ const columns = computed(() => [
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true, create: true,
}, },
{ {
align: 'left', align: 'left',
@ -161,15 +164,15 @@ const columns = computed(() => [
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true, create: true,
}, },
{ {
align: 'left', align: 'left',
label: t('worker.business.tableVisibleColumns.payrollCategories'), label: t('worker.business.tableVisibleColumns.payrollCategories'),
name: 'payrollCategoriesFk', name: 'workerBusinessCategoryFk',
component: 'select', component: 'select',
attrs: { attrs: {
url: 'BusinessReasonEnd', url: 'payrollCategories',
fields: ['id', 'description'], fields: ['id', 'description'],
}, },
disable: false, disable: false,
@ -183,10 +186,11 @@ const columns = computed(() => [
attrs: { attrs: {
url: 'OccupationCodes', url: 'OccupationCodes',
fields: ['code', 'name'], fields: ['code', 'name'],
optionValue: 'code',
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true, create: true,
}, },
{ {
align: 'left', align: 'left',
@ -207,7 +211,7 @@ const columns = computed(() => [
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true, create: true,
}, },
{ {
align: 'left', align: 'left',
@ -216,7 +220,7 @@ const columns = computed(() => [
component: 'input', component: 'input',
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true, create: true,
}, },
{ {
align: 'left', align: 'left',
@ -225,7 +229,7 @@ const columns = computed(() => [
component: 'input', component: 'input',
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true, create: true,
}, },
{ {
align: 'left', align: 'left',
@ -255,6 +259,7 @@ const columns = computed(() => [
default-mode="card" default-mode="card"
auto-load auto-load
:right-search="false" :right-search="false"
card-class="grid-two"
></VnTable> ></VnTable>
</template> </template>
<style lang="scss" scoped></style> <style lang="scss" scoped></style>