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