feat(steal-card): 优化表格展示效果并添加策略列

- 调整表格布局,使其更加紧凑
- 移除冗余的换行和空格
- 添加策略列,根据策略值显示对应的策略描述
- 在表格末尾添加名称列
This commit is contained in:
danial
2025-02-16 21:12:45 +08:00
parent 1f2b434275
commit 5f3c9fd6aa

View File

@@ -115,6 +115,10 @@ const columns: TableColumnData[] = [
return data.rowIndex + 1;
}
},
{
title: '名称',
dataIndex: 'name'
},
{
title: '商户',
dataIndex: 'merchantUid',
@@ -156,7 +160,19 @@ const columns: TableColumnData[] = [
},
{
title: '策略',
dataIndex: 'strategy'
dataIndex: 'strategy',
render: ({ record }) => {
switch (record.strategy) {
case 1:
return '策略1创建空白订单';
case 2:
return '策略2创建延迟订单';
case 3:
return '策略3随机';
default:
return '未知';
}
}
},
{
title: '创建时间',