7355-accountMigration2 #619
|
@ -60,7 +60,7 @@ const columns = computed(() => [
|
||||||
<VnTable
|
<VnTable
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
data-key="AccountAliasList"
|
data-key="AccountAliasList"
|
||||||
:url="`MailAliases`"
|
url="MailAliases"
|
||||||
:create="{
|
:create="{
|
||||||
urlCreate: 'MailAliases',
|
urlCreate: 'MailAliases',
|
||||||
title: 'Create MailAlias',
|
title: 'Create MailAlias',
|
||||||
|
|
|
@ -1,22 +1,8 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRoute } from 'vue-router';
|
|
||||||
import { computed } from 'vue';
|
|
||||||
|
|
||||||
import VnCard from 'components/common/VnCard.vue';
|
import VnCard from 'components/common/VnCard.vue';
|
||||||
import AliasDescriptor from './AliasDescriptor.vue';
|
import AliasDescriptor from './AliasDescriptor.vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const route = useRoute();
|
|
||||||
|
|
||||||
const routeName = computed(() => route.name);
|
|
||||||
const customRouteRedirectName = computed(() => {
|
|
||||||
return routeName.value;
|
|
||||||
});
|
|
||||||
const searchBarDataKeys = {
|
|
||||||
AliasBasicData: 'AliasBasicData',
|
|
||||||
AliasUsers: 'AliasUsers',
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -24,12 +10,12 @@ const searchBarDataKeys = {
|
||||||
data-key="Alias"
|
data-key="Alias"
|
||||||
base-url="MailAliases"
|
base-url="MailAliases"
|
||||||
:descriptor="AliasDescriptor"
|
:descriptor="AliasDescriptor"
|
||||||
:search-data-key="searchBarDataKeys[routeName]"
|
search-data-key="AccountAliasList"
|
||||||
:searchbar-props="{
|
:searchbar-props="{
|
||||||
redirect: !!customRouteRedirectName,
|
url: 'MailAliases',
|
||||||
customRouteRedirectName,
|
|
||||||
info: t('mailAlias.searchInfo'),
|
info: t('mailAlias.searchInfo'),
|
||||||
label: t('mailAlias.search'),
|
label: t('mailAlias.search'),
|
||||||
|
searchUrl: 'table',
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -14,6 +14,7 @@ const { t } = useI18n();
|
||||||
url: 'VnRoles',
|
url: 'VnRoles',
|
||||||
label: t('role.searchRoles'),
|
label: t('role.searchRoles'),
|
||||||
info: t('role.searchInfo'),
|
info: t('role.searchInfo'),
|
||||||
|
searchUrl: 'table',
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue