feat: dept

This commit is contained in:
dap 2024-10-05 21:06:38 +08:00
parent 69b1a133b1
commit 3bf659c8c4

View File

@ -15,6 +15,9 @@ import { columns, querySchema } from './data';
import deptDrawer from './dept-drawer.vue';
const formOptions: VbenFormProps = {
commonConfig: {
labelWidth: 80,
},
schema: querySchema(),
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4',
};
@ -78,7 +81,7 @@ async function handleEdit(record: Recordable<any>) {
async function handleDelete(row: Recordable<any>) {
await deptRemove(row.deptId);
await tableApi.reload();
await tableApi.query();
}
function expandAll() {
@ -141,6 +144,6 @@ function collapseAll() {
</Space>
</template>
</BasicTable>
<DeptDrawer @reload="tableApi.reload()" />
<DeptDrawer @reload="tableApi.query()" />
</Page>
</template>