From 947496e0a1b5efe32999e4b5438a1e20b2b0b11a Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 27 May 2024 14:43:03 +0200 Subject: [PATCH] refs #7406 fix components --- src/pages/Worker/Card/WorkerFormation.vue | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/pages/Worker/Card/WorkerFormation.vue b/src/pages/Worker/Card/WorkerFormation.vue index 2e27a2a96..8485f4a5b 100644 --- a/src/pages/Worker/Card/WorkerFormation.vue +++ b/src/pages/Worker/Card/WorkerFormation.vue @@ -2,10 +2,13 @@ import { ref, computed, onMounted } from 'vue'; import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; +import { useRoute } from 'vue-router'; import VnTable from 'components/VnTable/VnTable.vue'; import VnInputDate from 'components/common/VnInputDate.vue'; const tableRef = ref(); const { t } = useI18n(); +const route = useRoute(); +const entityId = computed(() => route.params.id); const columns = computed(() => [ { align: 'left', @@ -23,7 +26,6 @@ const columns = computed(() => [ align: 'left', name: 'startDate', label: t('worker.formation.tableVisibleColumns.startDate'), - isTitle: true, component: VnInputDate, props: (prop) => ({ disable: true, @@ -35,7 +37,6 @@ const columns = computed(() => [ align: 'left', name: 'endDate', label: t('worker.formation.tableVisibleColumns.endDate'), - isTitle: true, component: VnInputDate, props: (prop) => ({ disable: true, @@ -47,7 +48,6 @@ const columns = computed(() => [ align: 'left', name: 'center', label: t('worker.formation.tableVisibleColumns.center'), - isTitle: true, component: 'select', attrs: { url: 'Workers/trainingCenter', @@ -59,14 +59,12 @@ const columns = computed(() => [ align: 'left', name: 'invoice', label: t('worker.formation.tableVisibleColumns.invoice'), - isTitle: true, component: 'input', }, { align: 'left', name: 'amount', label: t('worker.formation.tableVisibleColumns.amount'), - isTitle: true, component: 'input', props: (prop) => ({ disable: true, @@ -78,7 +76,6 @@ const columns = computed(() => [ align: 'left', name: 'remark', label: t('worker.formation.tableVisibleColumns.remark'), - isTitle: true, component: 'checkbox', props: (prop) => ({ disable: true, @@ -90,7 +87,6 @@ const columns = computed(() => [ align: 'left', name: 'hasDiploma', label: t('worker.formation.tableVisibleColumns.hasDiploma'), - isTitle: true, props: (prop) => ({ disable: true, 'model-value': prop.row.hasDiploma, @@ -103,8 +99,8 @@ const columns = computed(() => [