index.jsx 782 B

12345678910111213141516171819202122232425
  1. import React,{Component} from "react";
  2. import {Tag} from "antd";
  3. class OrderItemStatus extends Component{
  4. constructor(props) {
  5. super(props);
  6. }
  7. render() {
  8. return (
  9. <span>
  10. {/*0正常 1作废 2锁定变更中 3变更中*/}
  11. {
  12. this.props.deleteSign === 0 ? <Tag color="#87d068">正常</Tag> :
  13. this.props.deleteSign === 1 ? <Tag color="#f00">作废</Tag> :
  14. this.props.deleteSign === 2 ? <Tag color="#f50">变更中</Tag> :
  15. this.props.deleteSign === 3? <Tag color="#108ee9">变更中</Tag> : <Tag color="#000">未知</Tag>
  16. }
  17. </span>
  18. )
  19. }
  20. }
  21. export default OrderItemStatus