From b03efbc9771b84dbb14d2e8ce0793b6c24f00ced Mon Sep 17 00:00:00 2001 From: provira Date: Fri, 27 Dec 2024 14:51:23 +0100 Subject: [PATCH] refactor: refs #8322 changed Worker component to use VnSection/VnCardBeta --- src/pages/Worker/Card/WorkerCard.vue | 18 +- src/pages/Worker/WorkerList.vue | 364 +++++++++++++------------ src/pages/Worker/locale/en.yml | 3 + src/pages/Worker/locale/es.yml | 5 +- src/router/modules/worker.js | 389 ++++++++++++++------------- 5 files changed, 401 insertions(+), 378 deletions(-) diff --git a/src/pages/Worker/Card/WorkerCard.vue b/src/pages/Worker/Card/WorkerCard.vue index d66bd2608..1ada15a33 100644 --- a/src/pages/Worker/Card/WorkerCard.vue +++ b/src/pages/Worker/Card/WorkerCard.vue @@ -1,21 +1,7 @@ diff --git a/src/pages/Worker/WorkerList.vue b/src/pages/Worker/WorkerList.vue index c2ddfcd20..6883a149f 100644 --- a/src/pages/Worker/WorkerList.vue +++ b/src/pages/Worker/WorkerList.vue @@ -2,7 +2,6 @@ import { onBeforeMount, computed, ref } from 'vue'; import { useI18n } from 'vue-i18n'; import { useSummaryDialog } from 'src/composables/useSummaryDialog'; -import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; import VnTable from 'src/components/VnTable/VnTable.vue'; import WorkerSummary from './Card/WorkerSummary.vue'; import VnRow from 'src/components/ui/VnRow.vue'; @@ -14,12 +13,11 @@ import VnLocation from 'src/components/common/VnLocation.vue'; import VnSelectDialog from 'src/components/common/VnSelectDialog.vue'; import CreateBankEntityForm from 'src/components/CreateBankEntityForm.vue'; import FetchData from 'src/components/FetchData.vue'; -import RightMenu from 'src/components/common/RightMenu.vue'; import WorkerFilter from './WorkerFilter.vue'; import { useState } from 'src/composables/useState'; import axios from 'axios'; import VnSelectWorker from 'src/components/common/VnSelectWorker.vue'; - +import VnSection from 'src/components/common/VnSection.vue'; const { t } = useI18n(); const tableRef = ref(); const { viewSummary } = useSummaryDialog(); @@ -31,6 +29,7 @@ const postcodesOptions = ref([]); const user = useState().getUser(); const defaultPayMethod = ref(); const bankEntitiesRef = ref(); +const dataKey = 'WorkerList'; const columns = computed(() => [ { align: 'left', @@ -170,11 +169,6 @@ async function autofillBic(worker) { }