|
|
@@ -45,14 +45,6 @@
|
|
|
</template>
|
|
|
</template>
|
|
|
<template #toolbar>
|
|
|
- <!-- <Button
|
|
|
- v-auth="['sys:log:add']"
|
|
|
- type="primary"
|
|
|
- @click="handleCreate"
|
|
|
- preIcon="icon-plus|iconfont"
|
|
|
- >
|
|
|
- 新增
|
|
|
- </Button> -->
|
|
|
<Button
|
|
|
v-auth="['sys:log:remove']"
|
|
|
type="primary"
|
|
|
@@ -73,15 +65,15 @@
|
|
|
import { Tag } from 'ant-design-vue';
|
|
|
import { Button } from '/@/components/Button';
|
|
|
|
|
|
- import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
|
|
+ import { BasicTable, useTable, TableAction } from '/@/components/TableCard';
|
|
|
|
|
|
// import { useModal } from '/@/components/Modal';
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
import FormDrawer from './formDrawer.vue';
|
|
|
import ViewDrawer from './viewDrawer.vue';
|
|
|
- import { columns, searchFormSchema } from './data';
|
|
|
+ import { columns } from './data';
|
|
|
|
|
|
- import { LogQueryPage, LogRemove } from '/@/api/monitor/LogApi';
|
|
|
+ import { LogQueryPage, LogRemove, LogExport } from '/@/api/monitor/LogApi';
|
|
|
import { listDictModel } from '/@/api/common';
|
|
|
import { formatDictColor, formatDictValue } from '/@/utils'; //
|
|
|
import { useDrawer } from '/@/components/Drawer';
|
|
|
@@ -109,23 +101,14 @@
|
|
|
|
|
|
const [registerTable, { reload, getSelectRowKeys }] = useTable({
|
|
|
api: LogQueryPage,
|
|
|
+ batchDelApi: LogRemove,
|
|
|
+ batchExportApi: LogExport, // 目前调用的是删除接口
|
|
|
+ exportAuthList: ['sys:log:export'],
|
|
|
+ delAuthList: ['sys:log:remove'],
|
|
|
rowKey: 'id',
|
|
|
columns,
|
|
|
showIndexColumn: true,
|
|
|
rowSelection: { type: 'checkbox' },
|
|
|
- formConfig: {
|
|
|
- labelWidth: 120,
|
|
|
- schemas: searchFormSchema,
|
|
|
- autoSubmitOnEnter: true,
|
|
|
- baseColProps: { xs: 24, sm: 12, md: 12, lg: 8 },
|
|
|
- resetButtonOptions: {
|
|
|
- preIcon: 'icon-delete|iconfont',
|
|
|
- },
|
|
|
- submitButtonOptions: {
|
|
|
- preIcon: 'icon-search|iconfont',
|
|
|
- },
|
|
|
- },
|
|
|
- useSearchForm: true,
|
|
|
bordered: true,
|
|
|
actionColumn: {
|
|
|
width: 200,
|