diff --git a/apps/web-ele/src/views/system/mail/log/data.ts b/apps/web-ele/src/views/system/mail/log/data.ts
index e6b1a43c9..877163c2d 100644
--- a/apps/web-ele/src/views/system/mail/log/data.ts
+++ b/apps/web-ele/src/views/system/mail/log/data.ts
@@ -1,16 +1,12 @@
import type { VbenFormSchema } from '#/adapter/form';
-import type { OnActionClickFn, VxeTableGridOptions } from '#/adapter/vxe-table';
-import type { SystemMailLogApi } from '#/api/system/mail/log';
+import type { VxeTableGridOptions } from '#/adapter/vxe-table';
-import { useAccess } from '@vben/access';
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { getSimpleMailAccountList } from '#/api/system/mail/account';
import { getRangePickerDefaultProps } from '#/utils';
-const { hasAccessByCodes } = useAccess();
-
/** 列表的搜索表单 */
export function useGridFormSchema(): VbenFormSchema[] {
return [
@@ -77,9 +73,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
}
/** 列表的字段 */
-export function useGridColumns(
- onActionClick: OnActionClickFn,
-): VxeTableGridOptions['columns'] {
+export function useGridColumns(): VxeTableGridOptions['columns'] {
return [
{
field: 'id',
@@ -146,26 +140,10 @@ export function useGridColumns(
minWidth: 120,
},
{
- field: 'operation',
title: '操作',
- minWidth: 80,
- align: 'center',
+ width: 80,
fixed: 'right',
- cellRender: {
- attrs: {
- nameField: 'toMail',
- nameTitle: '邮件日志',
- onClick: onActionClick,
- },
- name: 'CellOperation',
- options: [
- {
- code: 'detail',
- text: '查看',
- show: hasAccessByCodes(['system:mail-log:query']),
- },
- ],
- },
+ slots: { default: 'actions' },
},
];
}
diff --git a/apps/web-ele/src/views/system/mail/log/index.vue b/apps/web-ele/src/views/system/mail/log/index.vue
index 4a91b7c14..548f48508 100644
--- a/apps/web-ele/src/views/system/mail/log/index.vue
+++ b/apps/web-ele/src/views/system/mail/log/index.vue
@@ -1,16 +1,14 @@