#
Junjie
2024-07-16 796289b86174721ee41ecba7add7a4526afe5ec4
zy-asrs-admin/src/views/system/operationRecord/index.vue
@@ -6,6 +6,7 @@
import { logout } from '@/config.js';
import EditView from './edit.vue'
import { formatMessage } from '@/utils/localeUtils.js';
import useTableSearch from '@/utils/tableUtils.jsx';
const context = getCurrentInstance()?.appContext.config.globalProperties;
const router = useRouter();
@@ -19,84 +20,101 @@
let tableData = ref([]);
getPage();
const {
  getColumnSearchProps,
} = useTableSearch();
const columns = [
        {
            title: formatMessage('db.sys_operation_record.namespace', '名称空间'),
            dataIndex: 'namespace',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('namespace'),
        },
        {
            title: formatMessage('db.sys_operation_record.url', '接口地址'),
            dataIndex: 'url',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('url'),
        },
        {
            title: formatMessage('db.sys_operation_record.appkey', '平台密钥'),
            dataIndex: 'appkey',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('appkey'),
        },
        {
            title: formatMessage('db.sys_operation_record.timestamp', '时间戳'),
            dataIndex: 'timestamp',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('timestamp'),
        },
        {
            title: formatMessage('db.sys_operation_record.client_ip', '客户端IP'),
            dataIndex: 'clientIp',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('clientIp'),
        },
        {
            title: formatMessage('db.sys_operation_record.request', '请求内容'),
            dataIndex: 'request',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('request'),
        },
        {
            title: formatMessage('db.sys_operation_record.response', '响应内容'),
            dataIndex: 'response',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('response'),
        },
        {
            title: formatMessage('db.sys_operation_record.spend_time', '消耗时间'),
            dataIndex: 'spendTime',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('spendTime'),
        },
        {
            title: formatMessage('db.sys_operation_record.err', '异常内容'),
            dataIndex: 'err',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('err'),
        },
        {
            title: formatMessage('db.sys_operation_record.result', '结果'),
            dataIndex: 'result$',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('result$'),
        },
        {
            title: formatMessage('db.sys_operation_record.user_id', '用户'),
            dataIndex: 'userId$',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('userId$'),
        },
        {
            title: formatMessage('db.sys_operation_record.create_time', '添加时间'),
            dataIndex: 'createTime$',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('createTime$'),
        },
        {
            title: formatMessage('db.sys_operation_record.memo', '备注'),
            dataIndex: 'memo',
            width: 140,
            ellipsis: true,
    ...getColumnSearchProps('memo'),
        },
  {