我使用的是三元运算符来改变状态
1代表未发货 2代表已发货
{
title: '发货状态',
render:(text,record)=>{
return record.order_logisticsStatus==1?"未发货":"已发货";
}
}
状态展示
<Row gutter={16}>
<Col className="gutter-row" align="right" span={3} offset={2}>
<strong>当前订单状态:</strong>
</Col>
<Col className="gutter-row" span={3}>
<div>
{this.state.msg.order_logisticsStatus==1?"未发货":""}
{this.state.msg.order_logisticsStatus==2?"已发货":""}
</div>
</Col>
</Row>