Archived
forked from admin/userbase
This commit is contained in:
+15
-14
@@ -117,29 +117,31 @@ const tableHeight = ref($utils.useTableHeight({ isOperat: false, isPage: true, i
|
||||
|
||||
const columns = [
|
||||
{ type: 'index', title: '序号', width: 70, align: 'center' },
|
||||
{
|
||||
title: '日志时间',
|
||||
key: 'createdAt',
|
||||
width: 170,
|
||||
render: (h: any, { row }: any) =>
|
||||
h('span', row.createdAt ? Utils.dateFormat(row.createdAt, 'yyyy-MM-dd HH:mm:ss') : '-'),
|
||||
},
|
||||
{ title: '应用', key: 'appName', width: 160, ellipsis: true, tooltip: true },
|
||||
{
|
||||
title: '接口',
|
||||
key: 'interfaceLabel',
|
||||
minWidth: 180,
|
||||
width: 140,
|
||||
ellipsis: true,
|
||||
tooltip: true,
|
||||
render: (h: any, { row }: any) =>
|
||||
h('span', { attrs: { title: row.interfacePath } }, row.interfaceLabel || row.interfacePath || '-'),
|
||||
},
|
||||
{
|
||||
title: '调用结果',
|
||||
key: 'success',
|
||||
width: 90,
|
||||
width: 120,
|
||||
align: 'center',
|
||||
render: (h: any, { row }: any) =>
|
||||
h('span', { class: row.success === 1 ? 'text-success' : 'text-error' }, row.success === 1 ? '成功' : '失败'),
|
||||
},
|
||||
{
|
||||
title: '日志时间',
|
||||
key: 'createdAt',
|
||||
width: 170,
|
||||
render: (h: any, { row }: any) =>
|
||||
h('span', row.createdAt ? Utils.dateFormat(row.createdAt, 'yyyy-MM-dd HH:mm:ss') : '-'),
|
||||
},
|
||||
{
|
||||
title: '重试',
|
||||
key: 'attemptNo',
|
||||
@@ -157,16 +159,15 @@ const columns = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
width: 130,
|
||||
align: 'center',
|
||||
fixed: 'right' as const,
|
||||
width: 150,
|
||||
align: 'left',
|
||||
render: (h: any, { row }: any) => {
|
||||
const actions = [
|
||||
h('a', { style: { color: '#577afb', marginRight: '12px' }, on: { click: () => openDetail(row) } }, '详情'),
|
||||
h('a', { style: { color: '#577afb', marginRight: '12px' }, onClick: () => openDetail(row) }, '详情'),
|
||||
];
|
||||
if (row.success !== 1) {
|
||||
actions.push(
|
||||
h('a', { style: { color: '#ed4014' }, on: { click: () => handleRetry(row) } }, '重试')
|
||||
h('a', { style: { color: '#ed4014' }, onClick: () => handleRetry(row) }, '重试')
|
||||
);
|
||||
}
|
||||
return h('span', actions);
|
||||
|
||||
Reference in New Issue
Block a user