fix: 优化查询日志单行省略
This commit is contained in:
@@ -84,9 +84,9 @@ const { pagination, page, pageSize, resetPage, setPageResult } = useTablePage(lo
|
||||
const resultOptions = Object.values(QueryResult).map((v) => ({ label: t(`common.queryResult.${v}`), value: v }));
|
||||
|
||||
const columns: DataTableColumns<any> = [
|
||||
{ title: () => t('pages.traceCode.shortCode'), key: 'shortCode', width: 120, render: (r) => r.shortCode || '-' },
|
||||
{ title: () => t('pages.artwork.archiveNo'), key: 'archiveNo', width: 140, render: (r) => r.archiveNo || '-' },
|
||||
{ title: () => t('pages.traceCode.batchNo'), key: 'batchNo', width: 130, render: (r) => r.batchNo || '-' },
|
||||
{ title: () => t('pages.traceCode.shortCode'), key: 'shortCode', width: 120, ellipsis: { tooltip: true }, render: (r) => r.shortCode || '-' },
|
||||
{ title: () => t('pages.artwork.archiveNo'), key: 'archiveNo', width: 140, ellipsis: { tooltip: true }, render: (r) => r.archiveNo || '-' },
|
||||
{ title: () => t('pages.traceCode.batchNo'), key: 'batchNo', width: 130, ellipsis: { tooltip: true }, render: (r) => r.batchNo || '-' },
|
||||
{
|
||||
title: () => t('pages.queryLog.result'),
|
||||
key: 'queryResult',
|
||||
@@ -99,12 +99,14 @@ const columns: DataTableColumns<any> = [
|
||||
title: () => t('pages.queryLog.ip'),
|
||||
key: 'ip',
|
||||
width: 160,
|
||||
ellipsis: { tooltip: true },
|
||||
render: (r) => r.ip || '-',
|
||||
},
|
||||
{
|
||||
title: () => t('pages.queryLog.device'),
|
||||
key: 'deviceType',
|
||||
width: 150,
|
||||
ellipsis: { tooltip: true },
|
||||
render: (r) => [r.deviceType, r.os, r.browser].filter(Boolean).join(' / ') || '-',
|
||||
},
|
||||
{ title: () => t('pages.queryLog.queriedAt'), key: 'queriedAt', width: 160, render: (r) => fmt(r.queriedAt) },
|
||||
|
||||
Reference in New Issue
Block a user