Success.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import React, { Fragment } from 'react';
  2. import { Button, Row, Col, Icon, Steps, Card } from 'antd';
  3. import Result from '../../components/Result';
  4. import PageHeaderLayout from '../../layouts/PageHeaderLayout';
  5. const { Step } = Steps;
  6. const desc1 = (
  7. <div style={{ fontSize: 12, color: 'rgba(0, 0, 0, 0.45)', position: 'relative', left: 42 }}>
  8. <div style={{ margin: '8px 0 4px' }}>
  9. 曲丽丽<Icon style={{ marginLeft: 8 }} type="dingding-o" />
  10. </div>
  11. <div>2016-12-12 12:32</div>
  12. </div>
  13. );
  14. const desc2 = (
  15. <div style={{ fontSize: 12, position: 'relative', left: 42 }}>
  16. <div style={{ margin: '8px 0 4px' }}>
  17. 周毛毛<Icon type="dingding-o" style={{ color: '#00A0E9', marginLeft: 8 }} />
  18. </div>
  19. <div><a href="">催一下</a></div>
  20. </div>
  21. );
  22. const extra = (
  23. <Fragment>
  24. <div style={{ fontSize: 16, color: 'rgba(0, 0, 0, 0.85)', fontWeight: '500', marginBottom: 20 }}>
  25. 项目名称
  26. </div>
  27. <Row style={{ marginBottom: 16 }}>
  28. <Col xs={24} sm={12} md={12} lg={12} xl={6}>
  29. <span style={{ color: 'rgba(0, 0, 0, 0.85)' }}>项目 ID:</span>
  30. 23421
  31. </Col>
  32. <Col xs={24} sm={12} md={12} lg={12} xl={6}>
  33. <span style={{ color: 'rgba(0, 0, 0, 0.85)' }}>负责人:</span>
  34. 曲丽丽
  35. </Col>
  36. <Col xs={24} sm={24} md={24} lg={24} xl={12}>
  37. <span style={{ color: 'rgba(0, 0, 0, 0.85)' }}>生效时间:</span>
  38. 2016-12-12 ~ 2017-12-12
  39. </Col>
  40. </Row>
  41. <Steps style={{ marginLeft: -42, width: 'calc(100% + 84px)' }} progressDot current={1}>
  42. <Step title={<span style={{ fontSize: 14 }}>创建项目</span>} description={desc1} />
  43. <Step title={<span style={{ fontSize: 14 }}>部门初审</span>} description={desc2} />
  44. <Step title={<span style={{ fontSize: 14 }}>财务复核</span>} />
  45. <Step title={<span style={{ fontSize: 14 }}>完成</span>} />
  46. </Steps>
  47. </Fragment>
  48. );
  49. const actions = (
  50. <Fragment>
  51. <Button type="primary">返回列表</Button>
  52. <Button>查看项目</Button>
  53. <Button>打 印</Button>
  54. </Fragment>
  55. );
  56. export default () => (
  57. <PageHeaderLayout>
  58. <Card bordered={false}>
  59. <Result
  60. type="success"
  61. title="提交成功"
  62. description="提交结果页用于反馈一系列操作任务的处理结果,
  63. 如果仅是简单操作,使用 Message 全局提示反馈即可。
  64. 本文字区域可以展示简单的补充说明,如果有类似展示
  65. “单据”的需求,下面这个灰色区域可以呈现比较复杂的内容。"
  66. extra={extra}
  67. actions={actions}
  68. style={{ marginTop: 48, marginBottom: 16 }}
  69. />
  70. </Card>
  71. </PageHeaderLayout>
  72. );