From 530ed4b716b55aa2ddb5365baddadc5694f2281f Mon Sep 17 00:00:00 2001 From: carlossa Date: Fri, 4 Oct 2024 08:48:36 +0200 Subject: [PATCH] refs #7355 fix searchbar --- src/pages/Account/AccountList.vue | 25 +++++++++---------------- src/pages/Account/Card/AccountCard.vue | 2 +- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/src/pages/Account/AccountList.vue b/src/pages/Account/AccountList.vue index d698596b9..d1240f7a6 100644 --- a/src/pages/Account/AccountList.vue +++ b/src/pages/Account/AccountList.vue @@ -5,7 +5,8 @@ import VnTable from 'components/VnTable/VnTable.vue'; import VnSearchbar from 'components/ui/VnSearchbar.vue'; import AccountSummary from './Card/AccountSummary.vue'; import { useSummaryDialog } from 'src/composables/useSummaryDialog'; - +import AccountFilter from './AccountFilter.vue'; +import RightMenu from 'src/components/common/RightMenu.vue'; const { t } = useI18n(); const { viewSummary } = useSummaryDialog(); const tableRef = ref(); @@ -18,14 +19,6 @@ const columns = computed(() => [ isId: true, field: 'id', cardVisible: true, - columnFilter: { - component: 'select', - name: 'search', - attrs: { - url: 'VnUsers/preview', - fields: ['id', 'name'], - }, - }, }, { align: 'left', @@ -36,9 +29,6 @@ const columns = computed(() => [ columnField: { component: null, }, - columnFilter: { - inWhere: true, - }, cardVisible: true, create: true, }, @@ -50,9 +40,6 @@ const columns = computed(() => [ columnField: { component: null, }, - columnFilter: { - inWhere: true, - }, cardVisible: true, create: true, }, @@ -105,7 +92,11 @@ const exprBuilder = (param, value) => { :label="t('account.search')" :info="t('account.searchInfo')" /> - + + + { default-mode="table" redirect="account" :use-model="true" + :right-search="false" + auto-load /> diff --git a/src/pages/Account/Card/AccountCard.vue b/src/pages/Account/Card/AccountCard.vue index 67fa15898..119a7fd07 100644 --- a/src/pages/Account/Card/AccountCard.vue +++ b/src/pages/Account/Card/AccountCard.vue @@ -10,7 +10,7 @@ const { t } = useI18n();