From 6c9627c6c51c5dfeb6d61906e0193165a11e5fe3 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 6 Nov 2024 17:51:21 +0100 Subject: [PATCH] fix(worker): add searchurls --- src/pages/Worker/Card/WorkerBalance.vue | 19 ++++++++++++++++--- src/pages/Worker/Card/WorkerFormation.vue | 1 + src/pages/Worker/Card/WorkerMedical.vue | 1 + .../Card/WorkerNotificationsManager.vue | 1 + src/pages/Worker/Card/WorkerPda.vue | 1 + 5 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/pages/Worker/Card/WorkerBalance.vue b/src/pages/Worker/Card/WorkerBalance.vue index c5367a281..25ab92c9b 100644 --- a/src/pages/Worker/Card/WorkerBalance.vue +++ b/src/pages/Worker/Card/WorkerBalance.vue @@ -3,11 +3,12 @@ import { ref, computed } from 'vue'; import { useI18n } from 'vue-i18n'; import { useRoute } from 'vue-router'; import VnTable from 'components/VnTable/VnTable.vue'; +import FetchData from 'src/components/FetchData.vue'; const tableRef = ref(); +const payrollComponents = ref([]); const { t } = useI18n(); const route = useRoute(); const entityId = computed(() => route.params.id); - const columns = computed(() => [ { align: 'left', @@ -25,8 +26,9 @@ const columns = computed(() => [ create: true, component: 'select', attrs: { - url: 'payrollComponents', - fields: ['id', 'name'], + options: payrollComponents, + optionLabel: 'name', + optionValue: 'id', }, cardVisible: true, }, @@ -73,6 +75,16 @@ const columns = computed(() => [ ]); diff --git a/src/pages/Worker/Card/WorkerFormation.vue b/src/pages/Worker/Card/WorkerFormation.vue index c11dd019e..596691d2e 100644 --- a/src/pages/Worker/Card/WorkerFormation.vue +++ b/src/pages/Worker/Card/WorkerFormation.vue @@ -134,6 +134,7 @@ const columns = computed(() => [ :is-editable="true" :use-model="true" :default-remove="false" + search-url="formation" />