chore: 默认值

This commit is contained in:
dap
2024-10-06 09:53:00 +08:00
parent da4c612481
commit 60ae7cc0cc
15 changed files with 103 additions and 100 deletions

View File

@@ -44,7 +44,7 @@ const gridOptions: VxeGridProps = {
pagerConfig: {},
proxyConfig: {
ajax: {
query: async ({ page }, formValues) => {
query: async ({ page }, formValues = {}) => {
return await loginInfoList({
pageNum: page.currentPage,
pageSize: page.pageSize,
@@ -147,7 +147,7 @@ async function handleUnlock() {
:disabled="!checked"
danger
type="primary"
v-access:code="['monitor:logininfor:delete']"
v-access:code="['monitor:logininfor:remove']"
@click="handleMultiDelete"
>
{{ $t('pages.common.delete') }}
@@ -158,20 +158,24 @@ async function handleUnlock() {
</Space>
</template>
<template #action="{ row }">
<Space>
<a-button size="small" type="link" @click.stop="handlePreview(row)">
{{ $t('pages.common.info') }}
</a-button>
<Popconfirm
placement="left"
title="确认删除?"
@confirm="() => handleDelete(row)"
<a-button size="small" type="link" @click.stop="handlePreview(row)">
{{ $t('pages.common.info') }}
</a-button>
<Popconfirm
placement="left"
title="确认删除?"
@confirm="() => handleDelete(row)"
>
<a-button
danger
size="small"
type="link"
v-access:code="['monitor:logininfor:remove']"
@click.stop=""
>
<a-button danger size="small" type="link" @click.stop="">
删除
</a-button>
</Popconfirm>
</Space>
删除
</a-button>
</Popconfirm>
</template>
</BasicTable>
<LoginInfoModal />