0
0
Fork 0

fix: account

This commit is contained in:
Carlos Satorres 2024-12-05 06:03:10 +01:00
parent f5c6810d9e
commit 95551d9f99
1 changed files with 16 additions and 9 deletions

View File

@ -7,6 +7,7 @@ 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';
import VnInput from 'src/components/common/VnInput.vue';
const { t } = useI18n();
const { viewSummary } = useSummaryDialog();
const tableRef = ref();
@ -88,12 +89,8 @@ const columns = computed(() => [
columnField: {
component: null,
},
columnCreate: {
component: 'input',
type: 'password',
},
attrs: {},
create: true,
required: true,
visible: false,
},
@ -159,9 +156,7 @@ const exprBuilder = (param, value) => {
urlCreate: 'VnUsers',
title: t('Create user'),
onDataSaved: ({ id }) => tableRef.redirect(id),
formInitialData: {
password: null,
},
formInitialData: {},
}"
:filter="filter"
order="id DESC"
@ -171,7 +166,19 @@ const exprBuilder = (param, value) => {
:use-model="true"
:right-search="false"
auto-load
/>
>
<template #more-create-dialog="{ data }">
<QCardSection>
<VnInput
:label="t('Old password')"
v-model="data.password"
type="password"
:required="true"
autofocus
/>
</QCardSection>
</template>
</VnTable>
</template>
<i18n>