|
@@ -15,9 +15,9 @@ export default class TableList extends PureComponent {
|
|
|
|
|
|
const columns = [{
|
|
|
title: '订单编号',
|
|
|
- dataIndex: 'id',
|
|
|
- key: 'id',
|
|
|
- width: '28%',
|
|
|
+ dataIndex: 'serialNo',
|
|
|
+ key: 'serialNo',
|
|
|
+ width: '14%',
|
|
|
}, {
|
|
|
title: '校区',
|
|
|
dataIndex: 'campusName',
|
|
@@ -38,7 +38,7 @@ export default class TableList extends PureComponent {
|
|
|
};
|
|
|
return (<Badge status={statusMap[record.orderStatus] || 'processing'} text={orderStatuses[record.orderStatus]} />);
|
|
|
},
|
|
|
- width: '8%',
|
|
|
+ width: '15%',
|
|
|
}, {
|
|
|
title: '下单时间',
|
|
|
dataIndex: 'gmtCreated',
|
|
@@ -46,13 +46,13 @@ export default class TableList extends PureComponent {
|
|
|
render: text => (
|
|
|
<div>{moment(text).format('YYYY-MM-DD HH:mm:ss')}</div>
|
|
|
),
|
|
|
- width: '17%',
|
|
|
+ width: '20%',
|
|
|
}, {
|
|
|
title: '操作',
|
|
|
dataIndex: 'operation',
|
|
|
key: 'operation',
|
|
|
render: (_, record) => <a onClick={() => this.handleItemView(record)}>查看详情</a>,
|
|
|
- width: '8%',
|
|
|
+ width: '12%',
|
|
|
}];
|
|
|
|
|
|
// 配置分页
|