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" />