This commit is contained in:
parent
618d358256
commit
7f8c8b07c4
|
@ -3,6 +3,7 @@ import { useI18n } from 'vue-i18n';
|
||||||
import { ref, computed } from 'vue';
|
import { ref, computed } from 'vue';
|
||||||
import VnTable from 'components/VnTable/VnTable.vue';
|
import VnTable from 'components/VnTable/VnTable.vue';
|
||||||
import VnSection from 'src/components/common/VnSection.vue';
|
import VnSection from 'src/components/common/VnSection.vue';
|
||||||
|
import exprBuilder from './Alias/AliasExprBuilder';
|
||||||
|
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -31,15 +32,6 @@ const columns = computed(() => [
|
||||||
create: true,
|
create: true,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const exprBuilder = (param, value) => {
|
|
||||||
switch (param) {
|
|
||||||
case 'search':
|
|
||||||
return /^\d+$/.test(value)
|
|
||||||
? { id: value }
|
|
||||||
: { alias: { like: `%${value}%` } };
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -3,7 +3,7 @@ export default {
|
||||||
path: ':id',
|
path: ':id',
|
||||||
component: () => import('src/pages/Account/Alias/Card/AliasCard.vue'),
|
component: () => import('src/pages/Account/Alias/Card/AliasCard.vue'),
|
||||||
redirect: { name: 'AliasSummary' },
|
redirect: { name: 'AliasSummary' },
|
||||||
meta: { menu: ['AliasBasicData', 'AliasUsers'] },
|
meta: { moduleName: 'Alias', menu: ['AliasBasicData', 'AliasUsers'] },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'AliasSummary',
|
name: 'AliasSummary',
|
||||||
|
|
Loading…
Reference in New Issue