提交 5ef3cf66 作者: 龚洪江

修复:租赁暂无物流显示

上级 81e5c1be
...@@ -11,6 +11,7 @@ interface selfProps { ...@@ -11,6 +11,7 @@ interface selfProps {
const LogisticsStepModal: FC<ModalProps & selfProps> = ({ open, onCancel, logisticsStep }) => { const LogisticsStepModal: FC<ModalProps & selfProps> = ({ open, onCancel, logisticsStep }) => {
return ( return (
<Modal open={open} title='物流进度' onCancel={onCancel} footer={false}> <Modal open={open} title='物流进度' onCancel={onCancel} footer={false}>
{logisticsStep?.traces?.length ? (
<Steps <Steps
direction='vertical' direction='vertical'
current={(logisticsStep?.traces?.length || 1) - 1} current={(logisticsStep?.traces?.length || 1) - 1}
...@@ -20,6 +21,11 @@ const LogisticsStepModal: FC<ModalProps & selfProps> = ({ open, onCancel, logist ...@@ -20,6 +21,11 @@ const LogisticsStepModal: FC<ModalProps & selfProps> = ({ open, onCancel, logist
description: v.acceptTime, description: v.acceptTime,
}))} }))}
/> />
) : (
<div className='no-data' style={{ color: '#999', textAlign: 'center' }}>
暂无物流
</div>
)}
</Modal> </Modal>
); );
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论