feat(steal-card): 优化表格展示效果并添加策略列
- 调整表格布局,使其更加紧凑 - 移除冗余的换行和空格 - 添加策略列,根据策略值显示对应的策略描述 - 在表格末尾添加名称列
This commit is contained in:
@@ -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: '创建时间',
|
||||
|
||||
Reference in New Issue
Block a user