diff --git a/src/pages/Account/AccountList.vue b/src/pages/Account/AccountList.vue index cbaaf8e26..7d2a7bae0 100644 --- a/src/pages/Account/AccountList.vue +++ b/src/pages/Account/AccountList.vue @@ -22,10 +22,27 @@ const columns = computed(() => [ field: 'id', cardVisible: true, }, + { + align: 'left', + name: 'name', + label: t('Name'), + component: 'input', + columnField: { + component: null, + }, + cardVisible: true, + create: true, + }, { align: 'left', name: 'roleFk', label: t('role'), + component: 'select', + attrs: { + url: 'VnRoles', + optionValue: 'id', + optionLabel: 'name', + }, columnFilter: { component: 'select', name: 'roleFk', @@ -35,7 +52,11 @@ const columns = computed(() => [ optionLabel: 'name', }, }, + columnField: { + component: null, + }, format: ({ role }, dashIfEmpty) => dashIfEmpty(role?.name), + create: true, }, { align: 'left', @@ -51,20 +72,36 @@ const columns = computed(() => [ }, { align: 'left', - name: 'name', - label: t('Name'), + name: 'email', + label: t('email'), component: 'input', columnField: { component: null, }, - cardVisible: true, create: true, + visible: false, }, { align: 'left', - name: 'email', - label: t('email'), - component: 'input', + name: 'password', + label: t('password'), + columnField: { + component: null, + }, + columnCreate: { + component: 'input', + type: 'password', + }, + attrs: {}, + create: true, + visible: false, + }, + + { + align: 'left', + name: 'active', + label: t('active'), + component: 'checkbox', create: true, visible: false, }, @@ -101,7 +138,6 @@ const exprBuilder = (param, value) => { } }; -