chore: 移除调试代码

This commit is contained in:
dap 2024-12-11 11:22:13 +08:00
parent 7ec3cfb3fd
commit a7d9697397

View File

@ -9,7 +9,11 @@ import { $t } from '@vben/locales';
import { Modal, Space } from 'ant-design-vue';
import { isEmpty } from 'lodash-es';
import { useVbenVxeGrid, type VxeGridProps } from '#/adapter/vxe-table';
import {
useVbenVxeGrid,
vxeCheckboxChecked,
type VxeGridProps,
} from '#/adapter/vxe-table';
import {
operLogClean,
operLogDelete,
@ -138,11 +142,6 @@ function handleDownloadExcel() {
fieldMappingTime: formOptions.fieldMappingTime,
});
}
function isChecked() {
console.log('触发');
return tableApi?.grid?.getCheckboxRecords?.()?.length > 0;
}
</script>
<template>
@ -163,7 +162,7 @@ function isChecked() {
{{ $t('pages.common.export') }}
</a-button>
<a-button
:disabled="!isChecked()"
:disabled="!vxeCheckboxChecked(tableApi)"
danger
type="primary"
v-access:code="['monitor:operlog:remove']"